v1alpha1

package
v0.0.0-...-f55887c Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the core v1alpha1 API group +kubebuilder:object:generate=true +groupName=core.openmfp.io

Index

Constants

View Source
const (
	AccountTypeFolder                   AccountType = "folder"
	AccountTypeAccount                  AccountType = "account"
	NamespaceAccountOwnerLabel                      = "account.core.openmfp.io/owner"
	NamespaceAccountOwnerNamespaceLabel             = "account.core.openmfp.io/owner-namespace"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "core.openmfp.io", Version: "v1alpha1"}

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

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

func SetupAccountWebhookWithManager

func SetupAccountWebhookWithManager(mgr ctrl.Manager) error

Types

type Account

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

	Spec   AccountSpec   `json:"spec,omitempty"`
	Status AccountStatus `json:"status,omitempty"`
}

Account is the Schema for the accounts API

func (*Account) DeepCopy

func (in *Account) DeepCopy() *Account

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

func (*Account) DeepCopyInto

func (in *Account) DeepCopyInto(out *Account)

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

func (*Account) DeepCopyObject

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

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

func (*Account) GetConditions

func (i *Account) GetConditions() []metav1.Condition

func (*Account) GetNextReconcileTime

func (i *Account) GetNextReconcileTime() metav1.Time

func (*Account) GetObservedGeneration

func (i *Account) GetObservedGeneration() int64

func (*Account) SetConditions

func (i *Account) SetConditions(conditions []metav1.Condition)

func (*Account) SetNextReconcileTime

func (i *Account) SetNextReconcileTime(time metav1.Time)

func (*Account) SetObservedGeneration

func (i *Account) SetObservedGeneration(g int64)

type AccountDefaulter

type AccountDefaulter struct{}

func (*AccountDefaulter) Default

func (a *AccountDefaulter) Default(ctx context.Context, obj runtime.Object) error

Default implements admission.CustomDefaulter.

type AccountList

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

AccountList contains a list of Account

func (*AccountList) DeepCopy

func (in *AccountList) DeepCopy() *AccountList

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

func (*AccountList) DeepCopyInto

func (in *AccountList) DeepCopyInto(out *AccountList)

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

func (*AccountList) DeepCopyObject

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

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

type AccountSpec

type AccountSpec struct {
	// Type specifies the intended type for this Account object.
	// +kubebuilder:validation:Enum=folder;account
	Type AccountType `json:"type"`

	// Namespace is the account should take ownership of
	Namespace *string `json:"namespace,omitempty"`

	// The display name for this account
	// +kubebuilder:validation:MaxLength=255
	DisplayName string `json:"displayName"`

	// An optional description for this account
	Description *string `json:"description,omitempty"`

	// The initial creator of this account
	Creator *string `json:"creator,omitempty"`

	Extensions []Extension `json:"extensions,omitempty"`

	// Additional information that should be stored with the account
	Data *apiextensionsv1.JSON `json:"data,omitempty"`
}

AccountSpec defines the desired state of Account

func (*AccountSpec) DeepCopy

func (in *AccountSpec) DeepCopy() *AccountSpec

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

func (*AccountSpec) DeepCopyInto

func (in *AccountSpec) DeepCopyInto(out *AccountSpec)

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

type AccountStatus

type AccountStatus struct {
	Conditions         []metav1.Condition `json:"conditions,omitempty"`
	Namespace          *string            `json:"namespace,omitempty"`
	ObservedGeneration int64              `json:"observedGeneration,omitempty" protobuf:"varint,3,opt,name=observedGeneration"`
	NextReconcileTime  metav1.Time        `json:"nextReconcileTime,omitempty"`
}

AccountStatus defines the observed state of Account

func (*AccountStatus) DeepCopy

func (in *AccountStatus) DeepCopy() *AccountStatus

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

func (*AccountStatus) DeepCopyInto

func (in *AccountStatus) DeepCopyInto(out *AccountStatus)

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

type AccountType

type AccountType string

type Extension

type Extension struct {
	metav1.TypeMeta    `json:",inline"`
	MetadataGoTemplate apiextensionsv1.JSON `json:"metadataGoTemplate,omitempty"`
	SpecGoTemplate     apiextensionsv1.JSON `json:"specGoTemplate"`

	// The type of a condition that must be set to True on the Extension object
	// for the extension to be considered reconciled and ready. If this is empty,
	// the extension is considered ready.
	ReadyConditionType *string `json:"readyConditionType,omitempty"`
}

func (*Extension) DeepCopy

func (in *Extension) DeepCopy() *Extension

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

func (*Extension) DeepCopyInto

func (in *Extension) DeepCopyInto(out *Extension)

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