v1alpha1

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package v1alpha1 contains the v1alpha1 group release resource of the CloudInit provider. +kubebuilder:object:generate=true +groupName=cloudinit.crossplane.io +versionName=v1alpha1

Index

Constants

View Source
const (
	Group   = "cloudinit.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 (
	ConfigKind             = reflect.TypeOf(Config{}).Name()
	ConfigGroupKind        = schema.GroupKind{Group: Group, Kind: ConfigKind}.String()
	ConfigKindAPIVersion   = ConfigKind + "." + SchemeGroupVersion.String()
	ConfigGroupVersionKind = SchemeGroupVersion.WithKind(ConfigKind)
)

Config type metadata.

Functions

This section is empty.

Types

type Config

type Config struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ConfigSpec   `json:"spec"`
	Status ConfigStatus `json:"status,omitempty"`
}

A Config is an example API type +kubebuilder:subresource:status +kubebuilder:printcolumn:name="CONFIGMAP",type="string",JSONPath=".spec.writeCloudInitToRef.name" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="STATE",type="string",JSONPath=".status.atProvider.state" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:resource:scope=Cluster,categories={crossplane,provider,cloudinit}

func (*Config) DeepCopy

func (in *Config) DeepCopy() *Config

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

func (*Config) DeepCopyInto

func (in *Config) DeepCopyInto(out *Config)

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

func (*Config) DeepCopyObject

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

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

func (*Config) GetCondition

func (mg *Config) GetCondition(ct xpv1.ConditionType) xpv1.Condition

GetCondition of this Config.

func (*Config) GetDeletionPolicy

func (mg *Config) GetDeletionPolicy() xpv1.DeletionPolicy

GetDeletionPolicy of this Config.

func (*Config) GetProviderConfigReference

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

GetProviderConfigReference of this Config.

func (*Config) GetProviderReference

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

GetProviderReference of this Config. Deprecated: Use GetProviderConfigReference.

func (*Config) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this Config.

func (*Config) SetConditions

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

SetConditions of this Config.

func (*Config) SetDeletionPolicy

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

SetDeletionPolicy of this Config.

func (*Config) SetProviderConfigReference

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

SetProviderConfigReference of this Config.

func (*Config) SetProviderReference

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

SetProviderReference of this Config. Deprecated: Use SetProviderConfigReference.

func (*Config) SetWriteConnectionSecretToReference

func (mg *Config) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)

SetWriteConnectionSecretToReference of this Config.

type ConfigList

type ConfigList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Config `json:"items"`
}

ConfigList contains a list of Config

func (*ConfigList) DeepCopy

func (in *ConfigList) DeepCopy() *ConfigList

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

func (*ConfigList) DeepCopyInto

func (in *ConfigList) DeepCopyInto(out *ConfigList)

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

func (*ConfigList) DeepCopyObject

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

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

func (*ConfigList) GetItems

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

GetItems of this ConfigList.

type ConfigObservation

type ConfigObservation struct {
	State string `json:"state,omitempty"`
}

ConfigObservation are the observable fields of a Config.

func (*ConfigObservation) DeepCopy

func (in *ConfigObservation) DeepCopy() *ConfigObservation

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

func (*ConfigObservation) DeepCopyInto

func (in *ConfigObservation) DeepCopyInto(out *ConfigObservation)

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

type ConfigParameters

type ConfigParameters struct {
	Gzip         bool `json:"gzip,omitempty"`
	Base64Encode bool `json:"base64Encode,omitempty"`

	// Boundary is the optional mime-boundary. It defaults to a random UUIDv4
	Boundary string `json:"boundary,omitempty"`

	Parts []PartSpec `json:"parts,omitempty"`
}

ConfigParameters are the configurable fields of a Config.

func (*ConfigParameters) DeepCopy

func (in *ConfigParameters) DeepCopy() *ConfigParameters

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

func (*ConfigParameters) DeepCopyInto

func (in *ConfigParameters) DeepCopyInto(out *ConfigParameters)

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

type ConfigSpec

type ConfigSpec struct {
	xpv1.ResourceSpec   `json:",inline"`
	ForProvider         ConfigParameters `json:"forProvider"`
	WriteCloudInitToRef *DataKeySelector `json:"writeCloudInitToRef,omitempty"`
}

A ConfigSpec defines the desired state of a Config.

func (*ConfigSpec) DeepCopy

func (in *ConfigSpec) DeepCopy() *ConfigSpec

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

func (*ConfigSpec) DeepCopyInto

func (in *ConfigSpec) DeepCopyInto(out *ConfigSpec)

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

type ConfigStatus

type ConfigStatus struct {
	xpv1.ResourceStatus `json:",inline"`
	AtProvider          ConfigObservation `json:"atProvider,omitempty"`
	Failed              int32             `json:"failed,omitempty"`
	Synced              bool              `json:"synced,omitempty"`
}

A ConfigStatus represents the observed state of a Config.

func (*ConfigStatus) DeepCopy

func (in *ConfigStatus) DeepCopy() *ConfigStatus

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

func (*ConfigStatus) DeepCopyInto

func (in *ConfigStatus) DeepCopyInto(out *ConfigStatus)

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

type ContentFromSource

type ContentFromSource struct {
	ConfigMapKeyRef *DataKeySelector `json:"configMapKeyRef,omitempty"`
	SecretKeyRef    *DataKeySelector `json:"secretKeyRef,omitempty"`
}

ContentFromSource represents source of a value

func (*ContentFromSource) DeepCopy

func (in *ContentFromSource) DeepCopy() *ContentFromSource

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

func (*ContentFromSource) DeepCopyInto

func (in *ContentFromSource) DeepCopyInto(out *ContentFromSource)

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

type DataKeySelector

type DataKeySelector struct {
	NamespacedName `json:",inline,omitempty"`
	Key            string `json:"key,omitempty"`
	Optional       bool   `json:"optional,omitempty"`
}

DataKeySelector defines required spec to access a key of a configmap or secret

func (*DataKeySelector) DeepCopy

func (in *DataKeySelector) DeepCopy() *DataKeySelector

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

func (*DataKeySelector) DeepCopyInto

func (in *DataKeySelector) DeepCopyInto(out *DataKeySelector)

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

type NamespacedName

type NamespacedName struct {
	Namespace string `json:"namespace"`
	Name      string `json:"name"`
}

NamespacedName represents a namespaced object name

func (*NamespacedName) DeepCopy

func (in *NamespacedName) DeepCopy() *NamespacedName

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

func (*NamespacedName) DeepCopyInto

func (in *NamespacedName) DeepCopyInto(out *NamespacedName)

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

type PartSpec

type PartSpec struct {
	ContentFromSource `json:",inline,omitempty"`
	ContentType       string `json:"contentType,omitempty"`
	Content           string `json:"content,omitempty"`
	Filename          string `json:"filename,omitempty"`
	MergeType         string `json:"mergeType,omitempty"`
}

PartSpec defines the Part spec for a Config

func (*PartSpec) DeepCopy

func (in *PartSpec) DeepCopy() *PartSpec

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

func (*PartSpec) DeepCopyInto

func (in *PartSpec) DeepCopyInto(out *PartSpec)

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