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
- Variables
- type GitLab
- func (in *GitLab) DeepCopy() *GitLab
- func (in *GitLab) DeepCopyInto(out *GitLab)
- func (in *GitLab) DeepCopyObject() runtime.Object
- func (in *GitLab) GetApplicationName() string
- func (in *GitLab) GetClusterNamespace() string
- func (in *GitLab) GetClusterRef() *corev1.ObjectReference
- func (in *GitLab) GetEndpoint() string
- func (in *GitLab) GetProviderRef() corev1.ObjectReference
- func (in *GitLab) IsReclaimDelete() bool
- func (in *GitLab) SetCreating()
- func (in *GitLab) SetDeleting()
- func (in *GitLab) SetEndpoint(ep string)
- func (in *GitLab) SetFailed(reason, msg string)
- func (in *GitLab) SetPending(reason, msg string)
- func (in *GitLab) SetReady()
- func (in *GitLab) ToOwnerReference() metav1.OwnerReference
- type GitLabList
- type GitLabSpec
- type GitLabStatus
Constants ¶
const ( Group = "controller.gitlab.com" Version = "v1alpha1" APIVersion = Group + "/" + Version GitLabKind = "gitlab" GitLabKindAPIVersion = GitLabKind + "." + APIVersion )
Kubernetes Group, Version, and Kind metadata.
const ApplicationName = "gitlab"
ApplicationName gitlab
Variables ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitLab.
func (*GitLab) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GitLab) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*GitLab) GetApplicationName ¶
GetApplicationName returns "gitlab[-suffix]" if host suffix is provided
func (*GitLab) GetClusterNamespace ¶
GetClusterNamespace spec property
func (*GitLab) GetClusterRef ¶
func (in *GitLab) GetClusterRef() *corev1.ObjectReference
GetClusterRef spec property
func (*GitLab) GetEndpoint ¶
GetEndpoint returns a gitlab service endpoint
func (*GitLab) GetProviderRef ¶
func (in *GitLab) GetProviderRef() corev1.ObjectReference
GetProviderRef spec property
func (*GitLab) IsReclaimDelete ¶
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 ¶
SetEndpoint for this GitLab instance
func (*GitLab) SetPending ¶
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.