v1alpha1

package
v0.0.0-...-b982673 Latest Latest
Warning

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

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

Documentation

Overview

+k8s:deepcopy-gen=package,register +groupName=application.unikorn-cloud.org

Index

Constants

View Source
const (
	// GroupName is the Kubernetes API group our resources belong to.
	GroupName = "application.unikorn-cloud.org"
	// GroupVersion is the version of our custom resources.
	GroupVersion = "v1alpha1"
	// Group is group/version of our resources.
	Group = GroupName + "/" + GroupVersion
)

Variables

View Source
var (
	// ErrMissingLabel is raised when an expected label is not present on
	// a resource.
	ErrMissingLabel = errors.New("expected label is missing")

	// ErrApplicationLookup is raised when the named application is not
	// present in an application bundle bundle.
	ErrApplicationLookup = errors.New("failed to lookup an application")
)
View Source
var (
	// SchemeGroupVersion defines the GV of our resources.
	//nolint:gochecknoglobals
	SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: GroupVersion}

	// SchemeBuilder creates a mapping between GVK and type.
	//nolint:gochecknoglobals
	SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}

	// AddToScheme adds our GVK to resource mappings to an existing scheme.
	//nolint:gochecknoglobals
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

func Resource

func Resource(resource string) schema.GroupResource

Resource maps a resource type to a group resource.

Types

type ApplicationSet

type ApplicationSet struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              ApplicationSetSpec   `json:"spec"`
	Status            ApplicationSetStatus `json:"status,omitempty"`
}

ApplicationSet defines a Helm application. +genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:resource:scope=Namespaced,categories=unikorn +kubebuilder:printcolumn:name="display name",type="string",JSONPath=".metadata.labels['unikorn-cloud\\.org/name']" +kubebuilder:printcolumn:name="age",type="date",JSONPath=".metadata.creationTimestamp"

func (*ApplicationSet) DeepCopy

func (in *ApplicationSet) DeepCopy() *ApplicationSet

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

func (*ApplicationSet) DeepCopyInto

func (in *ApplicationSet) DeepCopyInto(out *ApplicationSet)

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

func (*ApplicationSet) DeepCopyObject

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

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

func (*ApplicationSet) Paused

func (c *ApplicationSet) Paused() bool

Paused implements the ReconcilePauser interface.

func (*ApplicationSet) ResourceLabels

func (c *ApplicationSet) ResourceLabels() (labels.Set, error)

ResourceLabels generates a set of labels to uniquely identify the resource if it were to be placed in a single global namespace.

func (*ApplicationSet) StatusConditionRead

StatusConditionRead scans the status conditions for an existing condition whose type matches.

func (*ApplicationSet) StatusConditionWrite

func (c *ApplicationSet) StatusConditionWrite(t unikornv1core.ConditionType, status corev1.ConditionStatus, reason unikornv1core.ConditionReason, message string)

StatusConditionWrite either adds or updates a condition in the cluster manager status. If the condition, status and message match an existing condition the update is ignored.

type ApplicationSetList

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

ApplicationSetList defines a list of Helm applications. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*ApplicationSetList) DeepCopy

func (in *ApplicationSetList) DeepCopy() *ApplicationSetList

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

func (*ApplicationSetList) DeepCopyInto

func (in *ApplicationSetList) DeepCopyInto(out *ApplicationSetList)

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

func (*ApplicationSetList) DeepCopyObject

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

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

type ApplicationSetSpec

type ApplicationSetSpec struct {
	// Pause, if true, will inhibit reconciliation.
	Pause bool `json:"pause,omitempty"`
}

func (*ApplicationSetSpec) DeepCopy

func (in *ApplicationSetSpec) DeepCopy() *ApplicationSetSpec

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

func (*ApplicationSetSpec) DeepCopyInto

func (in *ApplicationSetSpec) DeepCopyInto(out *ApplicationSetSpec)

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

type ApplicationSetStatus

type ApplicationSetStatus struct {
	// Current service state of the resource.
	Conditions []unikornv1core.Condition `json:"conditions,omitempty"`
}

func (*ApplicationSetStatus) DeepCopy

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

func (*ApplicationSetStatus) DeepCopyInto

func (in *ApplicationSetStatus) DeepCopyInto(out *ApplicationSetStatus)

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