v1alpha1

package
v0.5.0 Latest Latest
Warning

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

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

Documentation

Overview

+groupName=cr.ibm.kubeform.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api.
	// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
	SchemeBuilder runtime.SchemeBuilder

	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: cr.GroupName, Version: "v1alpha1"}

Functions

func GetDecoder

func GetDecoder() map[string]jsoniter.ValDecoder

func GetEncoder

func GetEncoder() map[string]jsoniter.ValEncoder

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Namespace

type Namespace struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              NamespaceSpec   `json:"spec,omitempty"`
	Status            NamespaceStatus `json:"status,omitempty"`
}

func (*Namespace) DeepCopy

func (in *Namespace) DeepCopy() *Namespace

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

func (*Namespace) DeepCopyInto

func (in *Namespace) DeepCopyInto(out *Namespace)

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

func (*Namespace) DeepCopyObject

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

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

func (*Namespace) SetupWebhookWithManager

func (r *Namespace) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*Namespace) ValidateCreate

func (r *Namespace) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*Namespace) ValidateDelete

func (r *Namespace) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*Namespace) ValidateUpdate

func (r *Namespace) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type NamespaceList

type NamespaceList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// Items is a list of Namespace CRD objects
	Items []Namespace `json:"items,omitempty"`
}

NamespaceList is a list of Namespaces

func (*NamespaceList) DeepCopy

func (in *NamespaceList) DeepCopy() *NamespaceList

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

func (*NamespaceList) DeepCopyInto

func (in *NamespaceList) DeepCopyInto(out *NamespaceList)

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

func (*NamespaceList) DeepCopyObject

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

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

type NamespaceSpec

type NamespaceSpec struct {
	State *NamespaceSpecResource `json:"state,omitempty" tf:"-"`

	Resource NamespaceSpecResource `json:"resource" tf:"resource"`

	UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"`

	TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"`

	ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"`

	BackendRef *core.LocalObjectReference `json:"backendRef,omitempty" tf:"-"`
}

func (*NamespaceSpec) DeepCopy

func (in *NamespaceSpec) DeepCopy() *NamespaceSpec

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

func (*NamespaceSpec) DeepCopyInto

func (in *NamespaceSpec) DeepCopyInto(out *NamespaceSpec)

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

type NamespaceSpecResource

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

	// The IBM Cloud account that owns the namespace.
	// +optional
	Account *string `json:"account,omitempty" tf:"account"`
	// When the namespace was created.
	// +optional
	CreatedDate *string `json:"createdDate,omitempty" tf:"created_date"`
	// When the namespace was created.
	// +optional
	// Deprecated
	CreatedOn *string `json:"createdOn,omitempty" tf:"created_on"`
	// If the namespace has been assigned to a resource group, this is the IBM Cloud CRN representing the namespace.
	// +optional
	Crn *string `json:"crn,omitempty" tf:"crn"`
	// The name of the namespace.
	Name *string `json:"name" tf:"name"`
	// When the namespace was assigned to a resource group.
	// +optional
	ResourceCreatedDate *string `json:"resourceCreatedDate,omitempty" tf:"resource_created_date"`
	// The ID of the resource group that the namespace will be created within.
	// +optional
	ResourceGroupID *string `json:"resourceGroupID,omitempty" tf:"resource_group_id"`
	// List of tags
	// +optional
	Tags []string `json:"tags,omitempty" tf:"tags"`
	// When the namespace was last updated.
	// +optional
	UpdatedDate *string `json:"updatedDate,omitempty" tf:"updated_date"`
	// When the namespace was last updated.
	// +optional
	// Deprecated
	UpdatedOn *string `json:"updatedOn,omitempty" tf:"updated_on"`
}

func (*NamespaceSpecResource) DeepCopy

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

func (*NamespaceSpecResource) DeepCopyInto

func (in *NamespaceSpecResource) DeepCopyInto(out *NamespaceSpecResource)

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

