Documentation

Overview

Package v1alpha1 is the v1alpha1 version of the API. +groupName=gitkube.sh

Index

Constants

This section is empty.

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: gitkubesh.GroupName, Version: "v1alpha1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type BuildArg

type BuildArg struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

func (*BuildArg) DeepCopy

func (in *BuildArg) DeepCopy() *BuildArg

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

func (*BuildArg) DeepCopyInto

func (in *BuildArg) DeepCopyInto(out *BuildArg)

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

type ContainerSpec

type ContainerSpec struct {
	// Name of container
	Name string `json:"name"`

	// Location of source code in the git repo for the container
	Path string `json:"path"`

	// Location of dockerfile for the container
	Dockerfile string `json:"dockerfile"`

	// Docker build args --build-args
	BuildArgs []BuildArg `json:"buildArgs,omitempty"`
}

func (*ContainerSpec) DeepCopy

func (in *ContainerSpec) DeepCopy() *ContainerSpec

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

func (*ContainerSpec) DeepCopyInto

func (in *ContainerSpec) DeepCopyInto(out *ContainerSpec)

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

type CredentialsSpec

type CredentialsSpec struct {
	// Secret which points to a docker-registry secret
	SecretRef string `json:"secretRef,omitempty"`

	// Secret with key ref which points to a docker-registry secret
	SecretKeyRef corev1.SecretKeySelector `json:"secretKeyRef,omitempty"`
}

func (*CredentialsSpec) DeepCopy

func (in *CredentialsSpec) DeepCopy() *CredentialsSpec

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

func (*CredentialsSpec) DeepCopyInto

func (in *CredentialsSpec) DeepCopyInto(out *CredentialsSpec)

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

type DeploymentSpec

type DeploymentSpec struct {
	// Name of the deployment
	Name string `json:"name"`

	// List of container spec which are part of the deployment
	Containers []ContainerSpec `json:"containers"`
}

func (*DeploymentSpec) DeepCopy

func (in *DeploymentSpec) DeepCopy() *DeploymentSpec

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

func (*DeploymentSpec) DeepCopyInto

func (in *DeploymentSpec) DeepCopyInto(out *DeploymentSpec)

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

type HelmSpec

type HelmSpec struct {
	Release string      `json:"release,omitempty"`
	Values  []NameValue `json:"values,omitempty"`
}

func (*HelmSpec) DeepCopy

func (in *HelmSpec) DeepCopy() *HelmSpec

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

func (*HelmSpec) DeepCopyInto

func (in *HelmSpec) DeepCopyInto(out *HelmSpec)

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

type ManifestSpec

type ManifestSpec struct {
	// Location of manifests folder
	Path string `json:"path"`

	// Helm spec contains release name and list of values to be set during helm install
	// +optional
	Helm HelmSpec `json:"helm,omitempty"`
}

func (*ManifestSpec) DeepCopy

func (in *ManifestSpec) DeepCopy() *ManifestSpec

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

func (*ManifestSpec) DeepCopyInto

func (in *ManifestSpec) DeepCopyInto(out *ManifestSpec)

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

type NameValue

type NameValue struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

func (*NameValue) DeepCopy

func (in *NameValue) DeepCopy() *NameValue

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

func (*NameValue) DeepCopyInto

func (in *NameValue) DeepCopyInto(out *NameValue)

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

type RegistrySpec

type RegistrySpec struct {
	// Url of the external registry where built images should be pushed
	// E.g. registry.harbor.io/library
	Url string `json:"url,omitempty"`

	// Credentials for registry
	Credentials CredentialsSpec `json:"credentials,omitempty"`
}

func (*RegistrySpec) DeepCopy

func (in *RegistrySpec) DeepCopy() *RegistrySpec

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

func (*RegistrySpec) DeepCopyInto

func (in *RegistrySpec) DeepCopyInto(out *RegistrySpec)

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

type Remote

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

	Spec   RemoteSpec   `json:"spec"`
	Status RemoteStatus `json:"status"`
}

Remote is the definition of a remote

func (*Remote) DeepCopy

func (in *Remote) DeepCopy() *Remote

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

func (*Remote) DeepCopyInto

func (in *Remote) DeepCopyInto(out *Remote)

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

func (*Remote) DeepCopyObject

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

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

type RemoteList

type RemoteList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`

	Items []Remote `json:"items"`
}

RemoteList is a list of Remotes

func (*RemoteList) DeepCopy

func (in *RemoteList) DeepCopy() *RemoteList

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

func (*RemoteList) DeepCopyInto

func (in *RemoteList) DeepCopyInto(out *RemoteList)

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

func (*RemoteList) DeepCopyObject

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

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

type RemoteSpec

type RemoteSpec struct {
	// SSH public keys for git push authorization
	AuthorizedKeys []string `json:"authorizedKeys"`

	// Registry details for pushing and pulling from external registry
	// +optional
	Registry RegistrySpec `json:"registry,omitempty"`

	// Details for initializing manifests like k8s yamls or helm charts
	Manifests ManifestSpec `json:"manifests,omitempty"`

	// List of deployment spec.
	// Deployment spec defines which deployments are under gitkube management
	Deployments []DeploymentSpec `json:"deployments"`
}

func (*RemoteSpec) DeepCopy

func (in *RemoteSpec) DeepCopy() *RemoteSpec

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

func (*RemoteSpec) DeepCopyInto

func (in *RemoteSpec) DeepCopyInto(out *RemoteSpec)

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

type RemoteStatus

type RemoteStatus struct {
	// Url of the git remote where the repo is pushed
	RemoteUrl string `json:"remoteUrl"`

	// Description of RemoteUrl
	// Contains error description if RemoteUrl is not available
	RemoteUrlDesc string `json:"remoteUrlDesc"`
}

func (*RemoteStatus) DeepCopy

func (in *RemoteStatus) DeepCopy() *RemoteStatus

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

func (*RemoteStatus) DeepCopyInto

func (in *RemoteStatus) DeepCopyInto(out *RemoteStatus)

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