v1alpha1

package
v0.0.0-...-04a223e Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the apps.kubemate.mgoltzsche.github.com v1alpha1 API group +kubebuilder:object:generate=true +groupName=apps.kubemate.mgoltzsche.github.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects.
	GroupVersion = schema.GroupVersion{Group: "apps.kubemate.mgoltzsche.github.com", 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

This section is empty.

Types

type App

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

	Spec   AppSpec   `json:"spec"`
	Status AppStatus `json:"status,omitempty"`
}

App is the Schema for the apps API +kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:resource:scope=Namespaced +kubebuilder:printcolumn:name="State",type=string,JSONPath=`.status.state` +kubebuilder:printcolumn:name="Revision",type=string,JSONPath=`.status.lastAppliedRevision` +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" +k8s:openapi-gen=true

func (*App) DeepCopy

func (in *App) DeepCopy() *App

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

func (*App) DeepCopyInto

func (in *App) DeepCopyInto(out *App)

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

func (*App) DeepCopyObject

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

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

type AppConfigSchema

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

	Spec AppConfigSchemaSpec `json:"spec"`
}

AppConfigSchema is the Schema for the apps API +kubebuilder:object:root=true +kubebuilder:resource:scope=Namespaced +k8s:openapi-gen=true

func (*AppConfigSchema) DeepCopy

func (in *AppConfigSchema) DeepCopy() *AppConfigSchema

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

func (*AppConfigSchema) DeepCopyInto

func (in *AppConfigSchema) DeepCopyInto(out *AppConfigSchema)

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

func (*AppConfigSchema) DeepCopyObject

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

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

type AppConfigSchemaList

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

AppConfigSchemaList contains a list of App +kubebuilder:object:root=true +k8s:openapi-gen=true

func (*AppConfigSchemaList) DeepCopy

func (in *AppConfigSchemaList) DeepCopy() *AppConfigSchemaList

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

func (*AppConfigSchemaList) DeepCopyInto

func (in *AppConfigSchemaList) DeepCopyInto(out *AppConfigSchemaList)

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

func (*AppConfigSchemaList) DeepCopyObject

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

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

type AppConfigSchemaSpec

type AppConfigSchemaSpec struct {
	Params []ParameterDefinition `json:"params,omitempty"`
}

AppConfigSchemaSpec defines the configuration schema for an App. +k8s:openapi-gen=true

func (*AppConfigSchemaSpec) DeepCopy

func (in *AppConfigSchemaSpec) DeepCopy() *AppConfigSchemaSpec

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

func (*AppConfigSchemaSpec) DeepCopyInto

func (in *AppConfigSchemaSpec) DeepCopyInto(out *AppConfigSchemaSpec)

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

type AppList

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

AppList contains a list of App +kubebuilder:object:root=true +k8s:openapi-gen=true

func (*AppList) DeepCopy

func (in *AppList) DeepCopy() *AppList

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

func (*AppList) DeepCopyInto

func (in *AppList) DeepCopyInto(out *AppList)

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

func (*AppList) DeepCopyObject

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

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

type AppSpec

type AppSpec struct {
	Enabled *bool `json:"enabled,omitempty"`
	//ParamDefinitions []ParamDefinition  `json:"paramDefinitions,omitempty"`
	ParamSecretName string             `json:"paramSecretName,omitempty"`
	Kustomization   *KustomizationSpec `json:"kustomization,omitempty"`
}

AppSpec defines the desired state of the App. +k8s:openapi-gen=true

func (*AppSpec) DeepCopy

func (in *AppSpec) DeepCopy() *AppSpec

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

func (*AppSpec) DeepCopyInto

func (in *AppSpec) DeepCopyInto(out *AppSpec)

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

type AppState

type AppState string

+enum

