diff --git a/pkg/controller/v1alpha1/cluster_types.go b/pkg/controller/v1alpha1/cluster_types.go index 63efbe8..8619483 100644 --- a/pkg/controller/v1alpha1/cluster_types.go +++ b/pkg/controller/v1alpha1/cluster_types.go @@ -57,6 +57,9 @@ type ClusterSpec struct { NetworkInterface string `json:"networkInterface,omitempty"` //put in an object ClusterProperty ClusterProperty `json:"clusterProperty,omitempty"` + // EnableAutoEviction is a flag to enable auto eviction feature for the given cluster + EnableAutoEviction bool `json:"enableAutoEviction,omitempty"` + RequeueOnFailure bool `json:"requeueOnFailure,omitempty"` } type ClusterProperty struct { diff --git a/pkg/controller/v1alpha1/project_types.go b/pkg/controller/v1alpha1/project_types.go index 114a6c7..08be4a4 100644 --- a/pkg/controller/v1alpha1/project_types.go +++ b/pkg/controller/v1alpha1/project_types.go @@ -24,6 +24,8 @@ import ( type ProjectSpec struct { // ServiceAccount is a field of Project. Edit project_types.go to remove/update ServiceAccount ServiceAccount `json:"serviceAccount,omitempty"` + // If defaultSliceCreation is true, then the default slice will be created + DefaultSliceCreation bool `json:"defaultSliceCreation,omitempty"` } // ServiceAccount defines the field of ProjectSpec diff --git a/pkg/controller/v1alpha1/zz_generated.deepcopy.go b/pkg/controller/v1alpha1/zz_generated.deepcopy.go index 0490636..f195839 100644 --- a/pkg/controller/v1alpha1/zz_generated.deepcopy.go +++ b/pkg/controller/v1alpha1/zz_generated.deepcopy.go @@ -1,5 +1,4 @@ //go:build !ignore_autogenerated -// +build !ignore_autogenerated /* Copyright (c) 2022 Avesha, Inc. All rights reserved. SPDX-License-Identifier: Apache-2.0 @@ -209,6 +208,7 @@ func (in *ExternalGatewayConfig) DeepCopyInto(out *ExternalGatewayConfig) { *out = make([]string, len(*in)) copy(*out, *in) } + out.VPCServiceAccess = in.VPCServiceAccess } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalGatewayConfig. @@ -452,6 +452,23 @@ func (in *QOSProfile) DeepCopy() *QOSProfile { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ServiceAccess) DeepCopyInto(out *ServiceAccess) { + *out = *in + out.Ingress = in.Ingress + out.Egress = in.Egress +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceAccess. +func (in *ServiceAccess) DeepCopy() *ServiceAccess { + if in == nil { + return nil + } + out := new(ServiceAccess) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ServiceAccount) DeepCopyInto(out *ServiceAccount) { *out = *in @@ -995,7 +1012,8 @@ func (in *VpnKeyRotationSpec) DeepCopyInto(out *VpnKeyRotationSpec) { if val == nil { (*out)[key] = nil } else { - in, out := &val, &outVal + inVal := (*in)[key] + in, out := &inVal, &outVal *out = make([]string, len(*in)) copy(*out, *in) } @@ -1045,7 +1063,8 @@ func (in *VpnKeyRotationStatus) DeepCopyInto(out *VpnKeyRotationStatus) { if val == nil { (*out)[key] = nil } else { - in, out := &val, &outVal + inVal := (*in)[key] + in, out := &inVal, &outVal *out = make([]StatusOfKeyRotation, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) diff --git a/pkg/worker/v1alpha1/zz_generated.deepcopy.go b/pkg/worker/v1alpha1/zz_generated.deepcopy.go index bda9ca3..5cd610f 100644 --- a/pkg/worker/v1alpha1/zz_generated.deepcopy.go +++ b/pkg/worker/v1alpha1/zz_generated.deepcopy.go @@ -1,5 +1,4 @@ //go:build !ignore_autogenerated -// +build !ignore_autogenerated /* Copyright (c) 2022 Avesha, Inc. All rights reserved. SPDX-License-Identifier: Apache-2.0 @@ -75,6 +74,7 @@ func (in *ExternalGatewayConfig) DeepCopyInto(out *ExternalGatewayConfig) { out.Ingress = in.Ingress out.Egress = in.Egress out.NsIngress = in.NsIngress + out.VPCServiceAccess = in.VPCServiceAccess } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalGatewayConfig.