-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Unmarshaling of Target Config #1257
Fix Unmarshaling of Target Config #1257
Conversation
Skipping CI for Draft Pull Request. |
@@ -56,7 +56,7 @@ func NewShootClientFromTarget(ctx context.Context, gardenTarget *v1alpha1.Target | |||
} | |||
|
|||
targetConfig := &targettypes.KubernetesClusterTargetConfig{} | |||
err = json.Unmarshal([]byte(resolvedTarget.Content), targetConfig) | |||
err = yaml.Unmarshal([]byte(resolvedTarget.Content), targetConfig) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this is fine, since the yaml parser should also be able to parse json (?).
However, I believe we need to also fix the secret resolving in controller-utils/pkg/landscaper/references.go
. The function ResolveSecretReference
should return the same format for when a key is specivied vs. there is no key specified. What do you think?
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Release note: