-
Notifications
You must be signed in to change notification settings - Fork 150
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 custom annotations to the Init Job #250
Conversation
@pseudomuto and @rail, could you maybe take a look at this PR, please? 😬 |
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.
Aside from the version this LGTM 👍 Nice work!
cockroachdb/Chart.yaml
Outdated
@@ -2,7 +2,7 @@ | |||
apiVersion: v1 | |||
name: cockroachdb | |||
home: https://www.cockroachlabs.com | |||
version: 8.0.1 | |||
version: 8.0.2 |
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.
Since we're adding a new feature I think we should make this new version 8.1.0
.
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.
Done. ✅
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.
Would you mind adding an example usage somewhere? Maybe to the Readme template or as comments next to the new section. What do you think?
In some cases, there is a need for adding custom annotations to the Init job. For example, when using ArgoCD, we need to instruct ArgoCD to start the job still during the Sync phase and not as a PostSync hook. Otherwise, the job never starts. And this is done by adding the following annotation to the job. ``` argocd.argoproj.io/hook: Sync ``` This is to continue the work started in cockroachdb#246 to address cockroachdb#149
Bumping the chart version for a new release.
57be672
to
87c8039
Compare
@rail and @pseudomuto, I've addressed and force-pushed the requested changes. 🤝 |
On another note, I saw this. What is the recommended way of installing CockroachDB in a K8s cluster? Is it via Helm or Operator? Just for clarification. Also, I have another issue opened that seems not to affect the Operator. So, if I'm supposed to use the Operator, I'll not even bother to wait for it to be 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.
Thank you very much!
In some cases, there is a need for adding custom annotations to the Init job.
For example, when using ArgoCD, we need to instruct ArgoCD to start the job
still during the Sync phase and not as a PostSync hook. Otherwise, the job never
starts. And this is done by adding the following annotation to the job.
This is to continue the work started in #246 and #206
to address #149