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

Updated etcd bootstrap scripts to allow for idempotency #378

Merged
merged 3 commits into from
Oct 10, 2023
Merged

Updated etcd bootstrap scripts to allow for idempotency #378

merged 3 commits into from
Oct 10, 2023

Conversation

maartenkamoen
Copy link
Contributor

Updated etcd bootstrap scripts to allow for idempotency
Adjusted etc rbac role to let pod get current secrets

@netlify
Copy link

netlify bot commented Oct 9, 2023

Deploy Preview for kamaji-documentation canceled.

Name Link
🔨 Latest commit 06519af
🔍 Latest deploy log https://app.netlify.com/sites/kamaji-documentation/deploys/6525620690975300083b20cf

@@ -15,7 +15,7 @@ rules:
resources:
- secrets
verbs:
- delete
Copy link
Member

Choose a reason for hiding this comment

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

The delete is still required for the post-delete job of the etcd component.

We should rather add the get verb and not remove the delete one.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, I missed that. Has been re-added in the latest commit

Copy link
Member

@prometherion prometherion left a comment

Choose a reason for hiding this comment

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

We should bump also the Helm Chart version, a patch should be enough: please, add the changes to the file Chart.yaml and regenerate the Helm docs by issuing make -C charts/kamaji docs

@prometherion prometherion merged commit a7cfc9a into clastix:master Oct 10, 2023
4 checks passed
@maartenkamoen maartenkamoen deleted the helm-idempotency-fix branch October 11, 2023 07:30
sn4psh0t added a commit to sn4psh0t/kamaji-etcd that referenced this pull request Nov 20, 2023
- etcd-setup-1 preinstall script checks for CA and client secrets existence
- etcd-setup-2 postinstall script checks for root user existence

Inspired to clastix/kamaji#378
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.

Etcd jobs in helm chart should be idempotent
2 participants