Skip to content

Commit

Permalink
conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
Sara Wei committed Jan 30, 2024
2 parents 9fa7c96 + bb68bf0 commit cee2fa3
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions helmcli/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ func YAMLValuesApplier(yamlValues string) (ValuesApplier, error) {
if err != nil {
return nil, err
}
<<<<<<< HEAD

Check failure on line 50 in helmcli/release.go

View workflow job for this annotation

GitHub Actions / build

syntax error: unexpected <<, expected }

Check failure on line 50 in helmcli/release.go

View workflow job for this annotation

GitHub Actions / test

syntax error: unexpected <<, expected }

return func(to map[string]interface{}) error {

Check failure on line 52 in helmcli/release.go

View workflow job for this annotation

GitHub Actions / build

syntax error: unexpected {, expected (

Check failure on line 52 in helmcli/release.go

View workflow job for this annotation

GitHub Actions / test

syntax error: unexpected {, expected (
return applyValues(to, values)

Check failure on line 53 in helmcli/release.go

View workflow job for this annotation

GitHub Actions / build

syntax error: unexpected return, expected )

Check failure on line 53 in helmcli/release.go

View workflow job for this annotation

GitHub Actions / test

syntax error: unexpected return, expected )
Expand Down Expand Up @@ -77,6 +78,41 @@ func applyValues(to, from map[string]interface{}) error {
return nil
}

=======

Check failure on line 81 in helmcli/release.go

View workflow job for this annotation

GitHub Actions / build

syntax error: non-declaration statement outside function body

Check failure on line 81 in helmcli/release.go

View workflow job for this annotation

GitHub Actions / test

syntax error: non-declaration statement outside function body
return func(to map[string]interface{}) error {

Check failure on line 82 in helmcli/release.go

View workflow job for this annotation

GitHub Actions / build

syntax error: unexpected {, expected (

Check failure on line 82 in helmcli/release.go

View workflow job for this annotation

GitHub Actions / test

syntax error: unexpected {, expected (
for k, v := range values {

Check failure on line 83 in helmcli/release.go

View workflow job for this annotation

GitHub Actions / build

syntax error: unexpected for, expected )

Check failure on line 83 in helmcli/release.go

View workflow job for this annotation

GitHub Actions / test

syntax error: unexpected for, expected )
// If 'to' doesn't have key 'k'
if _, checkKey := to[k]; !checkKey {

Check failure on line 85 in helmcli/release.go

View workflow job for this annotation

GitHub Actions / build

syntax error: unexpected ] after top level declaration

Check failure on line 85 in helmcli/release.go

View workflow job for this annotation

GitHub Actions / test

syntax error: unexpected ] after top level declaration
to[k] = v
} else {
// If 'to' has key 'k'
switch v := v.(type) {

Check failure on line 89 in helmcli/release.go

View workflow job for this annotation

GitHub Actions / build

syntax error: unexpected ), expected name

Check failure on line 89 in helmcli/release.go

View workflow job for this annotation

GitHub Actions / test

syntax error: unexpected ), expected name
case map[string]interface{}:
// If 'v' is of type map[string]interface{}
if toMap, checkKey := to[k].(map[string]interface{}); checkKey {

Check failure on line 92 in helmcli/release.go

View workflow job for this annotation

GitHub Actions / build

syntax error: unexpected ) after top level declaration

Check failure on line 92 in helmcli/release.go

View workflow job for this annotation

GitHub Actions / test

syntax error: unexpected ) after top level declaration
// Recursively apply the values
applier, err := YAMLValuesApplier("")
if err != nil {
return err
}
err = applier(toMap)
if err != nil {
return err
}
} else {
to[k] = v
}
default:
// If 'v' is not of type map[string]interface{}
to[k] = v
}
}
}
return nil
}, nil
}

>>>>>>> bb68bf0f8a9bfaaf804bf0a6fab5d6b90976f1b4
// ReleaseCli is a client to deploy helm chart with secret storage.
type ReleaseCli struct {
namespace string
Expand Down

0 comments on commit cee2fa3

Please sign in to comment.