mirror of https://github.com/kubernetes/kops.git
add init image field
This commit is contained in:
parent
6d6508738f
commit
65b750e732
|
@ -3150,6 +3150,9 @@ spec:
|
||||||
imageName:
|
imageName:
|
||||||
description: The container image name to use
|
description: The container image name to use
|
||||||
type: string
|
type: string
|
||||||
|
initImageName:
|
||||||
|
description: The init container image name to use
|
||||||
|
type: string
|
||||||
type: object
|
type: object
|
||||||
calico:
|
calico:
|
||||||
description: CalicoNetworkingSpec declares that we want Calico
|
description: CalicoNetworkingSpec declares that we want Calico
|
||||||
|
|
|
@ -250,6 +250,8 @@ type RomanaNetworkingSpec struct {
|
||||||
type AmazonVPCNetworkingSpec struct {
|
type AmazonVPCNetworkingSpec struct {
|
||||||
// The container image name to use
|
// The container image name to use
|
||||||
ImageName string `json:"imageName,omitempty"`
|
ImageName string `json:"imageName,omitempty"`
|
||||||
|
// The init container image name to use
|
||||||
|
InitImageName string `json:"initImageName,omitempty"`
|
||||||
// Env is a list of environment variables to set in the container.
|
// Env is a list of environment variables to set in the container.
|
||||||
Env []EnvVar `json:"env,omitempty"`
|
Env []EnvVar `json:"env,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
|
@ -250,6 +250,8 @@ type RomanaNetworkingSpec struct {
|
||||||
type AmazonVPCNetworkingSpec struct {
|
type AmazonVPCNetworkingSpec struct {
|
||||||
// The container image name to use
|
// The container image name to use
|
||||||
ImageName string `json:"imageName,omitempty"`
|
ImageName string `json:"imageName,omitempty"`
|
||||||
|
// The init container image name to use
|
||||||
|
InitImageName string `json:"initImageName,omitempty"`
|
||||||
// Env is a list of environment variables to set in the container.
|
// Env is a list of environment variables to set in the container.
|
||||||
Env []EnvVar `json:"env,omitempty"`
|
Env []EnvVar `json:"env,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
|
@ -1268,6 +1268,7 @@ func Convert_kops_AlwaysAllowAuthorizationSpec_To_v1alpha2_AlwaysAllowAuthorizat
|
||||||
|
|
||||||
func autoConvert_v1alpha2_AmazonVPCNetworkingSpec_To_kops_AmazonVPCNetworkingSpec(in *AmazonVPCNetworkingSpec, out *kops.AmazonVPCNetworkingSpec, s conversion.Scope) error {
|
func autoConvert_v1alpha2_AmazonVPCNetworkingSpec_To_kops_AmazonVPCNetworkingSpec(in *AmazonVPCNetworkingSpec, out *kops.AmazonVPCNetworkingSpec, s conversion.Scope) error {
|
||||||
out.ImageName = in.ImageName
|
out.ImageName = in.ImageName
|
||||||
|
out.InitImageName = in.InitImageName
|
||||||
if in.Env != nil {
|
if in.Env != nil {
|
||||||
in, out := &in.Env, &out.Env
|
in, out := &in.Env, &out.Env
|
||||||
*out = make([]kops.EnvVar, len(*in))
|
*out = make([]kops.EnvVar, len(*in))
|
||||||
|
@ -1289,6 +1290,7 @@ func Convert_v1alpha2_AmazonVPCNetworkingSpec_To_kops_AmazonVPCNetworkingSpec(in
|
||||||
|
|
||||||
func autoConvert_kops_AmazonVPCNetworkingSpec_To_v1alpha2_AmazonVPCNetworkingSpec(in *kops.AmazonVPCNetworkingSpec, out *AmazonVPCNetworkingSpec, s conversion.Scope) error {
|
func autoConvert_kops_AmazonVPCNetworkingSpec_To_v1alpha2_AmazonVPCNetworkingSpec(in *kops.AmazonVPCNetworkingSpec, out *AmazonVPCNetworkingSpec, s conversion.Scope) error {
|
||||||
out.ImageName = in.ImageName
|
out.ImageName = in.ImageName
|
||||||
|
out.InitImageName = in.InitImageName
|
||||||
if in.Env != nil {
|
if in.Env != nil {
|
||||||
in, out := &in.Env, &out.Env
|
in, out := &in.Env, &out.Env
|
||||||
*out = make([]EnvVar, len(*in))
|
*out = make([]EnvVar, len(*in))
|
||||||
|
|
|
@ -191,7 +191,7 @@
|
||||||
- "env":
|
- "env":
|
||||||
- "name": "DISABLE_TCP_EARLY_DEMUX"
|
- "name": "DISABLE_TCP_EARLY_DEMUX"
|
||||||
"value": "false"
|
"value": "false"
|
||||||
"image": "602401143452.dkr.ecr.us-west-2.amazonaws.com/amazon-k8s-cni-init:v1.7.10"
|
"image": "{{- or .Networking.AmazonVPC.InitImageName "602401143452.dkr.ecr.us-west-2.amazonaws.com/amazon-k8s-cni-init:v1.7.10" }}"
|
||||||
"imagePullPolicy": "Always"
|
"imagePullPolicy": "Always"
|
||||||
"name": "aws-vpc-cni-init"
|
"name": "aws-vpc-cni-init"
|
||||||
"securityContext":
|
"securityContext":
|
||||||
|
|
Loading…
Reference in New Issue