-
Notifications
You must be signed in to change notification settings - Fork 182
Implement DetermineStrategy for the Kubernetes plugin #5362
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
Conversation
…cation Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]>
…gy in determine.go Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]>
…ifests and determine deployment strategy Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]>
Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]>
Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #5362 +/- ##
==========================================
+ Coverage 25.43% 25.49% +0.06%
==========================================
Files 446 446
Lines 47839 47939 +100
==========================================
+ Hits 12166 12224 +58
- Misses 34721 34762 +41
- Partials 952 953 +1 ☔ View full report in Codecov by Sentry. |
|
||
// First up, checks to see if the workload's `spec.template` has been changed, | ||
// and then checks if the configmap/secret's data. | ||
func determineStrategy(olds, news []provider.Manifest, workloadRefs []config.K8sResourceReference, logger *zap.Logger) (strategy model.SyncStrategy, summary string) { |
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.
📝 It seems to be based on the current logic decideStrategy
https://github.com/pipe-cd/pipecd/blob/master/pkg/app/piped/planner/kubernetes/kubernetes.go#L233
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.
LGTM
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.
LGTM 👍
What this PR does:
This PR adds the DetermineStrategy implementation for the k8s plugin.
Why we need it:
We have to support this method to deploy k8s resources.
Which issue(s) this PR fixes:
Part of #4980
Does this PR introduce a user-facing change?: No