-
Notifications
You must be signed in to change notification settings - Fork 156
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
Remove key
field from provider.Manifest
in the k8s plugin
#5446
Conversation
Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]>
…ent service Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]>
…tion Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]>
Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]>
// decode and override the autoCreateNamespace and namespace | ||
spec, err := config.DecodeYAML[*kubeConfigPkg.KubernetesApplicationSpec](cfg) | ||
require.NoError(t, err) | ||
spec.Spec.Input.AutoCreateNamespace = true | ||
spec.Spec.Input.Namespace = "test-namespace" | ||
cfg, err = yaml.Marshal(spec) | ||
require.NoError(t, err) |
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.
override example config to ensure these fields are used when applying the resources
require.NoError(t, err) | ||
assert.Equal(t, model.StageStatus_STAGE_SUCCESS.String(), resp.GetStatus().String()) | ||
|
||
deployment, err := dynamicClient.Resource(schema.GroupVersionResource{Group: "apps", Version: "v1", Resource: "deployments"}).Namespace("test-namespace").Get(context.Background(), "simple", metav1.GetOptions{}) |
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.
check the resource in the namespace test-namespace
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #5446 +/- ##
==========================================
+ Coverage 26.23% 26.24% +0.01%
==========================================
Files 452 452
Lines 48872 48859 -13
==========================================
+ Hits 12823 12825 +2
+ Misses 35024 35010 -14
+ Partials 1025 1024 -1 ☔ View full report in Codecov by Sentry. |
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.
👍
Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]>
What this PR does:
key
field fromprovider.Manifest
of k8s plugin, and make it inKey()
methodWhy we need it:
Which issue(s) this PR fixes:
Part of #4980
Does this PR introduce a user-facing change?: No