v1alpha1

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

+kubebuilder:object:generate=true +groupName=kubeconfig.taikun.jet.crossplane.io +versionName=v1alpha1

Index

Constants

View Source
const (
	CRDGroup   = "kubeconfig.taikun.jet.crossplane.io"
	CRDVersion = "v1alpha1"
)

Package type metadata.

Variables

View Source
var (
	// CRDGroupVersion is the API Group Version used to register the objects
	CRDGroupVersion = schema.GroupVersion{Group: CRDGroup, Version: CRDVersion}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: CRDGroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var (
	Kubeconfig_Kind             = "Kubeconfig"
	Kubeconfig_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: Kubeconfig_Kind}.String()
	Kubeconfig_KindAPIVersion   = Kubeconfig_Kind + "." + CRDGroupVersion.String()
	Kubeconfig_GroupVersionKind = CRDGroupVersion.WithKind(Kubeconfig_Kind)
)

Repository type metadata.

Functions

This section is empty.

Types

type Kubeconfig

type Kubeconfig struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              KubeconfigSpec   `json:"spec"`
	Status            KubeconfigStatus `json:"status,omitempty"`
}

Kubeconfig is the Schema for the Kubeconfigs API. <no value> +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:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,taikunjet}

func (*Kubeconfig) DeepCopy

func (in *Kubeconfig) DeepCopy() *Kubeconfig

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

func (*Kubeconfig) DeepCopyInto

func (in *Kubeconfig) DeepCopyInto(out *Kubeconfig)

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

func (*Kubeconfig) DeepCopyObject

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

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

func (*Kubeconfig) GetCondition

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

GetCondition of this Kubeconfig.

func (*Kubeconfig) GetConnectionDetailsMapping

func (tr *Kubeconfig) GetConnectionDetailsMapping() map[string]string

GetConnectionDetailsMapping for this Kubeconfig

func (*Kubeconfig) GetDeletionPolicy

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

GetDeletionPolicy of this Kubeconfig.

func (*Kubeconfig) GetID

func (tr *Kubeconfig) GetID() string

GetID returns ID of underlying Terraform resource of this Kubeconfig

func (*Kubeconfig) GetObservation

func (tr *Kubeconfig) GetObservation() (map[string]any, error)

GetObservation of this Kubeconfig

func (*Kubeconfig) GetParameters

func (tr *Kubeconfig) GetParameters() (map[string]any, error)

GetParameters of this Kubeconfig

func (*Kubeconfig) GetProviderConfigReference

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

GetProviderConfigReference of this Kubeconfig.

func (*Kubeconfig) GetProviderReference

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

GetProviderReference of this Kubeconfig. Deprecated: Use GetProviderConfigReference.

func (*Kubeconfig) GetPublishConnectionDetailsTo

func (mg *Kubeconfig) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo

GetPublishConnectionDetailsTo of this Kubeconfig.

func (*Kubeconfig) GetTerraformResourceType

func (mg *Kubeconfig) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this Kubeconfig

func (*Kubeconfig) GetTerraformSchemaVersion

func (tr *Kubeconfig) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*Kubeconfig) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this Kubeconfig.

func (*Kubeconfig) LateInitialize

func (tr *Kubeconfig) LateInitialize(attrs []byte) (bool, error)

LateInitialize this Kubeconfig using its observed tfState. returns True if there are any spec changes for the resource.

func (*Kubeconfig) ResolveReferences

func (mg *Kubeconfig) ResolveReferences(ctx context.Context, c client.Reader) error

ResolveReferences of this Kubeconfig.

func (*Kubeconfig) SetConditions

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

SetConditions of this Kubeconfig.

func (*Kubeconfig) SetDeletionPolicy

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

SetDeletionPolicy of this Kubeconfig.

func (*Kubeconfig) SetObservation

func (tr *Kubeconfig) SetObservation(obs map[string]any) error

SetObservation for this Kubeconfig

func (*Kubeconfig) SetParameters

func (tr *Kubeconfig) SetParameters(params map[string]any) error

SetParameters for this Kubeconfig

func (*Kubeconfig) SetProviderConfigReference

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

SetProviderConfigReference of this Kubeconfig.

func (*Kubeconfig) SetProviderReference

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

SetProviderReference of this Kubeconfig. Deprecated: Use SetProviderConfigReference.

func (*Kubeconfig) SetPublishConnectionDetailsTo

func (mg *Kubeconfig) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)

SetPublishConnectionDetailsTo of this Kubeconfig.

func (*Kubeconfig) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this Kubeconfig.

