File: api/v1alpha1/zz_generated.deepcopy.go | Language: go
if in.MergeType != nil {
in, out := &in.MergeType, &out.MergeType
*out = new(MergeType)
**out = **in
}
if in.MergeType != nil {
out.MergeType = new(MergeType)
*out.MergeType = *in.MergeType
}
File: api/v1alpha1/backendtrafficpolicy_types.go | Language: go
// MergeType determines how this configuration is merged with existing BackendTrafficPolicy
// configurations targeting a parent resource. When set, this configuration will be merged
// into a parent BackendTrafficPolicy (i.e. the one targeting a Gateway or Listener).
// This field cannot be set when targeting a parent resource (Gateway).
// If unset, no merging occurs, and only the most specific configuration takes effect.
// +optional
MergeType *MergeType `json:"mergeType,omitempty"`
// MergeType determines how this configuration is merged with existing BackendTrafficPolicy
// configurations targeting a parent resource. When set, this configuration will be merged
// into a parent BackendTrafficPolicy (i.e. the one targeting a Gateway or Listener).
// This field cannot be set when targeting a parent resource (Gateway).
// If unset, no merging occurs, and only the most specific configuration takes effect.
// +optional
// +kubebuilder:validation:XValidation:rule="self.targetRef.kind != 'Gateway' || !has(self.mergeType)", message="MergeType cannot be set when targeting a Gateway resource"
MergeType *MergeType `json:"mergeType,omitempty"`
File: charts/gateway-helm/crds/generated/gateway.envoyproxy.io_backendtrafficpolicies.yaml | Language: yaml
mergeType:
description: |-
MergeType determines how this configuration is merged with existing BackendTrafficPolicy
configurations targeting a parent resource. When set, this configuration will be merged
into a parent BackendTrafficPolicy (i.e. the one targeting a Gateway or Listener).
This field cannot be set when targeting a parent resource (Gateway).
If unset, no merging occurs, and only the most specific configuration takes effect.
type: string
mergeType:
description: |-
MergeType determines how this configuration is merged with existing BackendTrafficPolicy
configurations targeting a parent resource. When set, this configuration will be merged
into a parent BackendTrafficPolicy (i.e. the one targeting a Gateway or Listener).
This field cannot be set when targeting a parent resource (Gateway).
If unset, no merging occurs, and only the most specific configuration takes effect.
type: string
x-kubernetes-validations:
- rule: "self.targetRef.kind != 'Gateway' || !has(self.mergeType)"
message: "mergeType must not be set when targetRef.kind is 'Gateway'."
File: api/v1alpha1/zz_generated.deepcopy.go | Language: go
if in.MergeType != nil {
in, out := &in.MergeType, &out.MergeType
*out = new(MergeType)
**out = **in
}
if in.MergeType != nil {
t := new(MergeType)
*t = *in.MergeType
out.MergeType = t
}
No suggestions were provided by this model.
No suggestions were provided by this model.
No suggestions were provided by this model.
File: api/v1alpha1/backendtrafficpolicy_types.go | Language: go
MergeType *MergeType `json:"mergeType,omitempty"`
// +kubebuilder:validation:Enum=Replace;Merge
MergeType *MergeType `json:"mergeType,omitempty"`
File: charts/gateway-helm/crds/generated/gateway.envoyproxy.io_backendtrafficpolicies.yaml | Language: yaml
mergeType:
description: |-
MergeType determines how this configuration is merged with existing BackendTrafficPolicy
configurations targeting a parent resource. When set, this configuration will be merged
into a parent BackendTrafficPolicy (i.e. the one targeting a Gateway or Listener).
This field cannot be set when targeting a parent resource (Gateway).
If unset, no merging occurs, and only the most specific configuration takes effect.
type: string
mergeType:
description: |-
MergeType determines how this configuration is merged with existing BackendTrafficPolicy
configurations targeting a parent resource. When set, this configuration will be merged
into a parent BackendTrafficPolicy (i.e. the one targeting a Gateway or Listener).
This field cannot be set when targeting a parent resource (Gateway).
If unset, no merging occurs, and only the most specific configuration takes effect.
type: string
enum:
- Replace
- Merge
File: api/v1alpha1/backendtrafficpolicy_types.go | Language: go
// MergeType determines how this configuration is merged with existing BackendTrafficPolicy
// configurations targeting a parent resource. When set, this configuration will be merged
// into a parent BackendTrafficPolicy (i.e. the one targeting a Gateway or Listener).
// This field cannot be set when targeting a parent resource (Gateway).
// If unset, no merging occurs, and only the most specific configuration takes effect.
// +optional
MergeType *MergeType `json:"mergeType,omitempty"`
// MergeType determines how this configuration is merged with existing BackendTrafficPolicy
// configurations targeting a parent resource. When set, this configuration will be merged
// into a parent BackendTrafficPolicy (i.e. the one targeting a Gateway or Listener).
// This field cannot be set when targeting a parent resource (Gateway).
// If unset, no merging occurs, and only the most specific configuration takes effect.
// +optional
// +kubebuilder:validation:XValidation:rule="self == null || !has(self.__namespace__) || self.__namespace__ != 'Gateway'",message="MergeType cannot be set when targeting a Gateway resource"
MergeType *MergeType `json:"mergeType,omitempty"`
No suggestions were provided by this model.
File: charts/gateway-helm/crds/generated/gateway.envoyproxy.io_backendtrafficpolicies.yaml | Language: yaml
mergeType:
description: |-
MergeType determines how this configuration is merged with existing BackendTrafficPolicy
configurations targeting a parent resource. When set, this configuration will be merged
into a parent BackendTrafficPolicy (i.e. the one targeting a Gateway or Listener).
This field cannot be set when targeting a parent resource (Gateway).
If unset, no merging occurs, and only the most specific configuration takes effect.
type: string
mergeType:
description: |-
MergeType determines how this configuration is merged with existing BackendTrafficPolicy
configurations targeting a parent resource. When set, this configuration will be merged
into a parent BackendTrafficPolicy (i.e. the one targeting a Gateway or Listener).
This field cannot be set when targeting a parent resource (Gateway).
If unset, no merging occurs, and only the most specific configuration takes effect.
type: string
... # other properties
x-kubernetes-validations:
- reason: The MergeType field cannot be set when targeting a Gateway.
rule: '!((self.policyTargetRefs != nil && self.policyTargetRefs.exists(ref, ref.kind == "Gateway")) && self.mergeType != nil)'