v1alpha1

package
v0.0.0-...-68136ef Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the gitlab v1alpha1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/crossplaneio/gitlab-controller/pkg/apis/controller +k8s:defaulter-gen=TypeMeta +groupName=controller.gitlab.io

Package v1alpha1 contains API Schema definitions for the gitlab v1alpha1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/crossplaneio/gitlab-controller/pkg/apis/controller +k8s:defaulter-gen=TypeMeta +groupName=controller.gitlab.io

Index

Constants

View Source
const (
	Group                = "controller.gitlab.com"
	Version              = "v1alpha1"
	APIVersion           = Group + "/" + Version
	GitLabKind           = "gitlab"
	GitLabKindAPIVersion = GitLabKind + "." + APIVersion
)

Kubernetes Group, Version, and Kind metadata.

View Source
const ApplicationName = "gitlab"

ApplicationName gitlab

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: Group, Version: Version}

	// GitLabGroupVersionKind is the GVK of a GitLab.
	GitLabGroupVersionKind = schema.GroupVersionKind{Group: Group, Version: Version, Kind: GitLabKind}

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

	// AddToScheme is required by pkg/client/...
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type GitLab

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

	Spec   GitLabSpec   `json:"spec,omitempty"`
	Status GitLabStatus `json:"status,omitempty"`
}

GitLab is the Schema for the gitlabs API +k8s:openapi-gen=true +groupName=gitlab +kubebuilder:subresource:status +kubebuilder:printcolumn:name="STATE",type="string",JSONPath=".status.state" +kubebuilder:printcolumn:name="ENDPOINT",type="string",JSONPath=".status.endpoint"

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) GetApplicationName

func (in *GitLab) GetApplicationName() string

GetApplicationName returns "gitlab[-suffix]" if host suffix is provided

func (*GitLab) GetClusterNamespace

func (in *GitLab) GetClusterNamespace() string

GetClusterNamespace spec property

func (*GitLab) GetClusterRef

func (in *GitLab) GetClusterRef() *corev1.ObjectReference

GetClusterRef spec property

func (*GitLab) GetEndpoint

func (in *GitLab) GetEndpoint() string

GetEndpoint returns a gitlab service endpoint

func (*GitLab) GetProviderRef

func (in *GitLab) GetProviderRef() corev1.ObjectReference

GetProviderRef spec property

func (*GitLab) IsReclaimDelete

func (in *GitLab) IsReclaimDelete() bool

IsReclaimDelete tests reclaim delete policy

func (*GitLab) SetCreating

func (in *GitLab) SetCreating()

SetCreating a convenience method to set object status

func (*GitLab) SetDeleting

func (in *GitLab) SetDeleting()

SetDeleting a convenience method to set object status

func (*GitLab) SetEndpoint

func (in *GitLab) SetEndpoint(ep string)

SetEndpoint for this GitLab instance

func (*GitLab) SetFailed

func (in *GitLab) SetFailed(reason, msg string)

SetFailed a convenience method to set object status

func (*GitLab) SetPending

func (in *GitLab) SetPending(reason, msg string)

SetPending status with reason and message

func (*GitLab) SetReady

func (in *GitLab) SetReady()

SetReady a convenience method to set object status

func (*GitLab) ToOwnerReference

func (in *GitLab) ToOwnerReference() metav1.OwnerReference

ToOwnerReference converts this object metadata to a new owner reference

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 {
	// Domain which will contain records to resolve gitlab, registry, and minio (if enabled) to the appropriate IP
	Domain string `json:"domain"`
	// HostSuffix appended to domain records, i.e. `gitlab-suffix.domain`, default - no suffix
	HostSuffix string `json:"hostSuffix,omitempty"`
	// Protocol http or https, default - https
	Protocol string `json:"protocol,omitempty"`
	// Port gitlab service port, default - none
	Port uint `json:"port,omitempty"`
	// Email address to register TLS certificates
	Email string `json:"email"`

	// ProviderRef cloud provider reference
	ProviderRef corev1.ObjectReference `json:"providerRef"`
	// ReclaimPolicy controls application cleanup
	ReclaimPolicy xpcorev1alpha1.ReclaimPolicy `json:"reclaimPolicy,omitempty"`

	// ClusterRef to a target kubernetes cluster where a GitLab controller will
	// deploy GitLab application components
	ClusterRef *corev1.ObjectReference `json:"clusterRef,omitempty"`

	// ClusterNamespace
	ClusterNamespace string `json:"clusterNamespace,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 {
	xpcorev1alpha1.ConditionedStatus

	// Endpoint for GitLab service
	Endpoint string `json:"endpoint,omitempty"`

	// State of the GitLab service - string representation of the latest active condition
	// This is provided for convenience for displaying status gitlab
	State xpcorev1alpha1.ConditionType `json:"state,omitempty"`
}

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