Skip to content

Commit

Permalink
add MCO management of api-int CA
Browse files Browse the repository at this point in the history
Signed-off-by: Charlie Doern <cdoern@redhat.com>
  • Loading branch information
cdoern committed Jan 9, 2024
1 parent c7a2d3b commit 080718c
Show file tree
Hide file tree
Showing 10 changed files with 36 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ spec:
- dns
- images
- infra
- internalAPICert
- ipFamilies
- kubeAPIServerServingCAData
- network
Expand Down Expand Up @@ -1527,6 +1528,10 @@ spec:
type: string
nullable: true
x-kubernetes-embedded-resource: true
internalAPICert:
description: InternalAPICert is used to generate and update /etc/kubelet/kubeconfig
type: string
format: byte
internalRegistryPullSecret:
description: internalRegistryPullSecret is the pull secret for the internal registry, used by rpm-ostree to pull images from the internal registry if present
type: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ spec:
- dns
- images
- infra
- internalAPICert
- ipFamilies
- kubeAPIServerServingCAData
- network
Expand Down Expand Up @@ -1330,6 +1331,10 @@ spec:
type: string
nullable: true
x-kubernetes-embedded-resource: true
internalAPICert:
description: InternalAPICert is used to generate and update /etc/kubelet/kubeconfig
type: string
format: byte
internalRegistryPullSecret:
description: internalRegistryPullSecret is the pull secret for the internal registry, used by rpm-ostree to pull images from the internal registry if present
type: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ spec:
- dns
- images
- infra
- internalAPICert
- ipFamilies
- kubeAPIServerServingCAData
- network
Expand Down Expand Up @@ -1527,6 +1528,10 @@ spec:
type: string
nullable: true
x-kubernetes-embedded-resource: true
internalAPICert:
description: InternalAPICert is used to generate and update /etc/kubelet/kubeconfig
type: string
format: byte
internalRegistryPullSecret:
description: internalRegistryPullSecret is the pull secret for the internal registry, used by rpm-ostree to pull images from the internal registry if present
type: string
Expand Down
5 changes: 5 additions & 0 deletions machineconfiguration/v1/0000_80_controllerconfig.crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ spec:
- dns
- images
- infra
- internalAPICert
- ipFamilies
- kubeAPIServerServingCAData
- network
Expand Down Expand Up @@ -1329,6 +1330,10 @@ spec:
type: string
nullable: true
x-kubernetes-embedded-resource: true
internalAPICert:
description: InternalAPICert is used to generate and update /etc/kubelet/kubeconfig
type: string
format: byte
internalRegistryPullSecret:
description: internalRegistryPullSecret is the pull secret for the internal registry, used by rpm-ostree to pull images from the internal registry if present
type: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ tests:
apiVersion: machineconfiguration.openshift.io/v1
kind: ControllerConfig
spec:
internalAPICert: aaaaaaa
additionalTrustBundle: Y2VydGlmaWNhdGUK
baseOSContainerImage: example.com/example/openshift-release-dev@sha256:d98795f7932441b30bb8bcfbbf05912875383fad1f2b3be08a22ec148d68607e
baseOSExtensionsContainerImage: example.com/example/openshift-release-dev@sha256:d98795f7932441b30bb8bcfbbf05912875383fad1f2b3be08a22ec148d68607e
Expand Down Expand Up @@ -66,6 +67,7 @@ tests:
apiVersion: machineconfiguration.openshift.io/v1
kind: ControllerConfig
spec:
internalAPICert: aaaaaaa
additionalTrustBundle: Y2VydGlmaWNhdGUK
baseOSContainerImage: example.com/example/openshift-release-dev@sha256:d98795f7932441b30bb8bcfbbf05912875383fad1f2b3be08a22ec148d68607e
baseOSExtensionsContainerImage: example.com/example/openshift-release-dev@sha256:d98795f7932441b30bb8bcfbbf05912875383fad1f2b3be08a22ec148d68607e
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ tests:
apiVersion: machineconfiguration.openshift.io/v1
kind: ControllerConfig
spec:
internalAPICert: aaaaaaa
additionalTrustBundle: Y2VydGlmaWNhdGUK
baseOSContainerImage: example.com/example/openshift-release-dev@sha256:d98795f7932441b30bb8bcfbbf05912875383fad1f2b3be08a22ec148d68607e
baseOSExtensionsContainerImage: example.com/example/openshift-release-dev@sha256:d98795f7932441b30bb8bcfbbf05912875383fad1f2b3be08a22ec148d68607e
Expand Down Expand Up @@ -56,6 +57,7 @@ tests:
apiVersion: machineconfiguration.openshift.io/v1
kind: ControllerConfig
spec:
internalAPICert: aaaaaaa
additionalTrustBundle: Y2VydGlmaWNhdGUK
baseOSContainerImage: example.com/example/openshift-release-dev@sha256:d98795f7932441b30bb8bcfbbf05912875383fad1f2b3be08a22ec148d68607e
baseOSExtensionsContainerImage: example.com/example/openshift-release-dev@sha256:d98795f7932441b30bb8bcfbbf05912875383fad1f2b3be08a22ec148d68607e
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ tests:
apiVersion: machineconfiguration.openshift.io/v1
kind: ControllerConfig
spec:
internalAPICert: aaaaaaa
additionalTrustBundle: Y2VydGlmaWNhdGUK
baseOSContainerImage: example.com/example/openshift-release-dev@sha256:d98795f7932441b30bb8bcfbbf05912875383fad1f2b3be08a22ec148d68607e
baseOSExtensionsContainerImage: example.com/example/openshift-release-dev@sha256:d98795f7932441b30bb8bcfbbf05912875383fad1f2b3be08a22ec148d68607e
Expand Down Expand Up @@ -66,6 +67,7 @@ tests:
apiVersion: machineconfiguration.openshift.io/v1
kind: ControllerConfig
spec:
internalAPICert: aaaaaaa
additionalTrustBundle: Y2VydGlmaWNhdGUK
baseOSContainerImage: example.com/example/openshift-release-dev@sha256:d98795f7932441b30bb8bcfbbf05912875383fad1f2b3be08a22ec148d68607e
baseOSExtensionsContainerImage: example.com/example/openshift-release-dev@sha256:d98795f7932441b30bb8bcfbbf05912875383fad1f2b3be08a22ec148d68607e
Expand Down
4 changes: 4 additions & 0 deletions machineconfiguration/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ type ControllerConfigSpec struct {
// +nullable
InternalRegistryPullSecret []byte `json:"internalRegistryPullSecret"`

// InternalAPICert is used to generate and update /etc/kubelet/kubeconfig
// +kubebuilder:validation:Required
InternalAPICert []byte `json:"internalAPICert"`

// images is map of images that are used by the controller to render templates under ./templates/
// +kubebuilder:validation:Required
Images map[string]string `json:"images"`
Expand Down
5 changes: 5 additions & 0 deletions machineconfiguration/v1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 080718c

Please sign in to comment.