-
Notifications
You must be signed in to change notification settings - Fork 29
CertSAN added as a patch json in clusterclass patches #372
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
base: main
Are you sure you want to change the base?
Changes from all commits
5749ce9
0e7f589
a0371ac
702e470
368500f
3db0b9f
b1717cd
b6556c9
26cba45
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -345,6 +345,11 @@ spec: | |||||||||||||||||||||||||||||||
| sudo: ALL=(ALL) NOPASSWD:ALL | ||||||||||||||||||||||||||||||||
| sshAuthorizedKeys: | ||||||||||||||||||||||||||||||||
| - '{{ .sshKey }}' | ||||||||||||||||||||||||||||||||
| - op: add | ||||||||||||||||||||||||||||||||
| path: /spec/template/spec/kubeadmConfigSpec/clusterConfiguration/apiServer | ||||||||||||||||||||||||||||||||
| valueFrom: | ||||||||||||||||||||||||||||||||
| template: | | ||||||||||||||||||||||||||||||||
| certSANs: [ {{ .apiServerSigningCertExtraCertSANs }} ] | ||||||||||||||||||||||||||||||||
|
Comment on lines
+348
to
+352
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is the limitation of inline patches and the difficulty of testing it :( I would suggest something like this (this is already being tested in DKP in e2e tests). This initializes an empty array and then sets or simplified (untested): |
||||||||||||||||||||||||||||||||
| selector: | ||||||||||||||||||||||||||||||||
| apiVersion: controlplane.cluster.x-k8s.io/v1beta1 | ||||||||||||||||||||||||||||||||
| kind: KubeadmControlPlaneTemplate | ||||||||||||||||||||||||||||||||
|
|
@@ -498,6 +503,13 @@ spec: | |||||||||||||||||||||||||||||||
| port: | ||||||||||||||||||||||||||||||||
| type: integer | ||||||||||||||||||||||||||||||||
| type: object | ||||||||||||||||||||||||||||||||
| - name: apiServerSigningCertExtraCertSANs | ||||||||||||||||||||||||||||||||
| required: true | ||||||||||||||||||||||||||||||||
| schema: | ||||||||||||||||||||||||||||||||
| openAPIV3Schema: | ||||||||||||||||||||||||||||||||
| description: Set extra Subject Alternative Names (SANs) for the API Server | ||||||||||||||||||||||||||||||||
| signing certificate. | ||||||||||||||||||||||||||||||||
| type: string | ||||||||||||||||||||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this should be a list of strings
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. wanted to avoid any issue as mentioned in kubernetes-sigs/cluster-api#6245
Comment on lines
+506
to
+512
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. And then you can make this an optional list.
Suggested change
|
||||||||||||||||||||||||||||||||
| - name: prismCentralEndpoint | ||||||||||||||||||||||||||||||||
| required: true | ||||||||||||||||||||||||||||||||
| schema: | ||||||||||||||||||||||||||||||||
|
|
@@ -604,10 +616,6 @@ spec: | |||||||||||||||||||||||||||||||
| kubeadmConfigSpec: | ||||||||||||||||||||||||||||||||
| clusterConfiguration: | ||||||||||||||||||||||||||||||||
| apiServer: | ||||||||||||||||||||||||||||||||
| certSANs: | ||||||||||||||||||||||||||||||||
| - localhost | ||||||||||||||||||||||||||||||||
| - 127.0.0.1 | ||||||||||||||||||||||||||||||||
| - 0.0.0.0 | ||||||||||||||||||||||||||||||||
| extraArgs: | ||||||||||||||||||||||||||||||||
| cloud-provider: external | ||||||||||||||||||||||||||||||||
| tls-cipher-suites: ${TLS_CIPHER_SUITES=TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256,TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256} | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -52,6 +52,8 @@ spec: | |
| systemDiskSize: ${NUTANIX_SYSTEMDISK_SIZE=40Gi} | ||
| vcpuSockets: ${NUTANIX_MACHINE_VCPU_SOCKET=2} | ||
| vcpusPerSocket: ${NUTANIX_MACHINE_VCPU_PER_SOCKET=1} | ||
| - name: apiServerSigningCertExtraCertSANs | ||
| value: localhost, 127.0.0.1, 0.0.0.0 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this should be a list of strings rather than a CSV string |
||
| version: ${KUBERNETES_VERSION} | ||
| workers: | ||
| machineDeployments: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -99,6 +99,11 @@ spec: | |
| sudo: ALL=(ALL) NOPASSWD:ALL | ||
| sshAuthorizedKeys: | ||
| - '{{ .sshKey }}' | ||
| - op: add | ||
| path: /spec/template/spec/kubeadmConfigSpec/clusterConfiguration/apiServer | ||
| valueFrom: | ||
| template: | | ||
| certSANs: [ {{ .apiServerSigningCertExtraCertSANs }} ] | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this should just be |
||
| - selector: | ||
| apiVersion: bootstrap.cluster.x-k8s.io/v1beta1 | ||
| kind: KubeadmConfigTemplate | ||
|
|
@@ -246,6 +251,12 @@ spec: | |
| port: | ||
| type: integer | ||
| type: object | ||
| - name: apiServerSigningCertExtraCertSANs | ||
| required: true | ||
| schema: | ||
| openAPIV3Schema: | ||
| description: Set extra Subject Alternative Names (SANs) for the API Server signing certificate. | ||
| type: string | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this should be a list of strings |
||
| - name: prismCentralEndpoint | ||
| required: true | ||
| schema: | ||
|
|
||
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.
this should just be
{{ .apiServerSigningCertExtraCertSANs }}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.
could you please elaborate why it should be? it works current way