type KubeconfigList

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

KubeconfigList contains a list of Kubeconfigs

func (*KubeconfigList) DeepCopy

func (in *KubeconfigList) DeepCopy() *KubeconfigList

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

func (*KubeconfigList) DeepCopyInto

func (in *KubeconfigList) DeepCopyInto(out *KubeconfigList)

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

func (*KubeconfigList) DeepCopyObject

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

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

func (*KubeconfigList) GetItems

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

GetItems of this KubeconfigList.

type KubeconfigObservation

type KubeconfigObservation struct {
	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// Name of the kubeconfig's project.
	ProjectName *string `json:"projectName,omitempty" tf:"project_name,omitempty"`
}

func (*KubeconfigObservation) DeepCopy

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

func (*KubeconfigObservation) DeepCopyInto

func (in *KubeconfigObservation) DeepCopyInto(out *KubeconfigObservation)

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

type KubeconfigParameters

type KubeconfigParameters struct {

	// Who can use the kubeconfig: `personal` (only you), `managers` (managers only) or `all` (all users with access to this project).
	// +kubebuilder:validation:Required
	AccessScope *string `json:"accessScope" tf:"access_scope,omitempty"`

	// The kubeconfig's name.
	// +kubebuilder:validation:Required
	Name *string `json:"name" tf:"name,omitempty"`

	// The kubeconfig's namespace.
	// +kubebuilder:validation:Optional
	Namespace *string `json:"namespace,omitempty" tf:"namespace,omitempty"`

	// ID of the kubeconfig's project.
	// +crossplane:generate:reference:type=github.com/itera-io/provider-jet-taikun/apis/project/v1alpha1.Project
	// +kubebuilder:validation:Optional
	ProjectID *string `json:"projectId,omitempty" tf:"project_id,omitempty"`

	// Reference to a Project in project to populate projectId.
	// +kubebuilder:validation:Optional
	ProjectIDRef *v1.Reference `json:"projectIdRef,omitempty" tf:"-"`

	// Selector for a Project in project to populate projectId.
	// +kubebuilder:validation:Optional
	ProjectIDSelector *v1.Selector `json:"projectIdSelector,omitempty" tf:"-"`

	// The kubeconfig's role: `cluster-admin`, `admin`, `edit` or `view`.
	// +kubebuilder:validation:Required
	Role *string `json:"role" tf:"role,omitempty"`

	// ID of the kubeconfig's user, if the kubeconfig is personal.
	// +crossplane:generate:reference:type=github.com/itera-io/provider-jet-taikun/apis/user/v1alpha1.User
	// +kubebuilder:validation:Optional
	UserID *string `json:"userId,omitempty" tf:"user_id,omitempty"`

	// Reference to a User in user to populate userId.
	// +kubebuilder:validation:Optional
	UserIDRef *v1.Reference `json:"userIdRef,omitempty" tf:"-"`

	// Selector for a User in user to populate userId.
	// +kubebuilder:validation:Optional
	UserIDSelector *v1.Selector `json:"userIdSelector,omitempty" tf:"-"`

	// The kubeconfig's validity period in minutes. Unlimited (-1) by default. Defaults to `-1`.
	// +kubebuilder:validation:Optional
	ValidityPeriod *float64 `json:"validityPeriod,omitempty" tf:"validity_period,omitempty"`
}

func (*KubeconfigParameters) DeepCopy

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

func (*KubeconfigParameters) DeepCopyInto

func (in *KubeconfigParameters) DeepCopyInto(out *KubeconfigParameters)

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

type KubeconfigSpec

type KubeconfigSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     KubeconfigParameters `json:"forProvider"`
}

KubeconfigSpec defines the desired state of Kubeconfig

func (*KubeconfigSpec) DeepCopy

func (in *KubeconfigSpec) DeepCopy() *KubeconfigSpec

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

func (*KubeconfigSpec) DeepCopyInto

func (in *KubeconfigSpec) DeepCopyInto(out *KubeconfigSpec)

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

type KubeconfigStatus

type KubeconfigStatus struct {
	v1.ResourceStatus `json:",inline"`
	AtProvider        KubeconfigObservation `json:"atProvider,omitempty"`
}

KubeconfigStatus defines the observed state of Kubeconfig.

func (*KubeconfigStatus) DeepCopy

func (in *KubeconfigStatus) DeepCopy() *KubeconfigStatus

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

func (*KubeconfigStatus) DeepCopyInto

func (in *KubeconfigStatus) DeepCopyInto(out *KubeconfigStatus)

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