type NamespaceStatus

type NamespaceStatus struct {
	// Resource generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// +optional
	Phase status.Status `json:"phase,omitempty"`
	// +optional
	Conditions []kmapi.Condition `json:"conditions,omitempty"`
}

func (*NamespaceStatus) DeepCopy

func (in *NamespaceStatus) DeepCopy() *NamespaceStatus

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

func (*NamespaceStatus) DeepCopyInto

func (in *NamespaceStatus) DeepCopyInto(out *NamespaceStatus)

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

type RetentionPolicy

type RetentionPolicy struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              RetentionPolicySpec   `json:"spec,omitempty"`
	Status            RetentionPolicyStatus `json:"status,omitempty"`
}

func (*RetentionPolicy) DeepCopy

func (in *RetentionPolicy) DeepCopy() *RetentionPolicy

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

func (*RetentionPolicy) DeepCopyInto

func (in *RetentionPolicy) DeepCopyInto(out *RetentionPolicy)

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

func (*RetentionPolicy) DeepCopyObject

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

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

func (*RetentionPolicy) SetupWebhookWithManager

func (r *RetentionPolicy) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*RetentionPolicy) ValidateCreate

func (r *RetentionPolicy) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*RetentionPolicy) ValidateDelete

func (r *RetentionPolicy) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*RetentionPolicy) ValidateUpdate

func (r *RetentionPolicy) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type RetentionPolicyList

type RetentionPolicyList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// Items is a list of RetentionPolicy CRD objects
	Items []RetentionPolicy `json:"items,omitempty"`
}

RetentionPolicyList is a list of RetentionPolicys

func (*RetentionPolicyList) DeepCopy

func (in *RetentionPolicyList) DeepCopy() *RetentionPolicyList

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

func (*RetentionPolicyList) DeepCopyInto

func (in *RetentionPolicyList) DeepCopyInto(out *RetentionPolicyList)

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

func (*RetentionPolicyList) DeepCopyObject

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

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

type RetentionPolicySpec

type RetentionPolicySpec struct {
	State *RetentionPolicySpecResource `json:"state,omitempty" tf:"-"`

	Resource RetentionPolicySpecResource `json:"resource" tf:"resource"`

	UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"`

	TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"`

	ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"`

	BackendRef *core.LocalObjectReference `json:"backendRef,omitempty" tf:"-"`
}

func (*RetentionPolicySpec) DeepCopy

func (in *RetentionPolicySpec) DeepCopy() *RetentionPolicySpec

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

func (*RetentionPolicySpec) DeepCopyInto

func (in *RetentionPolicySpec) DeepCopyInto(out *RetentionPolicySpec)

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

type RetentionPolicySpecResource

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

	// Determines how many images will be retained for each repository when the retention policy is executed. The value -1 denotes 'Unlimited' (all images are retained).
	ImagesPerRepo *int64 `json:"imagesPerRepo" tf:"images_per_repo"`
	// The namespace to which the retention policy is attached.
	Namespace *string `json:"namespace" tf:"namespace"`
	// Determines if untagged images are retained when executing the retention policy. This is false by default meaning untagged images will be deleted when the policy is executed.
	// +optional
	RetainUntagged *bool `json:"retainUntagged,omitempty" tf:"retain_untagged"`
}

func (*RetentionPolicySpecResource) DeepCopy

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

func (*RetentionPolicySpecResource) DeepCopyInto

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

type RetentionPolicyStatus

type RetentionPolicyStatus struct {
	// Resource generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// +optional
	Phase status.Status `json:"phase,omitempty"`
	// +optional
	Conditions []kmapi.Condition `json:"conditions,omitempty"`
}

func (*RetentionPolicyStatus) DeepCopy

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

func (*RetentionPolicyStatus) DeepCopyInto

func (in *RetentionPolicyStatus) DeepCopyInto(out *RetentionPolicyStatus)

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