v1alpha1

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

+kubebuilder:object:generate=true +groupName=idpbuilder.cnoe.io

Index

Constants

View Source
const (
	// LastObservedCLIStartTimeAnnotation indicates when the controller acted on a resource.
	LastObservedCLIStartTimeAnnotation = "cnoe.io/last-observed-cli-start-time"
	// CliStartTimeAnnotation indicates when the CLI was invoked.
	CliStartTimeAnnotation = "cnoe.io/cli-start-time"
	FieldManager           = "idpbuilder"
	// If GetSecretLabelKey is set to GetSecretLabelValue on a kubernetes secret, secret key and values can be used by the get command.
	CLISecretLabelKey   = "cnoe.io/cli-secret"
	CLISecretLabelValue = "true"
	PackageNameLabelKey = "cnoe.io/package-name"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "idpbuilder.cnoe.io", 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 ArgoCDPackageSpec added in v0.2.0

type ArgoCDPackageSpec struct {
	// ApplicationFile specifies the absolute path to the ArgoCD application file
	ApplicationFile string `json:"applicationFile"`
	Name            string `json:"name"`
	Namespace       string `json:"namespace"`
}

func (*ArgoCDPackageSpec) DeepCopy added in v0.2.0

func (in *ArgoCDPackageSpec) DeepCopy() *ArgoCDPackageSpec

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

func (*ArgoCDPackageSpec) DeepCopyInto added in v0.2.0

func (in *ArgoCDPackageSpec) DeepCopyInto(out *ArgoCDPackageSpec)

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

type ArgoCDStatus added in v0.2.0

type ArgoCDStatus struct {
	Available   bool `json:"available,omitempty"`
	AppsCreated bool `json:"appsCreated,omitempty"`
}

func (*ArgoCDStatus) DeepCopy added in v0.2.0

func (in *ArgoCDStatus) DeepCopy() *ArgoCDStatus

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

func (*ArgoCDStatus) DeepCopyInto added in v0.2.0

func (in *ArgoCDStatus) DeepCopyInto(out *ArgoCDStatus)

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

type ArgoPackageConfigSpec

type ArgoPackageConfigSpec struct {
	// Enabled controls whether to install ArgoCD.
	Enabled bool `json:"enabled,omitempty"`
}

ArgoPackageConfigSpec Allows for configuration of the ArgoCD Installation. If no fields are specified then the binary embedded resources will be used to intall ArgoCD.

func (*ArgoPackageConfigSpec) DeepCopy

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

func (*ArgoPackageConfigSpec) DeepCopyInto

func (in *ArgoPackageConfigSpec) DeepCopyInto(out *ArgoPackageConfigSpec)

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

type Commit added in v0.2.0

type Commit struct {
	// Hash is the digest of the most recent commit
	// +kubebuilder:validation:Optional
	Hash string `json:"hash"`
}

func (*Commit) DeepCopy added in v0.2.0

func (in *Commit) DeepCopy() *Commit

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

func (*Commit) DeepCopyInto added in v0.2.0

func (in *Commit) DeepCopyInto(out *Commit)

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

type CustomPackage added in v0.2.0

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

	Spec   CustomPackageSpec   `json:"spec,omitempty"`
	Status CustomPackageStatus `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:subresource:status

func (*CustomPackage) DeepCopy added in v0.2.0

func (in *CustomPackage) DeepCopy() *CustomPackage

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

func (*CustomPackage) DeepCopyInto added in v0.2.0

func (in *CustomPackage) DeepCopyInto(out *CustomPackage)

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

func (*CustomPackage) DeepCopyObject added in v0.2.0

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

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

type CustomPackageList added in v0.2.0

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

+kubebuilder:object:root=true

func (*CustomPackageList) DeepCopy added in v0.2.0

func (in *CustomPackageList) DeepCopy() *CustomPackageList

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

func (*CustomPackageList) DeepCopyInto added in v0.2.0

func (in *CustomPackageList) DeepCopyInto(out *CustomPackageList)

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

func (*CustomPackageList) DeepCopyObject added in v0.2.0

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

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

type CustomPackageSpec added in v0.2.0

type CustomPackageSpec struct {
	ArgoCD ArgoCDPackageSpec `json:"argoCD,omitempty"`
	// GitServerURL specifies the base URL for the git server for API calls.
	// for example, https://gitea.cnoe.localtest.me:8443
	GitServerURL           string          `json:"gitServerURL"`
	GitServerAuthSecretRef SecretReference `json:"gitServerAuthSecretRef"`
	// InternalGitServeURL specifies the base URL for the git server accessible within the cluster.
	// for example, http://my-gitea-http.gitea.svc.cluster.local:3000
	InternalGitServeURL string `json:"internalGitServeURL"`
	// Replicate specifies whether to replicate remote or local contents to the local gitea server.
	// +kubebuilder:default:=false
	Replicate bool `json:"replicate"`
}

CustomPackageSpec controls the installation of the custom applications.

func (*CustomPackageSpec) DeepCopy added in v0.2.0

func (in *CustomPackageSpec) DeepCopy() *CustomPackageSpec

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

func (*CustomPackageSpec) DeepCopyInto added in v0.2.0

func (in *CustomPackageSpec) DeepCopyInto(out *CustomPackageSpec)

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

type CustomPackageStatus added in v0.2.0

type CustomPackageStatus struct {
	// A Custom package is considered synced when the in-cluster repository url is set as the repository URL
	// This only applies for a package that references local directories
	Synced            bool        `json:"synced,omitempty"`
	GitRepositoryRefs []ObjectRef `json:"gitRepositoryRefs,omitempty"`
}

func (*CustomPackageStatus) DeepCopy added in v0.2.0

func (in *CustomPackageStatus) DeepCopy() *CustomPackageStatus

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

func (*CustomPackageStatus) DeepCopyInto added in v0.2.0

func (in *CustomPackageStatus) DeepCopyInto(out *CustomPackageStatus)

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

type EmbeddedArgoApplicationsPackageConfigSpec

type EmbeddedArgoApplicationsPackageConfigSpec struct {
	// Enabled controls whether to install the embedded argo applications and the associated GitServer
	Enabled bool `json:"enabled,omitempty"`
	// +kubebuilder:validation:Optional
	PackageCustomization map[string]PackageCustomization `json:"packageCustomization,omitempty"`
}

EmbeddedArgoApplicationsPackageConfigSpec Controls the installation of the embedded argo applications.

func (*EmbeddedArgoApplicationsPackageConfigSpec) DeepCopy

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

func (*EmbeddedArgoApplicationsPackageConfigSpec) DeepCopyInto

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

type GitRepository added in v0.2.0

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

	Spec   GitRepositorySpec   `json:"spec,omitempty"`
	Status GitRepositoryStatus `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:subresource:status

func (*GitRepository) DeepCopy added in v0.2.0

func (in *GitRepository) DeepCopy() *GitRepository

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

func (*GitRepository) DeepCopyInto added in v0.2.0

func (in *GitRepository) DeepCopyInto(out *GitRepository)

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

func (*GitRepository) DeepCopyObject added in v0.2.0

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

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

type GitRepositoryList added in v0.2.0

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

+kubebuilder:object:root=true

func (*GitRepositoryList) DeepCopy added in v0.2.0

func (in *GitRepositoryList) DeepCopy() *GitRepositoryList

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

func (*GitRepositoryList) DeepCopyInto added in v0.2.0

func (in *GitRepositoryList) DeepCopyInto(out *GitRepositoryList)

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

func (*GitRepositoryList) DeepCopyObject added in v0.2.0

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

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

type GitRepositorySource added in v0.2.0

type GitRepositorySource struct {
	// +kubebuilder:validation:Enum:=argocd;gitea;nginx
	// +kubebuilder:validation:Optional
	EmbeddedAppName string `json:"embeddedAppName,omitempty"`
	// Path is the absolute path to directory that contains Kustomize structure or raw manifests.
	// This is required when Type is set to local.
	// +kubebuilder:validation:Optional
	Path string `json:"path"`
	// Type is the source type.
	// +kubebuilder:validation:Enum:=local;embedded
	// +kubebuilder:default:=embedded
	Type string `json:"type"`
}

func (*GitRepositorySource) DeepCopy added in v0.2.0

func (in *GitRepositorySource) DeepCopy() *GitRepositorySource

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

func (*GitRepositorySource) DeepCopyInto added in v0.2.0

func (in *GitRepositorySource) DeepCopyInto(out *GitRepositorySource)

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

type GitRepositorySpec added in v0.2.0

type GitRepositorySpec struct {
	// +kubebuilder:validation:Optional
	Customization PackageCustomization `json:"customization,omitempty"`
	// GitURL is the base URL of Git server used for API calls.
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Pattern=`^https?:\/\/.+$`
	GitURL string `json:"gitURL"`
	// InternalGitURL is the base URL of Git server accessible within the cluster only.
	InternalGitURL string `json:"internalGitURL"`
	// SecretRef is the reference to secret that contain Git server credentials
	// +kubebuilder:validation:Optional
	SecretRef SecretReference     `json:"secretRef"`
	Source    GitRepositorySource `json:"source,omitempty"`
}

func (*GitRepositorySpec) DeepCopy added in v0.2.0

func (in *GitRepositorySpec) DeepCopy() *GitRepositorySpec

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

func (*GitRepositorySpec) DeepCopyInto added in v0.2.0

func (in *GitRepositorySpec) DeepCopyInto(out *GitRepositorySpec)

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

type GitRepositoryStatus added in v0.2.0

type GitRepositoryStatus struct {
	// LatestCommit is the most recent commit known to the controller
	// +kubebuilder:validation:Optional
	LatestCommit Commit `json:"commit"`
	// ExternalGitRepositoryUrl is the url for the in-cluster repository accessible from local machine.
	// +kubebuilder:validation:Optional
	ExternalGitRepositoryUrl string `json:"externalGitRepositoryUrl"`
	// InternalGitRepositoryUrl is the url for the in-cluster repository accessible within the cluster.
	// +kubebuilder:validation:Optional
	InternalGitRepositoryUrl string `json:"internalGitRepositoryUrl"`
	// Path is the path within the repository that contains the files.
	// +kubebuilder:validation:Optional
	Path   string `json:"path"`
	Synced bool   `json:"synced"`
}

func (*GitRepositoryStatus) DeepCopy added in v0.2.0

func (in *GitRepositoryStatus) DeepCopy() *GitRepositoryStatus

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

func (*GitRepositoryStatus) DeepCopyInto added in v0.2.0

func (in *GitRepositoryStatus) DeepCopyInto(out *GitRepositoryStatus)

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

type GiteaStatus added in v0.2.0

type GiteaStatus struct {
	Available                bool   `json:"available,omitempty"`
	ExternalURL              string `json:"externalURL,omitempty"`
	InternalURL              string `json:"internalURL,omitempty"`
	AdminUserSecretName      string `json:"adminUserSecretNameecret,omitempty"`
	AdminUserSecretNamespace string `json:"adminUserSecretNamespace,omitempty"`
}

func (*GiteaStatus) DeepCopy added in v0.2.0

func (in *GiteaStatus) DeepCopy() *GiteaStatus

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

func (*GiteaStatus) DeepCopyInto added in v0.2.0

func (in *GiteaStatus) DeepCopyInto(out *GiteaStatus)

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

type Localbuild

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

	Spec   LocalbuildSpec   `json:"spec,omitempty"`
	Status LocalbuildStatus `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:resource:path=localbuilds,scope=Cluster

func (*Localbuild) DeepCopy

func (in *Localbuild) DeepCopy() *Localbuild

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

func (*Localbuild) DeepCopyInto

func (in *Localbuild) DeepCopyInto(out *Localbuild)

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

func (*Localbuild) DeepCopyObject

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

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

func (*Localbuild) GetArgoApplicationName

func (l *Localbuild) GetArgoApplicationName(name string) string

func (*Localbuild) GetArgoProjectName

func (l *Localbuild) GetArgoProjectName() string

type LocalbuildList

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

+kubebuilder:object:root=true

func (*LocalbuildList) DeepCopy

func (in *LocalbuildList) DeepCopy() *LocalbuildList

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

func (*LocalbuildList) DeepCopyInto

func (in *LocalbuildList) DeepCopyInto(out *LocalbuildList)

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

func (*LocalbuildList) DeepCopyObject

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

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

type LocalbuildSpec

type LocalbuildSpec struct {
	PackageConfigs PackageConfigsSpec `json:"packageConfigs,omitempty"`
}

func (*LocalbuildSpec) DeepCopy

func (in *LocalbuildSpec) DeepCopy() *LocalbuildSpec

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

func (*LocalbuildSpec) DeepCopyInto

func (in *LocalbuildSpec) DeepCopyInto(out *LocalbuildSpec)

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

type LocalbuildStatus

type LocalbuildStatus struct {
	// ObservedGeneration is the 'Generation' of the Service that was last processed by the controller.
	// +optional
	ObservedGeneration int64        `json:"observedGeneration,omitempty"`
	ArgoCD             ArgoCDStatus `json:"ArgoCD,omitempty"`
	Nginx              NginxStatus  `json:"nginx,omitempty"`
	Gitea              GiteaStatus  `json:"gitea,omitempty"`
}

func (*LocalbuildStatus) DeepCopy

func (in *LocalbuildStatus) DeepCopy() *LocalbuildStatus

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

func (*LocalbuildStatus) DeepCopyInto

func (in *LocalbuildStatus) DeepCopyInto(out *LocalbuildStatus)

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

type NginxStatus added in v0.2.0

type NginxStatus struct {
	Available bool `json:"available,omitempty"`
}

func (*NginxStatus) DeepCopy added in v0.2.0

func (in *NginxStatus) DeepCopy() *NginxStatus

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

func (*NginxStatus) DeepCopyInto added in v0.2.0

func (in *NginxStatus) DeepCopyInto(out *NginxStatus)

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

type ObjectRef added in v0.2.0

type ObjectRef struct {
	APIVersion string `json:"apiVersion,omitempty"`
	Name       string `json:"name,omitempty"`
	Namespace  string `json:"namespace,omitempty"`
	Kind       string `json:"kind,omitempty"`
	UID        string `json:"uid,omitempty"`
}

func (*ObjectRef) DeepCopy added in v0.2.0

func (in *ObjectRef) DeepCopy() *ObjectRef

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

func (*ObjectRef) DeepCopyInto added in v0.2.0

func (in *ObjectRef) DeepCopyInto(out *ObjectRef)

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

type PackageConfigsSpec

type PackageConfigsSpec struct {
	Argo                     ArgoPackageConfigSpec                     `json:"argoPackageConfigs,omitempty"`
	EmbeddedArgoApplications EmbeddedArgoApplicationsPackageConfigSpec `json:"embeddedArgoApplicationsPackageConfigs,omitempty"`
	CustomPackageDirs        []string                                  `json:"customPackageDirs,omitempty"`
}

func (*PackageConfigsSpec) DeepCopy

func (in *PackageConfigsSpec) DeepCopy() *PackageConfigsSpec

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

func (*PackageConfigsSpec) DeepCopyInto

func (in *PackageConfigsSpec) DeepCopyInto(out *PackageConfigsSpec)

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

type PackageCustomization added in v0.4.0

type PackageCustomization struct {
	// Name is the name of the package to be customized. e.g. argocd
	Name string `json:"name,omitempty'"`
	// FilePath is the absolute file path to a YAML file that contains Kubernetes manifests.
	FilePath string `json:"filePath,omitempty"`
}

PackageCustomization defines how packages are customized

func (*PackageCustomization) DeepCopy added in v0.4.0

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

func (*PackageCustomization) DeepCopyInto added in v0.4.0

func (in *PackageCustomization) DeepCopyInto(out *PackageCustomization)

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

type SecretReference added in v0.2.0

type SecretReference struct {
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
}

func (*SecretReference) DeepCopy added in v0.2.0

func (in *SecretReference) DeepCopy() *SecretReference

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

func (*SecretReference) DeepCopyInto added in v0.2.0

func (in *SecretReference) DeepCopyInto(out *SecretReference)

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