v1alpha1

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package v1alpha1 contains the core resources of the styra provider. +kubebuilder:object:generate=true +groupName=styra.crossplane.io +versionName=v1alpha1

Index

Constants

View Source
const (
	Group   = "styra.crossplane.io"
	Version = "v1alpha1"
)

Package type metadata.

Variables

View Source
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}
)
View Source
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

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

func (in *Stack) DeepCopy() *Stack

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Stack.

func (*Stack) DeepCopyInto

func (in *Stack) DeepCopyInto(out *Stack)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Stack) DeepCopyObject

func (in *Stack) DeepCopyObject() runtime.Object

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

func (mg *Stack) GetProviderConfigReference() *xpv1.Reference

GetProviderConfigReference of this Stack.

func (*Stack) GetProviderReference

func (mg *Stack) GetProviderReference() *xpv1.Reference

GetProviderReference of this Stack. Deprecated: Use GetProviderConfigReference.

func (*Stack) GetWriteConnectionSecretToReference

func (mg *Stack) GetWriteConnectionSecretToReference() *xpv1.SecretReference

GetWriteConnectionSecretToReference of this Stack.

func (*Stack) SetConditions

func (mg *Stack) SetConditions(c ...xpv1.Condition)

SetConditions of this Stack.

func (*Stack) SetDeletionPolicy

func (mg *Stack) SetDeletionPolicy(r xpv1.DeletionPolicy)

SetDeletionPolicy of this Stack.

func (*Stack) SetProviderConfigReference

func (mg *Stack) SetProviderConfigReference(r *xpv1.Reference)

SetProviderConfigReference of this Stack.

func (*Stack) SetProviderReference

func (mg *Stack) SetProviderReference(r *xpv1.Reference)

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

func (in *StackList) DeepCopy() *StackList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StackList.

func (*StackList) DeepCopyInto

func (in *StackList) DeepCopyInto(out *StackList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*StackList) DeepCopyObject

func (in *StackList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*StackList) GetItems

func (l *StackList) GetItems() []resource.Managed

GetItems of this StackList.

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

func (in *StackSpec) DeepCopy() *StackSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StackSpec.

func (*StackSpec) DeepCopyInto

func (in *StackSpec) DeepCopyInto(out *StackSpec)

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL