v1beta1

package
v0.11.7 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: Apache-2.0, MIT Imports: 11 Imported by: 0

Documentation

Overview

Package v1beta1 contains API Schema definitions for the apps v1beta1 API group. +kubebuilder:object:generate=true +groupName=apps.gitlab.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupKind is a group kind used in webhooks.
	GroupKind = schema.GroupKind{Group: "apps.gitlab.com", Kind: "gitlab"}

	// GroupVersion is group version used to register these objects.
	GroupVersion = schema.GroupVersion{Group: "apps.gitlab.com", Version: "v1beta1"}

	// 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 ChartValues

type ChartValues struct {
	// Object is a JSON compatible map with string, float, int, bool, []interface{}, or
	// map[string]interface{} children.
	Object map[string]interface{} `json:"-"`
}

Unstructured values for rendering GitLab Chart. +k8s:deepcopy-gen=false

func (*ChartValues) DeepCopyInto

func (u *ChartValues) DeepCopyInto(out *ChartValues)

Declaring this here prevents it from being generated.

func (*ChartValues) MarshalJSON

func (u *ChartValues) MarshalJSON() ([]byte, error)

MarshalJSON ensures that the unstructured object produces proper JSON when passed to Go's standard JSON library.

func (*ChartValues) UnmarshalJSON

func (u *ChartValues) UnmarshalJSON(data []byte) error

UnmarshalJSON ensures that the unstructured object properly decodes JSON when passed to Go's standard JSON library.

type GitLab

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

	// Specification of the desired behavior of a GitLab instance.
	Spec GitLabSpec `json:"spec,omitempty"`

	// Most recently observed status of the GitLab instance.
	// It is read-only to the user.
	Status GitLabStatus `json:"status,omitempty"`
}

GitLab is a complete DevOps platform, delivered in a single application.

func (*GitLab) DeepCopy

func (in *GitLab) DeepCopy() *GitLab

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

func (*GitLab) DeepCopyInto

func (in *GitLab) DeepCopyInto(out *GitLab)

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

func (*GitLab) DeepCopyObject

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

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

func (*GitLab) SetupWebhookWithManager

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

SetupWebhookWithManager adds webhook to the controller runtime Manager.

func (*GitLab) ValidateCreate

func (r *GitLab) ValidateCreate() error

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

func (*GitLab) ValidateDelete

func (r *GitLab) ValidateDelete() error

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

func (*GitLab) ValidateUpdate

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

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

type GitLabChartSpec

type GitLabChartSpec struct {
	// +kubebuilder:validation:Optional
	// +kubebuilder:validation:Pattern=`^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$`
	// ChartVersion is the semantic version of the GitLab Chart.
	Version string `json:"version,omitempty"`

	// +kubebuilder:validation:Optional
	// +kubebuilder:pruning:PreserveUnknownFields
	// ChartValues is the set of Helm values that is used to render the GitLab Chart.
	Values ChartValues `json:"values,omitempty"`
}

GitLabChartSpec specifies GitLab Chart version and values.

func (*GitLabChartSpec) DeepCopy

func (in *GitLabChartSpec) DeepCopy() *GitLabChartSpec

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

func (*GitLabChartSpec) DeepCopyInto

func (in *GitLabChartSpec) DeepCopyInto(out *GitLabChartSpec)

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

type GitLabList

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

GitLabList contains a list of GitLab.

func (*GitLabList) DeepCopy

func (in *GitLabList) DeepCopy() *GitLabList

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

func (*GitLabList) DeepCopyInto

func (in *GitLabList) DeepCopyInto(out *GitLabList)

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

func (*GitLabList) DeepCopyObject

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

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

type GitLabSpec

type GitLabSpec struct {
	// The specification of GitLab Chart that is used to deploy the instance.
	Chart GitLabChartSpec `json:"chart,omitempty"`
}

GitLabSpec defines the desired state of GitLab.

func (*GitLabSpec) DeepCopy

func (in *GitLabSpec) DeepCopy() *GitLabSpec

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

func (*GitLabSpec) DeepCopyInto

func (in *GitLabSpec) DeepCopyInto(out *GitLabSpec)

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

type GitLabStatus

type GitLabStatus struct {
	Phase      string             `json:"phase,omitempty"`
	Version    string             `json:"version,omitempty"`
	Conditions []metav1.Condition `json:"conditions"`
}

GitLabStatus defines the observed state of GitLab.

func (*GitLabStatus) DeepCopy

func (in *GitLabStatus) DeepCopy() *GitLabStatus

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

func (*GitLabStatus) DeepCopyInto

func (in *GitLabStatus) DeepCopyInto(out *GitLabStatus)

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