Documentation ¶
Overview ¶
Package unversioned contains the internal representation of mutator objects
Index ¶
- Constants
- Variables
- func DeepCopyWithPlaceholders(u *unstructured.Unstructured) *unstructured.Unstructured
- type Assign
- type AssignField
- type AssignImage
- type AssignImageList
- type AssignImageParameters
- type AssignImageSpec
- type AssignImageStatus
- type AssignList
- type AssignMetadata
- type AssignMetadataList
- type AssignMetadataSpec
- type AssignMetadataStatus
- type AssignSpec
- type AssignStatus
- type ExternalData
- type ExternalDataPlaceholder
- type Field
- type FromMetadata
- type MetadataParameters
- type ModifySet
- type ModifySetList
- type ModifySetParameters
- type ModifySetSpec
- type ModifySetStatus
- type Operation
- type Parameters
- type PathTest
- type Values
Constants ¶
const ( // ObjNamespace => metadata.namespace. ObjNamespace = Field("namespace") // ObjName => metadata.name. ObjName = Field("name") )
Variables ¶
var ( ErrExternalDataFeatureFlag = errors.New("external data feature flag is not enabled") ErrExternalDataNoDefault = errors.New("`default` must not be empty when `failurePolicy` is set to `UseDefault`") )
var ( ErrInvalidAssignField = errors.New("invalid assign field") ErrInvalidFromMetadata = errors.New("invalid fromMetadata field") )
Functions ¶
func DeepCopyWithPlaceholders ¶
func DeepCopyWithPlaceholders(u *unstructured.Unstructured) *unstructured.Unstructured
DeepCopyWithPlaceholders returns a deep copy of the object.
Types ¶
type Assign ¶
type Assign struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec AssignSpec `json:"spec,omitempty"` Status AssignStatus `json:"status,omitempty"` }
Assign is the Schema for the assign API.
func (*Assign) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Assign.
func (*Assign) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Assign) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AssignField ¶
type AssignField struct { // Value is a constant value that will be assigned to `location` // +kubebuilder:validation:Schemaless // +kubebuilder:validation:XPreserveUnknownFields Value *types.Anything `json:"value,omitempty"` // FromMetadata assigns a value from the specified metadata field. FromMetadata *FromMetadata `json:"fromMetadata,omitempty"` // ExternalData describes the external data provider to be used for mutation. ExternalData *ExternalData `json:"externalData,omitempty"` }
func (*AssignField) DeepCopy ¶
func (in *AssignField) DeepCopy() *AssignField
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AssignField.
func (*AssignField) DeepCopyInto ¶
func (in *AssignField) DeepCopyInto(out *AssignField)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AssignField) GetValue ¶
func (a *AssignField) GetValue(mutable *types.Mutable) (interface{}, error)
func (*AssignField) Validate ¶
func (a *AssignField) Validate() error
type AssignImage ¶
type AssignImage struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec AssignImageSpec `json:"spec,omitempty"` Status AssignImageStatus `json:"status,omitempty"` }
AssignImage is the Schema for the assign API.
func (*AssignImage) DeepCopy ¶
func (in *AssignImage) DeepCopy() *AssignImage
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AssignImage.
func (*AssignImage) DeepCopyInto ¶
func (in *AssignImage) DeepCopyInto(out *AssignImage)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AssignImage) DeepCopyObject ¶
func (in *AssignImage) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AssignImageList ¶
type AssignImageList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []AssignImage `json:"items"` }
AssignImageList contains a list of AssignImage.
func (*AssignImageList) DeepCopy ¶
func (in *AssignImageList) DeepCopy() *AssignImageList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AssignImageList.
func (*AssignImageList) DeepCopyInto ¶
func (in *AssignImageList) DeepCopyInto(out *AssignImageList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AssignImageList) DeepCopyObject ¶
func (in *AssignImageList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AssignImageParameters ¶
type AssignImageParameters struct { PathTests []PathTest `json:"pathTests,omitempty"` // AssignDomain sets the domain component on an image string. The trailing // slash should not be included. AssignDomain string `json:"assignDomain,omitempty"` // AssignPath sets the domain component on an image string. AssignPath string `json:"assignPath,omitempty"` // AssignImage sets the image component on an image string. It must start // with a `:` or `@`. AssignTag string `json:"assignTag,omitempty"` }
func (*AssignImageParameters) DeepCopy ¶
func (in *AssignImageParameters) DeepCopy() *AssignImageParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AssignImageParameters.
func (*AssignImageParameters) DeepCopyInto ¶
func (in *AssignImageParameters) DeepCopyInto(out *AssignImageParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AssignImageSpec ¶
type AssignImageSpec struct { // ApplyTo lists the specific groups, versions and kinds a mutation will be applied to. // This is necessary because every mutation implies part of an object schema and object // schemas are associated with specific GVKs. ApplyTo []match.ApplyTo `json:"applyTo,omitempty"` // Match allows the user to limit which resources get mutated. // Individual match criteria are AND-ed together. An undefined // match criteria matches everything. Match match.Match `json:"match,omitempty"` // Location describes the path to be mutated, for example: `spec.containers[name: main].image`. Location string `json:"location,omitempty"` // Parameters define the behavior of the mutator. Parameters AssignImageParameters `json:"parameters,omitempty"` }
AssignImageSpec defines the desired state of AssignImage.
func (*AssignImageSpec) DeepCopy ¶
func (in *AssignImageSpec) DeepCopy() *AssignImageSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AssignImageSpec.
func (*AssignImageSpec) DeepCopyInto ¶
func (in *AssignImageSpec) DeepCopyInto(out *AssignImageSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AssignImageStatus ¶
type AssignImageStatus struct {
ByPod []v1beta1.MutatorPodStatusStatus `json:"byPod,omitempty"`
}
AssignImageStatus defines the observed state of AssignImage.
func (*AssignImageStatus) DeepCopy ¶
func (in *AssignImageStatus) DeepCopy() *AssignImageStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AssignImageStatus.
func (*AssignImageStatus) DeepCopyInto ¶
func (in *AssignImageStatus) DeepCopyInto(out *AssignImageStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AssignList ¶
type AssignList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Assign `json:"items"` }
AssignList contains a list of Assign.
func (*AssignList) DeepCopy ¶
func (in *AssignList) DeepCopy() *AssignList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AssignList.
func (*AssignList) DeepCopyInto ¶
func (in *AssignList) DeepCopyInto(out *AssignList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AssignList) DeepCopyObject ¶
func (in *AssignList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AssignMetadata ¶
type AssignMetadata struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec AssignMetadataSpec `json:"spec,omitempty"` Status AssignMetadataStatus `json:"status,omitempty"` }
AssignMetadata is the Schema for the assignmetadata API.
func (*AssignMetadata) DeepCopy ¶
func (in *AssignMetadata) DeepCopy() *AssignMetadata
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AssignMetadata.
func (*AssignMetadata) DeepCopyInto ¶
func (in *AssignMetadata) DeepCopyInto(out *AssignMetadata)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AssignMetadata) DeepCopyObject ¶
func (in *AssignMetadata) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AssignMetadataList ¶
type AssignMetadataList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []AssignMetadata `json:"items"` }
AssignMetadataList contains a list of AssignMetadata.
func (*AssignMetadataList) DeepCopy ¶
func (in *AssignMetadataList) DeepCopy() *AssignMetadataList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AssignMetadataList.
func (*AssignMetadataList) DeepCopyInto ¶
func (in *AssignMetadataList) DeepCopyInto(out *AssignMetadataList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AssignMetadataList) DeepCopyObject ¶
func (in *AssignMetadataList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AssignMetadataSpec ¶
type AssignMetadataSpec struct { Match match.Match `json:"match,omitempty"` Location string `json:"location,omitempty"` Parameters MetadataParameters `json:"parameters,omitempty"` }
AssignMetadataSpec defines the desired state of AssignMetadata.
func (*AssignMetadataSpec) DeepCopy ¶
func (in *AssignMetadataSpec) DeepCopy() *AssignMetadataSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AssignMetadataSpec.
func (*AssignMetadataSpec) DeepCopyInto ¶
func (in *AssignMetadataSpec) DeepCopyInto(out *AssignMetadataSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AssignMetadataStatus ¶
type AssignMetadataStatus struct { // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster // Important: Run "make" to regenerate code after modifying this file ByPod []v1beta1.MutatorPodStatusStatus `json:"byPod,omitempty"` }
AssignMetadataStatus defines the observed state of AssignMetadata.
func (*AssignMetadataStatus) DeepCopy ¶
func (in *AssignMetadataStatus) DeepCopy() *AssignMetadataStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AssignMetadataStatus.
func (*AssignMetadataStatus) DeepCopyInto ¶
func (in *AssignMetadataStatus) DeepCopyInto(out *AssignMetadataStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AssignSpec ¶
type AssignSpec struct { // ApplyTo lists the specific groups, versions and kinds a mutation will be applied to. // This is necessary because every mutation implies part of an object schema and object // schemas are associated with specific GVKs. ApplyTo []match.ApplyTo `json:"applyTo,omitempty"` // Match allows the user to limit which resources get mutated. // Individual match criteria are AND-ed together. An undefined // match criteria matches everything. Match match.Match `json:"match,omitempty"` // Location describes the path to be mutated, for example: `spec.containers[name: main]`. Location string `json:"location,omitempty"` // Parameters define the behavior of the mutator. Parameters Parameters `json:"parameters,omitempty"` }
AssignSpec defines the desired state of Assign.
func (*AssignSpec) DeepCopy ¶
func (in *AssignSpec) DeepCopy() *AssignSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AssignSpec.
func (*AssignSpec) DeepCopyInto ¶
func (in *AssignSpec) DeepCopyInto(out *AssignSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AssignStatus ¶
type AssignStatus struct {
ByPod []v1beta1.MutatorPodStatusStatus `json:"byPod,omitempty"`
}
AssignStatus defines the observed state of Assign.
func (*AssignStatus) DeepCopy ¶
func (in *AssignStatus) DeepCopy() *AssignStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AssignStatus.
func (*AssignStatus) DeepCopyInto ¶
func (in *AssignStatus) DeepCopyInto(out *AssignStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ExternalData ¶
type ExternalData struct { // Provider is the name of the external data provider. // +kubebuilder:validation:Required Provider string `json:"provider,omitempty"` // DataSource specifies where to extract the data that will be sent // to the external data provider as parameters. // +kubebuilder:default="ValueAtLocation" DataSource types.ExternalDataSource `json:"dataSource,omitempty"` // FailurePolicy specifies the policy to apply when the external data // provider returns an error. // +kubebuilder:default="Fail" FailurePolicy types.ExternalDataFailurePolicy `json:"failurePolicy,omitempty"` // Default specifies the default value to use when the external data // provider returns an error and the failure policy is set to "UseDefault". Default string `json:"default,omitempty"` }
ExternalData describes the external data source to use for the mutation.
func (*ExternalData) DeepCopy ¶
func (in *ExternalData) DeepCopy() *ExternalData
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalData.
func (*ExternalData) DeepCopyInto ¶
func (in *ExternalData) DeepCopyInto(out *ExternalData)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ExternalData) GetPlaceholder ¶
func (e *ExternalData) GetPlaceholder() *ExternalDataPlaceholder
GetPlaceholder returns the placeholder for the given external data provider.
func (*ExternalData) Validate ¶
func (e *ExternalData) Validate() error
Validate validates the external data configuration.
type ExternalDataPlaceholder ¶
type ExternalDataPlaceholder struct { // Ref is the reference to the external data object. Ref *ExternalData // ValueAtLocation is the current value of the field that will // eventually be resolved by an external data provider. ValueAtLocation string }
ExternalDataPlaceholder contains a placeholder value for a field that will eventually be resolved by an external data provider.
func (*ExternalDataPlaceholder) DeepCopy ¶
func (in *ExternalDataPlaceholder) DeepCopy() *ExternalDataPlaceholder
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalDataPlaceholder.
func (*ExternalDataPlaceholder) DeepCopyInto ¶
func (in *ExternalDataPlaceholder) DeepCopyInto(out *ExternalDataPlaceholder)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FromMetadata ¶
type FromMetadata struct { // Field specifies which metadata field provides the assigned value. Valid fields are `namespace` and `name`. Field Field `json:"field,omitempty"` }
func (*FromMetadata) DeepCopy ¶
func (in *FromMetadata) DeepCopy() *FromMetadata
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FromMetadata.
func (*FromMetadata) DeepCopyInto ¶
func (in *FromMetadata) DeepCopyInto(out *FromMetadata)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*FromMetadata) GetValue ¶
func (fm *FromMetadata) GetValue(obj types.MetadataGetter) (string, error)
func (*FromMetadata) Validate ¶
func (fm *FromMetadata) Validate() error
type MetadataParameters ¶
type MetadataParameters struct { // Assign.value holds the value to be assigned Assign AssignField `json:"assign,omitempty"` }
func (*MetadataParameters) DeepCopy ¶
func (in *MetadataParameters) DeepCopy() *MetadataParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetadataParameters.
func (*MetadataParameters) DeepCopyInto ¶
func (in *MetadataParameters) DeepCopyInto(out *MetadataParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ModifySet ¶
type ModifySet struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ModifySetSpec `json:"spec,omitempty"` Status ModifySetStatus `json:"status,omitempty"` }
ModifySet allows the user to modify non-keyed lists, such as the list of arguments to a container.
func (*ModifySet) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ModifySet.
func (*ModifySet) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ModifySet) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ModifySetList ¶
type ModifySetList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ModifySet `json:"items"` }
ModifySetList contains a list of ModifySet.
func (*ModifySetList) DeepCopy ¶
func (in *ModifySetList) DeepCopy() *ModifySetList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ModifySetList.
func (*ModifySetList) DeepCopyInto ¶
func (in *ModifySetList) DeepCopyInto(out *ModifySetList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ModifySetList) DeepCopyObject ¶
func (in *ModifySetList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ModifySetParameters ¶
type ModifySetParameters struct { // PathTests are a series of existence tests that can be checked // before a mutation is applied PathTests []PathTest `json:"pathTests,omitempty"` // Operation describes whether values should be merged in ("merge"), or pruned ("prune"). Default value is "merge" // +kubebuilder:validation:Enum=merge;prune // +kubebuilder:default=merge Operation Operation `json:"operation,omitempty"` // Values describes the values provided to the operation as `values.fromList`. // +kubebuilder:validation:Schemaless // +kubebuilder:validation:Type=object // +kubebuilder:validation:XPreserveUnknownFields Values Values `json:"values,omitempty"` }
func (*ModifySetParameters) DeepCopy ¶
func (in *ModifySetParameters) DeepCopy() *ModifySetParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ModifySetParameters.
func (*ModifySetParameters) DeepCopyInto ¶
func (in *ModifySetParameters) DeepCopyInto(out *ModifySetParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ModifySetSpec ¶
type ModifySetSpec struct { // ApplyTo lists the specific groups, versions and kinds a mutation will be applied to. // This is necessary because every mutation implies part of an object schema and object // schemas are associated with specific GVKs. ApplyTo []match.ApplyTo `json:"applyTo,omitempty"` // Match allows the user to limit which resources get mutated. // Individual match criteria are AND-ed together. An undefined // match criteria matches everything. Match match.Match `json:"match,omitempty"` // Location describes the path to be mutated, for example: `spec.containers[name: main].args`. Location string `json:"location,omitempty"` // Parameters define the behavior of the mutator. Parameters ModifySetParameters `json:"parameters,omitempty"` }
ModifySetSpec defines the desired state of ModifySet.
func (*ModifySetSpec) DeepCopy ¶
func (in *ModifySetSpec) DeepCopy() *ModifySetSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ModifySetSpec.
func (*ModifySetSpec) DeepCopyInto ¶
func (in *ModifySetSpec) DeepCopyInto(out *ModifySetSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ModifySetStatus ¶
type ModifySetStatus struct {
ByPod []v1beta1.MutatorPodStatusStatus `json:"byPod,omitempty"`
}
ModifySetStatus defines the observed state of ModifySet.
func (*ModifySetStatus) DeepCopy ¶
func (in *ModifySetStatus) DeepCopy() *ModifySetStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ModifySetStatus.
func (*ModifySetStatus) DeepCopyInto ¶
func (in *ModifySetStatus) DeepCopyInto(out *ModifySetStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Parameters ¶
type Parameters struct { PathTests []PathTest `json:"pathTests,omitempty"` // Assign.value holds the value to be assigned Assign AssignField `json:"assign,omitempty"` }
func (*Parameters) DeepCopy ¶
func (in *Parameters) DeepCopy() *Parameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Parameters.
func (*Parameters) DeepCopyInto ¶
func (in *Parameters) DeepCopyInto(out *Parameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PathTest ¶
type PathTest struct { SubPath string `json:"subPath,omitempty"` Condition tester.Condition `json:"condition,omitempty"` }
PathTest allows the user to customize how the mutation works if parent paths are missing. It traverses the list in order. All sub paths are tested against the provided condition, if the test fails, the mutation is not applied. All `subPath` entries must be a prefix of `location`. Any glob characters will take on the same value as was used to expand the matching glob in `location`.
Available Tests: * MustExist - the path must exist or do not mutate * MustNotExist - the path must not exist or do not mutate.
func (*PathTest) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PathTest.
func (*PathTest) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Values ¶
type Values struct {
FromList []interface{} `json:"fromList,omitempty"`
}
Values describes the values provided to the operation. +kubebuilder:object:generate=false