mirror of https://github.com/kubernetes/kops.git
Add new API field for VPC CNI's network policy agent image
This commit is contained in:
parent
ae8fa06e07
commit
f639cb5bd8
|
@ -4856,6 +4856,10 @@ spec:
|
|||
description: InitImageName is the init container image name
|
||||
to use.
|
||||
type: string
|
||||
networkPolicyAgentImage:
|
||||
description: NetworkPolicyAgentImage is the container image
|
||||
to use for the network policy agent
|
||||
type: string
|
||||
type: object
|
||||
calico:
|
||||
description: CalicoNetworkingSpec declares that we want Calico
|
||||
|
|
|
@ -316,6 +316,8 @@ type AmazonVPCNetworkingSpec struct {
|
|||
Image string `json:"image,omitempty"`
|
||||
// InitImage is the init container image name to use.
|
||||
InitImage string `json:"initImage,omitempty"`
|
||||
// NetworkPolicyAgentImage is the container image to use for the network policy agent
|
||||
NetworkPolicyAgentImage string `json:"networkPolicyAgentImage,omitempty"`
|
||||
// Env is a list of environment variables to set in the container.
|
||||
Env []EnvVar `json:"env,omitempty"`
|
||||
}
|
||||
|
|
|
@ -281,6 +281,8 @@ type AmazonVPCNetworkingSpec struct {
|
|||
Image string `json:"imageName,omitempty"`
|
||||
// InitImageName is the init container image name to use.
|
||||
InitImage string `json:"initImageName,omitempty"`
|
||||
// NetworkPolicyAgentImage is the container image to use for the network policy agent
|
||||
NetworkPolicyAgentImage string `json:"networkPolicyAgentImage,omitempty"`
|
||||
// Env is a list of environment variables to set in the container.
|
||||
Env []EnvVar `json:"env,omitempty"`
|
||||
}
|
||||
|
|
|
@ -1504,6 +1504,7 @@ func Convert_kops_AlwaysAllowAuthorizationSpec_To_v1alpha2_AlwaysAllowAuthorizat
|
|||
func autoConvert_v1alpha2_AmazonVPCNetworkingSpec_To_kops_AmazonVPCNetworkingSpec(in *AmazonVPCNetworkingSpec, out *kops.AmazonVPCNetworkingSpec, s conversion.Scope) error {
|
||||
out.Image = in.Image
|
||||
out.InitImage = in.InitImage
|
||||
out.NetworkPolicyAgentImage = in.NetworkPolicyAgentImage
|
||||
if in.Env != nil {
|
||||
in, out := &in.Env, &out.Env
|
||||
*out = make([]kops.EnvVar, len(*in))
|
||||
|
@ -1526,6 +1527,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 {
|
||||
out.Image = in.Image
|
||||
out.InitImage = in.InitImage
|
||||
out.NetworkPolicyAgentImage = in.NetworkPolicyAgentImage
|
||||
if in.Env != nil {
|
||||
in, out := &in.Env, &out.Env
|
||||
*out = make([]EnvVar, len(*in))
|
||||
|
|
|
@ -286,6 +286,8 @@ type AmazonVPCNetworkingSpec struct {
|
|||
Image string `json:"image,omitempty"`
|
||||
// InitImage is the init container image name to use.
|
||||
InitImage string `json:"initImage,omitempty"`
|
||||
// NetworkPolicyAgentImage is the container image to use for the network policy agent
|
||||
NetworkPolicyAgentImage string `json:"networkPolicyAgentImage,omitempty"`
|
||||
// Env is a list of environment variables to set in the container.
|
||||
Env []EnvVar `json:"env,omitempty"`
|
||||
}
|
||||
|
|
|
@ -1664,6 +1664,7 @@ func Convert_kops_AlwaysAllowAuthorizationSpec_To_v1alpha3_AlwaysAllowAuthorizat
|
|||
func autoConvert_v1alpha3_AmazonVPCNetworkingSpec_To_kops_AmazonVPCNetworkingSpec(in *AmazonVPCNetworkingSpec, out *kops.AmazonVPCNetworkingSpec, s conversion.Scope) error {
|
||||
out.Image = in.Image
|
||||
out.InitImage = in.InitImage
|
||||
out.NetworkPolicyAgentImage = in.NetworkPolicyAgentImage
|
||||
if in.Env != nil {
|
||||
in, out := &in.Env, &out.Env
|
||||
*out = make([]kops.EnvVar, len(*in))
|
||||
|
@ -1686,6 +1687,7 @@ func Convert_v1alpha3_AmazonVPCNetworkingSpec_To_kops_AmazonVPCNetworkingSpec(in
|
|||
func autoConvert_kops_AmazonVPCNetworkingSpec_To_v1alpha3_AmazonVPCNetworkingSpec(in *kops.AmazonVPCNetworkingSpec, out *AmazonVPCNetworkingSpec, s conversion.Scope) error {
|
||||
out.Image = in.Image
|
||||
out.InitImage = in.InitImage
|
||||
out.NetworkPolicyAgentImage = in.NetworkPolicyAgentImage
|
||||
if in.Env != nil {
|
||||
in, out := &in.Env, &out.Env
|
||||
*out = make([]EnvVar, len(*in))
|
||||
|
|
Loading…
Reference in New Issue