Skip to content
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

Merged
merged 12 commits into from
Dec 15, 2022

Conversation

ciurescuraul
Copy link
Contributor

Update Clouddriver to support Deployment kind for Red/Black (deprecated) deployments, which will become Blue/Green.

Copy link
Contributor

@ovidiupopa07 ovidiupopa07 left a 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

@ciurescuraul
Copy link
Contributor Author

ciurescuraul commented Dec 13, 2022

  1. Deploy (Manifest)
    image

  2. Disable (Manifest)
    image

  3. Pods after running the pipeline
    image

  4. LoadBalancer redirects traffic to newly created pods
    image

Copy link
Contributor

@ovidiupopa07 ovidiupopa07 left a 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

@dogonthehorizon dogonthehorizon added the ready to merge Approved and ready for a merge label Dec 14, 2022
j-sandy and others added 8 commits December 15, 2022 18:04
…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
@mergify mergify bot added the auto merged Merged automatically by a bot label Dec 15, 2022
@mergify mergify bot merged commit 932dd66 into spinnaker:master Dec 15, 2022
@@ -82,7 +86,7 @@ public KubernetesKind kind() {

@Override
public boolean versioned() {
return false;
return true;
Copy link
Contributor

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....

Copy link
Contributor

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

dbyron-sf added a commit to dbyron-sf/clouddriver that referenced this pull request Dec 21, 2022
…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.
mergify bot pushed a commit that referenced this pull request Dec 21, 2022
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto merged Merged automatically by a bot ready to merge Approved and ready for a merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants