-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Fix etcd certificates reference to support etcd_kubeadm_enabled:true #7766
Fix etcd certificates reference to support etcd_kubeadm_enabled:true #7766
Conversation
Hi @forselli-stratio. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
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.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: floryut, forselli-stratio The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
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.
/cc @oomichi
@forselli-stratio |
64bf7ef
to
8b91cfa
Compare
/retest |
@forselli-stratio Could you rebase this pull request again?
|
8b91cfa
to
e96c2ff
Compare
c26087c
to
e1d65ea
Compare
Hi @oomichi , can you take a look at this please? Thanks! |
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
ETCDCTL_KEY_FILE: "{{ etcd_cert_dir }}/admin-{{ groups['etcd'][0] }}-key.pem" | ||
ETCDCTL_CA_FILE: "{{ kube_cert_dir + '/etcd/ca.crt' if etcd_kubeadm_enabled else etcd_cert_dir + '/ca.pem' }}" | ||
ETCDCTL_CERT_FILE: "{{ kube_cert_dir + '/etcd/server.crt' if etcd_kubeadm_enabled else etcd_cert_dir + '/admin-' + groups['etcd'][0] + '.pem' }}" | ||
ETCDCTL_KEY_FILE: "{{ kube_cert_dir + '/etcd/server.key' if etcd_kubeadm_enabled else etcd_cert_dir + '/admin-' + groups['etcd'][0] + '-key.pem' }}" |
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.
According to
kubespray/roles/etcdctl/templates/etcdctl.sh.j2
Lines 5 to 8 in 57a1d18
etcdctl \ | |
--cacert {{ kube_cert_dir }}/etcd/ca.crt \ | |
--cert {{ kube_cert_dir }}/etcd/server.crt \ | |
--key {{ kube_cert_dir }}/etcd/server.key "$@" |
those paths seem good for me.
…ubernetes-sigs#7766) * Fix etcd certificates reference to support etcd_kubeadm_enabled:true * Add retries to ETCD Join Member task * Fix etcd certificates reference when etcd_kubeadm_enabled:true * Fix conflicts
…ubernetes-sigs#7766) * Fix etcd certificates reference to support etcd_kubeadm_enabled:true * Add retries to ETCD Join Member task * Fix etcd certificates reference when etcd_kubeadm_enabled:true * Fix conflicts
…ubernetes-sigs#7766) * Fix etcd certificates reference to support etcd_kubeadm_enabled:true * Add retries to ETCD Join Member task * Fix etcd certificates reference when etcd_kubeadm_enabled:true * Fix conflicts
What type of PR is this?
What this PR does / why we need it:
This PR fixes some etcd certificates reference, there are many references in other playbooks but i'm not really sure where this replace is needed, please take a look and let me know if these changes are necessary in other playbooks.
Which issue(s) this PR fixes:
Fixes #7765
Special notes for your reviewer:
Does this PR introduce a user-facing change?: