-
Notifications
You must be signed in to change notification settings - Fork 1k
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
feat(k8s): Add Deployment Kind support for Blue/Green deployments #5830
Conversation
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, but let's add unit tests (if possible) and, more important, one or more integration tests.
see clouddriver-kubernetes/src/integration/java/com/netflix/spinnaker/clouddriver/kubernetes/it/DeployManifestIT.java
...s/src/integration/java/com/netflix/spinnaker/clouddriver/kubernetes/it/DeployManifestIT.java
Outdated
Show resolved
Hide resolved
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 if the tests are passing
…nnaker#5834) The property spring.config.additional-location is redundant in clouddriver-web.gradle file. This property is set by class com.netflix.spinnaker.kork.boot.DefaultPropertiesBuilder in com.netflix.spinnaker.clouddriver.Main. So removing it from gradle file.
…rca (spinnaker#5833) Co-authored-by: Apoorv Mahajan <amahaja3@ncsu.edu> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: root <root@923768a73b79>
Co-authored-by: root <root@460f62b24dfe>
Co-authored-by: root <root@bd924b84c45e>
Co-authored-by: root <root@c0db2dce1dda>
…rward (spinnaker#5840) with a specific goal to get org.testng:testng:7.4.0 out of shipping code, since it's vulnerable to CVE-2022-4065. Note: groovy-all and testng remain in clouddriver-yandex, but they're gone (besides test configurations) elsewhere. test(integration): test red/black deployment test(integration): test blue/green deployment
@@ -82,7 +86,7 @@ public KubernetesKind kind() { | |||
|
|||
@Override | |||
public boolean versioned() { | |||
return false; | |||
return true; |
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.
This change breaks a bunch of integration tests (which unfortunately weren't required to pass before merging this PR), but also is a pretty massive behavior change. Before people who deploy a deployment named foo
, would get foo
. Now they get foo-vNNN
. It also makes https://spinnaker.io/docs/reference/providers/kubernetes-v2/#workloads incorrect for Deployments. I'm not sure how critical this change is to this PR....
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.
PR to revert this one: #5843
…ents (spinnaker#5830)" This reverts commit 932dd66. See https://github.com/spinnaker/clouddriver/pull/5830/files#r1054854915 for details, but versioning deployments causes test failures and is a big behavior change. Reverting until we can figure out a better way.
…ents (#5830)" (#5843) This reverts commit 932dd66. See https://github.com/spinnaker/clouddriver/pull/5830/files#r1054854915 for details, but versioning deployments causes test failures and is a big behavior change. Reverting until we can figure out a better way.
Update Clouddriver to support Deployment kind for Red/Black (deprecated) deployments, which will become Blue/Green.