const (
	AppStateNotInstalled   AppState = "NotInstalled"
	AppStateInstalling     AppState = "Installing"
	AppStateUpgrading      AppState = "Upgrading"
	AppStateInstalled      AppState = "Installed"
	AppStateDeinstalling   AppState = "Deinstalling"
	AppStateError          AppState = "Error"
	AppStateConfigRequired AppState = "ConfigRequired"
)

type AppStatus

type AppStatus struct {
	ObservedGeneration    int64    `json:"observedGeneration,omitempty"`
	State                 AppState `json:"state,omitempty"`
	Message               string   `json:"message,omitempty"`
	LastAppliedRevision   string   `json:"lastAppliedRevision,omitempty"`
	LastAttemptedRevision string   `json:"lastAttemptedRevision,omitempty"`
	ConfigSchemaName      string   `json:"configSchemaName,omitempty"`
	ConfigSecretName      string   `json:"configSecretName,omitempty"`
}

AppStatus defines the observed state of the App. +k8s:openapi-gen=true

func (*AppStatus) DeepCopy

func (in *AppStatus) DeepCopy() *AppStatus

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

func (*AppStatus) DeepCopyInto

func (in *AppStatus) DeepCopyInto(out *AppStatus)

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

type CrossNamespaceSourceReference

type CrossNamespaceSourceReference struct {
	// API version of the referent.
	// +optional
	APIVersion string `json:"apiVersion,omitempty"`

	// Kind of the referent.
	// +kubebuilder:validation:Enum=GitRepository;Bucket
	// +required
	Kind string `json:"kind"`

	// Name of the referent.
	// +required
	Name string `json:"name"`

	// Namespace of the referent, defaults to the namespace of the Kubernetes resource object that contains the reference.
	// +optional
	Namespace string `json:"namespace,omitempty"`
}

CrossNamespaceSourceReference contains enough information to let you locate the typed Kubernetes resource object at cluster level. +k8s:openapi-gen=true

func (*CrossNamespaceSourceReference) DeepCopy

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

func (*CrossNamespaceSourceReference) DeepCopyInto

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

func (*CrossNamespaceSourceReference) String

type KustomizationSpec

type KustomizationSpec struct {
	// Reference of the source where the kustomization file is.
	// +required
	SourceRef CrossNamespaceSourceReference `json:"sourceRef"`
	// Path points to the kustomization directory within the sourceRef.
	Path string `json:"path,omitempty"`
	// Timeout specifies the deployment timeout.
	// +kubebuilder:validation:Optional
	Timeout *metav1.Duration `json:"timeout,omitempty"`
}

KustomizationSpec specifies the kustomization that should be installed. +k8s:openapi-gen=true

func (*KustomizationSpec) DeepCopy

func (in *KustomizationSpec) DeepCopy() *KustomizationSpec

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

func (*KustomizationSpec) DeepCopyInto

func (in *KustomizationSpec) DeepCopyInto(out *KustomizationSpec)

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

type ParamType

type ParamType string

+enum

const (
	ParamTypeString   ParamType = "string"
	ParamTypeText     ParamType = "text"
	ParamTypePassword ParamType = "password"
	ParamTypeNumber   ParamType = "number"
	ParamTypeBoolean  ParamType = "boolean"
	ParamTypeEnum     ParamType = "enum"
)

type ParameterDefinition

type ParameterDefinition struct {
	Name        string    `json:"name"`
	Type        ParamType `json:"type,omitempty"`
	Title       string    `json:"title,omitempty"`
	Description string    `json:"description,omitempty"`
	Category    string    `json:"category,omitempty"`
	Enum        []string  `json:"enum,omitempty"`
}

ParameterDefinition defines an application parameter. +k8s:openapi-gen=true

func (*ParameterDefinition) DeepCopy

func (in *ParameterDefinition) DeepCopy() *ParameterDefinition

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

func (*ParameterDefinition) DeepCopyInto

func (in *ParameterDefinition) DeepCopyInto(out *ParameterDefinition)

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