mirror of https://github.com/kubernetes/kops.git
Add a new field for using a custom registry for Cilium
Signed-off-by: Jack Andersen <jandersen@plaid.com>
This commit is contained in:
parent
3395a4e048
commit
af6269f82a
|
@ -5117,6 +5117,10 @@ spec:
|
||||||
reconfigureKubelet:
|
reconfigureKubelet:
|
||||||
description: ReconfigureKubelet is unused.
|
description: ReconfigureKubelet is unused.
|
||||||
type: boolean
|
type: boolean
|
||||||
|
registry:
|
||||||
|
description: Registry overrides the default Cilium container
|
||||||
|
registry (quay.io)
|
||||||
|
type: string
|
||||||
removeCbrBridge:
|
removeCbrBridge:
|
||||||
description: RemoveCbrBridge is unused.
|
description: RemoveCbrBridge is unused.
|
||||||
type: boolean
|
type: boolean
|
||||||
|
|
|
@ -331,6 +331,9 @@ const (
|
||||||
|
|
||||||
// CiliumNetworkingSpec declares that we want Cilium networking
|
// CiliumNetworkingSpec declares that we want Cilium networking
|
||||||
type CiliumNetworkingSpec struct {
|
type CiliumNetworkingSpec struct {
|
||||||
|
// Registry overrides the default Cilium container registry (quay.io)
|
||||||
|
Registry string `json:"registry,omitempty"`
|
||||||
|
|
||||||
// Version is the version of the Cilium agent and the Cilium Operator.
|
// Version is the version of the Cilium agent and the Cilium Operator.
|
||||||
Version string `json:"version,omitempty"`
|
Version string `json:"version,omitempty"`
|
||||||
|
|
||||||
|
|
|
@ -296,6 +296,9 @@ const (
|
||||||
|
|
||||||
// CiliumNetworkingSpec declares that we want Cilium networking
|
// CiliumNetworkingSpec declares that we want Cilium networking
|
||||||
type CiliumNetworkingSpec struct {
|
type CiliumNetworkingSpec struct {
|
||||||
|
// Registry overrides the default Cilium container registry (quay.io)
|
||||||
|
Registry string `json:"registry,omitempty"`
|
||||||
|
|
||||||
// Version is the version of the Cilium agent and the Cilium Operator.
|
// Version is the version of the Cilium agent and the Cilium Operator.
|
||||||
Version string `json:"version,omitempty"`
|
Version string `json:"version,omitempty"`
|
||||||
|
|
||||||
|
|
|
@ -1908,6 +1908,7 @@ func Convert_kops_CertManagerConfig_To_v1alpha2_CertManagerConfig(in *kops.CertM
|
||||||
}
|
}
|
||||||
|
|
||||||
func autoConvert_v1alpha2_CiliumNetworkingSpec_To_kops_CiliumNetworkingSpec(in *CiliumNetworkingSpec, out *kops.CiliumNetworkingSpec, s conversion.Scope) error {
|
func autoConvert_v1alpha2_CiliumNetworkingSpec_To_kops_CiliumNetworkingSpec(in *CiliumNetworkingSpec, out *kops.CiliumNetworkingSpec, s conversion.Scope) error {
|
||||||
|
out.Registry = in.Registry
|
||||||
out.Version = in.Version
|
out.Version = in.Version
|
||||||
out.MemoryRequest = in.MemoryRequest
|
out.MemoryRequest = in.MemoryRequest
|
||||||
out.CPURequest = in.CPURequest
|
out.CPURequest = in.CPURequest
|
||||||
|
@ -2020,6 +2021,7 @@ func autoConvert_v1alpha2_CiliumNetworkingSpec_To_kops_CiliumNetworkingSpec(in *
|
||||||
}
|
}
|
||||||
|
|
||||||
func autoConvert_kops_CiliumNetworkingSpec_To_v1alpha2_CiliumNetworkingSpec(in *kops.CiliumNetworkingSpec, out *CiliumNetworkingSpec, s conversion.Scope) error {
|
func autoConvert_kops_CiliumNetworkingSpec_To_v1alpha2_CiliumNetworkingSpec(in *kops.CiliumNetworkingSpec, out *CiliumNetworkingSpec, s conversion.Scope) error {
|
||||||
|
out.Registry = in.Registry
|
||||||
out.Version = in.Version
|
out.Version = in.Version
|
||||||
out.MemoryRequest = in.MemoryRequest
|
out.MemoryRequest = in.MemoryRequest
|
||||||
out.CPURequest = in.CPURequest
|
out.CPURequest = in.CPURequest
|
||||||
|
|
|
@ -294,6 +294,9 @@ type CiliumEncryptionType string
|
||||||
|
|
||||||
// CiliumNetworkingSpec declares that we want Cilium networking
|
// CiliumNetworkingSpec declares that we want Cilium networking
|
||||||
type CiliumNetworkingSpec struct {
|
type CiliumNetworkingSpec struct {
|
||||||
|
// Registry overrides the default Cilium container registry (quay.io)
|
||||||
|
Registry string `json:"registry,omitempty"`
|
||||||
|
|
||||||
// Version is the version of the Cilium agent and the Cilium Operator.
|
// Version is the version of the Cilium agent and the Cilium Operator.
|
||||||
Version string `json:"version,omitempty"`
|
Version string `json:"version,omitempty"`
|
||||||
|
|
||||||
|
|
|
@ -2090,6 +2090,7 @@ func Convert_kops_CertManagerConfig_To_v1alpha3_CertManagerConfig(in *kops.CertM
|
||||||
}
|
}
|
||||||
|
|
||||||
func autoConvert_v1alpha3_CiliumNetworkingSpec_To_kops_CiliumNetworkingSpec(in *CiliumNetworkingSpec, out *kops.CiliumNetworkingSpec, s conversion.Scope) error {
|
func autoConvert_v1alpha3_CiliumNetworkingSpec_To_kops_CiliumNetworkingSpec(in *CiliumNetworkingSpec, out *kops.CiliumNetworkingSpec, s conversion.Scope) error {
|
||||||
|
out.Registry = in.Registry
|
||||||
out.Version = in.Version
|
out.Version = in.Version
|
||||||
out.MemoryRequest = in.MemoryRequest
|
out.MemoryRequest = in.MemoryRequest
|
||||||
out.CPURequest = in.CPURequest
|
out.CPURequest = in.CPURequest
|
||||||
|
@ -2155,6 +2156,7 @@ func Convert_v1alpha3_CiliumNetworkingSpec_To_kops_CiliumNetworkingSpec(in *Cili
|
||||||
}
|
}
|
||||||
|
|
||||||
func autoConvert_kops_CiliumNetworkingSpec_To_v1alpha3_CiliumNetworkingSpec(in *kops.CiliumNetworkingSpec, out *CiliumNetworkingSpec, s conversion.Scope) error {
|
func autoConvert_kops_CiliumNetworkingSpec_To_v1alpha3_CiliumNetworkingSpec(in *kops.CiliumNetworkingSpec, out *CiliumNetworkingSpec, s conversion.Scope) error {
|
||||||
|
out.Registry = in.Registry
|
||||||
out.Version = in.Version
|
out.Version = in.Version
|
||||||
out.MemoryRequest = in.MemoryRequest
|
out.MemoryRequest = in.MemoryRequest
|
||||||
out.CPURequest = in.CPURequest
|
out.CPURequest = in.CPURequest
|
||||||
|
|
|
@ -750,7 +750,7 @@ spec:
|
||||||
- name: CILIUM_ENABLE_POLICY
|
- name: CILIUM_ENABLE_POLICY
|
||||||
value: {{ . }}
|
value: {{ . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
image: "quay.io/cilium/cilium:{{ .Version }}"
|
image: "{{ or .Registry "quay.io" }}/cilium/cilium:{{ .Version }}"
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
lifecycle:
|
lifecycle:
|
||||||
postStart:
|
postStart:
|
||||||
|
@ -828,7 +828,7 @@ spec:
|
||||||
{{- if semverCompare "~1.11.15 || ~1.12.8 || >=1.13.1" $semver }}
|
{{- if semverCompare "~1.11.15 || ~1.12.8 || >=1.13.1" $semver }}
|
||||||
- command:
|
- command:
|
||||||
- /install-plugin.sh
|
- /install-plugin.sh
|
||||||
image: "quay.io/cilium/cilium:{{ .Version }}"
|
image: "{{ or .Registry "quay.io" }}/cilium/cilium:{{ .Version }}"
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
name: install-cni-binaries
|
name: install-cni-binaries
|
||||||
resources:
|
resources:
|
||||||
|
@ -868,7 +868,7 @@ spec:
|
||||||
name: cilium-config
|
name: cilium-config
|
||||||
optional: true
|
optional: true
|
||||||
{{- end }}
|
{{- end }}
|
||||||
image: "quay.io/cilium/cilium:{{ .Version }}"
|
image: "{{ or .Registry "quay.io" }}/cilium/cilium:{{ .Version }}"
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
name: clean-cilium-state
|
name: clean-cilium-state
|
||||||
terminationMessagePolicy: FallbackToLogsOnError
|
terminationMessagePolicy: FallbackToLogsOnError
|
||||||
|
@ -1045,7 +1045,7 @@ spec:
|
||||||
value: "{{ APIInternalName }}"
|
value: "{{ APIInternalName }}"
|
||||||
- name: KUBERNETES_SERVICE_PORT
|
- name: KUBERNETES_SERVICE_PORT
|
||||||
value: "443"
|
value: "443"
|
||||||
image: "quay.io/cilium/operator:{{ .Version }}"
|
image: "{{ or .Registry "quay.io" }}/cilium/operator:{{ .Version }}"
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
name: cilium-operator
|
name: cilium-operator
|
||||||
{{ if .EnablePrometheusMetrics }}
|
{{ if .EnablePrometheusMetrics }}
|
||||||
|
@ -1155,7 +1155,7 @@ spec:
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: hubble-relay
|
- name: hubble-relay
|
||||||
image: "quay.io/cilium/hubble-relay:{{ .Version }}"
|
image: "{{ or .Registry "quay.io" }}/cilium/hubble-relay:{{ .Version }}"
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
command:
|
command:
|
||||||
- hubble-relay
|
- hubble-relay
|
||||||
|
|
Loading…
Reference in New Issue