Documentation ¶
Overview ¶
Package v1alpha1 contains the core resources of the styra provider. +kubebuilder:object:generate=true +groupName=styra.crossplane.io +versionName=v1alpha1
Index ¶
- Constants
- Variables
- type CustomStackParameters
- type Stack
- func (in *Stack) DeepCopy() *Stack
- func (in *Stack) DeepCopyInto(out *Stack)
- func (in *Stack) DeepCopyObject() runtime.Object
- func (mg *Stack) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (mg *Stack) GetDeletionPolicy() xpv1.DeletionPolicy
- func (mg *Stack) GetProviderConfigReference() *xpv1.Reference
- func (mg *Stack) GetProviderReference() *xpv1.Reference
- func (mg *Stack) GetWriteConnectionSecretToReference() *xpv1.SecretReference
- func (mg *Stack) SetConditions(c ...xpv1.Condition)
- func (mg *Stack) SetDeletionPolicy(r xpv1.DeletionPolicy)
- func (mg *Stack) SetProviderConfigReference(r *xpv1.Reference)
- func (mg *Stack) SetProviderReference(r *xpv1.Reference)
- func (mg *Stack) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
- type StackList
- type StackParameters
- type StackSpec
- type StackStatus
- type V1GitRepoConfig
- type V1SourceControlConfig
Constants ¶
const ( Group = "styra.crossplane.io" Version = "v1alpha1" )
Package type metadata.
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: Group, Version: Version} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} )
var ( StackKind = reflect.TypeOf(Stack{}).Name() StackGroupKind = schema.GroupKind{Group: Group, Kind: StackKind}.String() StackKindAPIVersion = StackKind + "." + SchemeGroupVersion.String() StackGroupVersionKind = SchemeGroupVersion.WithKind(StackKind) )
Stack type metadata.
Functions ¶
This section is empty.
Types ¶
type CustomStackParameters ¶
type CustomStackParameters struct { // SelectorInclude used to identify systems to apply stack to SelectorInclude map[string][]string `json:"selectorInclude,omitempty"` // SelectorExclude used to exclude systems from stack application SelectorExclude map[string][]string `json:"selectorExclude,omitempty"` }
CustomStackParameters that are not part of the Styra API
func (*CustomStackParameters) DeepCopy ¶
func (in *CustomStackParameters) DeepCopy() *CustomStackParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomStackParameters.
func (*CustomStackParameters) DeepCopyInto ¶
func (in *CustomStackParameters) DeepCopyInto(out *CustomStackParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Stack ¶
type Stack struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec StackSpec `json:"spec"` Status StackStatus `json:"status,omitempty"` }
A Stack is the schema for Styra Stacks API +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +kubebuilder:subresource:status +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,styra}
func (*Stack) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Stack.
func (*Stack) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Stack) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Stack) GetCondition ¶
func (mg *Stack) GetCondition(ct xpv1.ConditionType) xpv1.Condition
GetCondition of this Stack.
func (*Stack) GetDeletionPolicy ¶
func (mg *Stack) GetDeletionPolicy() xpv1.DeletionPolicy
GetDeletionPolicy of this Stack.
func (*Stack) GetProviderConfigReference ¶
GetProviderConfigReference of this Stack.
func (*Stack) GetProviderReference ¶
GetProviderReference of this Stack. Deprecated: Use GetProviderConfigReference.
func (*Stack) GetWriteConnectionSecretToReference ¶
func (mg *Stack) GetWriteConnectionSecretToReference() *xpv1.SecretReference
GetWriteConnectionSecretToReference of this Stack.
func (*Stack) SetConditions ¶
SetConditions of this Stack.
func (*Stack) SetDeletionPolicy ¶
func (mg *Stack) SetDeletionPolicy(r xpv1.DeletionPolicy)
SetDeletionPolicy of this Stack.
func (*Stack) SetProviderConfigReference ¶
SetProviderConfigReference of this Stack.
func (*Stack) SetProviderReference ¶
SetProviderReference of this Stack. Deprecated: Use SetProviderConfigReference.
func (*Stack) SetWriteConnectionSecretToReference ¶
func (mg *Stack) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
SetWriteConnectionSecretToReference of this Stack.
type StackList ¶
type StackList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Stack `json:"items"` }
StackList contains a list of Stack
func (*StackList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StackList.
func (*StackList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*StackList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type StackParameters ¶
type StackParameters struct { CustomStackParameters `json:",inline"` // description // +kubebuilder:validation:Required Description string `json:"description"` // read only // +kubebuilder:validation:Required ReadOnly bool `json:"readOnly"` // source control // +optional SourceControl *V1SourceControlConfig `json:"sourceControl,omitempty"` // type // +kubebuilder:validation:Required Type string `json:"type"` }
A StackParameters defines desired state of a Stack
func (*StackParameters) DeepCopy ¶
func (in *StackParameters) DeepCopy() *StackParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StackParameters.
func (*StackParameters) DeepCopyInto ¶
func (in *StackParameters) DeepCopyInto(out *StackParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StackSpec ¶
type StackSpec struct { xpv1.ResourceSpec `json:",inline"` ForProvider StackParameters `json:"forProvider"` }
A StackSpec defines the desired state of a Stack.
func (*StackSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StackSpec.
func (*StackSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StackStatus ¶
type StackStatus struct {
xpv1.ResourceStatus `json:",inline"`
}
A StackStatus represents the status of a Stack.
func (*StackStatus) DeepCopy ¶
func (in *StackStatus) DeepCopy() *StackStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StackStatus.
func (*StackStatus) DeepCopyInto ¶
func (in *StackStatus) DeepCopyInto(out *StackStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type V1GitRepoConfig ¶
type V1GitRepoConfig struct { // Credentials are looked under the key <name>/<creds> // +kubebuilder:validation:Required Credentials string `json:"credentials"` // Path to limit the import to // +kubebuilder:validation:Required Path string `json:"path"` // Remote reference, defaults to refs/heads/master // +kubebuilder:validation:Required Reference string `json:"reference"` // Repository URL // +kubebuilder:validation:Required URL string `json:"url"` }
V1GitRepoConfig v1 git repo config
func (*V1GitRepoConfig) DeepCopy ¶
func (in *V1GitRepoConfig) DeepCopy() *V1GitRepoConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new V1GitRepoConfig.
func (*V1GitRepoConfig) DeepCopyInto ¶
func (in *V1GitRepoConfig) DeepCopyInto(out *V1GitRepoConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type V1SourceControlConfig ¶
type V1SourceControlConfig struct { // origin // +kubebuilder:validation:Required Origin V1GitRepoConfig `json:"origin"` }
V1SourceControlConfig v1 source control config
func (*V1SourceControlConfig) DeepCopy ¶
func (in *V1SourceControlConfig) DeepCopy() *V1SourceControlConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new V1SourceControlConfig.
func (*V1SourceControlConfig) DeepCopyInto ¶
func (in *V1SourceControlConfig) DeepCopyInto(out *V1SourceControlConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.