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

Add support for blue/green deployments #1230

Merged
merged 5 commits into from
Apr 28, 2021

Conversation

flupke
Copy link
Contributor

@flupke flupke commented Apr 19, 2021

  • webhook certificate name is tied to release names
  • add flags to control the deployment of the Role and ClusterRole separately

@flupke flupke marked this pull request as draft April 20, 2021 09:35
@flupke flupke force-pushed the add-gencerts-resource-name branch from 2d69dd6 to e08b793 Compare April 20, 2021 10:52
@flupke flupke marked this pull request as ready for review April 20, 2021 10:58
@flupke flupke changed the title Add gencerts.sh --resource-name option Add support for blue/green deployments Apr 20, 2021
Copy link
Collaborator

@liyinan926 liyinan926 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you do a rebase? Thanks!

This is the first part of changes that will allow doing blue/green
deployments of the Spark Operator.
This is the second part of changes allowing blue/green deployments of
the Spark Operator: one can now deploy the ClusterRole without the Role,
which would be defined in the common part of a blue/green deployment.

Note this is a breaking change, so the chart version has been bumped to 2.
@flupke flupke force-pushed the add-gencerts-resource-name branch from e08b793 to 83689dc Compare April 28, 2021 17:18
@flupke
Copy link
Contributor Author

flupke commented Apr 28, 2021

Can you do a rebase? Thanks!

Done. Please note that the chart comes with a breaking change and has been updated to 2.0.0

@liyinan926
Copy link
Collaborator

Can you do a rebase? Thanks!

Done. Please note that the chart comes with a breaking change and has been updated to 2.0.0

Is it possible to keep the variable rbac. create and use an boolean or to check both create and the new variables? In the meantime, we can mark create as being deprecated.

@flupke
Copy link
Contributor Author

flupke commented Apr 28, 2021

Ok that's better indeed! how would I mark create deprecated?

@liyinan926
Copy link
Collaborator

Ok that's better indeed! how would I mark create deprecated?

Probably just update the table in https://github.com/GoogleCloudPlatform/spark-on-k8s-operator/blob/master/charts/spark-operator-chart/README.md.

@flupke
Copy link
Contributor Author

flupke commented Apr 28, 2021

  • Chart in 1.0.10 and rbac.create back compatibility: b933c70
  • Document rbac.create deprecation in charts/README (used make helm-docs for this, which also updated a bunch of other entries): 57c6c35

| podSecurityContext | object | `{}` | Pod security context |
| rbac.create | bool | `true` | Create and use `rbac` resources |
| rbac.create | bool | `false` | DEPRECATED - use createRole and createClusterRole |
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: add ` around createRole and createClusterRole

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in daeda76

Copy link
Collaborator

@liyinan926 liyinan926 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

@liyinan926 liyinan926 merged commit b884a2f into kubeflow:master Apr 28, 2021
@flupke flupke deleted the add-gencerts-resource-name branch April 28, 2021 18:17
jbhalodia-slack pushed a commit to jbhalodia-slack/spark-operator that referenced this pull request Oct 4, 2024
* Webhook certificate secrets name is tied to the release name

This is the first part of changes that will allow doing blue/green
deployments of the Spark Operator.

* Split values' rbac.create flag in createRole and createClusterRole

This is the second part of changes allowing blue/green deployments of
the Spark Operator: one can now deploy the ClusterRole without the Role,
which would be defined in the common part of a blue/green deployment.

Note this is a breaking change, so the chart version has been bumped to 2.

* fixup! Split values' rbac.create flag in createRole and createClusterRole

* fixup! Split values' rbac.create flag in createRole and createClusterRole

* fixup! Split values' rbac.create flag in createRole and createClusterRole
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants