diff --git a/config/crd/bases/config.nri_balloonspolicies.yaml b/config/crd/bases/config.nri_balloonspolicies.yaml index 178c7d280..3edae6472 100644 --- a/config/crd/bases/config.nri_balloonspolicies.yaml +++ b/config/crd/bases/config.nri_balloonspolicies.yaml @@ -106,6 +106,18 @@ spec: items: type: string type: array + preferCloseToDevices: + description: 'PreferCloseToDevices: prefer creating new balloons + of this type close to listed devices.' + items: + type: string + type: array + preferFarFromDevices: + description: 'PreferFarFromDevices: prefer creating new balloons + of this type far from listed devices.' + items: + type: string + type: array preferNewBalloons: description: 'PreferNewBalloons: prefer creating new balloons over adding containers to existing balloons. The default is @@ -147,6 +159,8 @@ spec: type: string required: - name + - preferCloseToDevices + - preferFarFromDevices type: object type: array control: diff --git a/deployment/helm/balloons/crds/config.nri_balloonspolicies.yaml b/deployment/helm/balloons/crds/config.nri_balloonspolicies.yaml index 07121dd55..3edae6472 100644 --- a/deployment/helm/balloons/crds/config.nri_balloonspolicies.yaml +++ b/deployment/helm/balloons/crds/config.nri_balloonspolicies.yaml @@ -107,7 +107,14 @@ spec: type: string type: array preferCloseToDevices: - description: prefer creating new balloons of this type close to listed devices. + description: 'PreferCloseToDevices: prefer creating new balloons + of this type close to listed devices.' + items: + type: string + type: array + preferFarFromDevices: + description: 'PreferFarFromDevices: prefer creating new balloons + of this type far from listed devices.' items: type: string type: array @@ -152,6 +159,8 @@ spec: type: string required: - name + - preferCloseToDevices + - preferFarFromDevices type: object type: array control: diff --git a/pkg/apis/config/v1alpha1/resmgr/policy/balloons/zz_generated.deepcopy.go b/pkg/apis/config/v1alpha1/resmgr/policy/balloons/zz_generated.deepcopy.go index c443ed6e3..be332eaae 100644 --- a/pkg/apis/config/v1alpha1/resmgr/policy/balloons/zz_generated.deepcopy.go +++ b/pkg/apis/config/v1alpha1/resmgr/policy/balloons/zz_generated.deepcopy.go @@ -41,6 +41,16 @@ func (in *BalloonDef) DeepCopyInto(out *BalloonDef) { *out = new(bool) **out = **in } + if in.PreferCloseToDevices != nil { + in, out := &in.PreferCloseToDevices, &out.PreferCloseToDevices + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.PreferFarFromDevices != nil { + in, out := &in.PreferFarFromDevices, &out.PreferFarFromDevices + *out = make([]string, len(*in)) + copy(*out, *in) + } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BalloonDef.