v1alpha1

package
v0.0.0-...-d134b14 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the operator v1alpha1 API group +kubebuilder:object:generate=true +groupName=operator.kyma-project.io

Index

Constants

View Source
const (
	StateReady      State = "Ready"
	StateProcessing State = "Processing"
	StateWarning    State = "Warning"
	StateError      State = "Error"
	StateDeleting   State = "Deleting"

	ServedTrue  Served = "True"
	ServedFalse Served = "False"

	// installation and deletion details
	ConditionTypeInstalled = ConditionType("Installed")

	// prerequisites and soft dependencies
	ConditionTypeConfigured = ConditionType("Configured")

	// deletion
	ConditionTypeDeleted = ConditionType("Deleted")

	ConditionReasonConfiguration    = ConditionReason("Configuration")
	ConditionReasonConfigurationErr = ConditionReason("ConfigurationErr")
	ConditionReasonConfigured       = ConditionReason("Configured")
	ConditionReasonInstallation     = ConditionReason("Installation")
	ConditionReasonInstallationErr  = ConditionReason("InstallationErr")
	ConditionReasonInstalled        = ConditionReason("Installed")
	ConditionReasonDuplicated       = ConditionReason("Duplicated")
	ConditionReasonDeletion         = ConditionReason("Deletion")
	ConditionReasonDeletionErr      = ConditionReason("DeletionErr")
	ConditionReasonDeleted          = ConditionReason("Deleted")

	Finalizer = "dockerregistry-operator.kyma-project.io/deletion-hook"
)
View Source
const (
	DockerregistryGroup   = "operator.kyma-project.io"
	DockerregistryVersion = "v1alpha1"
)
View Source
const (
	DefaultEnableInternal = false
	EndpointDisabled      = ""
)

Variables

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

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

type ConditionReason string

type ConditionType

type ConditionType string

type DockerRegistry

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

	Spec   DockerRegistrySpec   `json:"spec,omitempty"`
	Status DockerRegistryStatus `json:"status,omitempty"`
}

DockerRegistry is the Schema for the dockerregistry API

func (*DockerRegistry) DeepCopy

func (in *DockerRegistry) DeepCopy() *DockerRegistry

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

func (*DockerRegistry) DeepCopyInto

func (in *DockerRegistry) DeepCopyInto(out *DockerRegistry)

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

func (*DockerRegistry) DeepCopyObject

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

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

func (*DockerRegistry) IsCondition

func (s *DockerRegistry) IsCondition(conditionType ConditionType) bool

func (*DockerRegistry) IsConditionTrue

func (s *DockerRegistry) IsConditionTrue(conditionType ConditionType) bool

func (*DockerRegistry) IsInState

func (s *DockerRegistry) IsInState(state State) bool

func (*DockerRegistry) IsServedEmpty

func (s *DockerRegistry) IsServedEmpty() bool

func (*DockerRegistry) UpdateConditionFalse

func (s *DockerRegistry) UpdateConditionFalse(c ConditionType, r ConditionReason, err error)

func (*DockerRegistry) UpdateConditionTrue

func (s *DockerRegistry) UpdateConditionTrue(c ConditionType, r ConditionReason, msg string)

func (*DockerRegistry) UpdateConditionUnknown

func (s *DockerRegistry) UpdateConditionUnknown(c ConditionType, r ConditionReason, msg string)

type DockerRegistryList

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

DockerRegistryList contains a list of DockerRegistry

func (*DockerRegistryList) DeepCopy

func (in *DockerRegistryList) DeepCopy() *DockerRegistryList

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

func (*DockerRegistryList) DeepCopyInto

func (in *DockerRegistryList) DeepCopyInto(out *DockerRegistryList)

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

func (*DockerRegistryList) DeepCopyObject

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

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

type DockerRegistrySpec

type DockerRegistrySpec struct {
	// Storage defines the storage configuration ( filesystem / s3 / azure / gcs / btpObjectStore ).
	Storage *Storage `json:"storage,omitempty"`

	// ExternalAccess defines the external access configuration.
	ExternalAccess *ExternalAccess `json:"externalAccess,omitempty"`
}

DockerRegistrySpec defines the desired state of DockerRegistry

func (*DockerRegistrySpec) DeepCopy

func (in *DockerRegistrySpec) DeepCopy() *DockerRegistrySpec

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

func (*DockerRegistrySpec) DeepCopyInto

func (in *DockerRegistrySpec) DeepCopyInto(out *DockerRegistrySpec)

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

type DockerRegistryStatus

type DockerRegistryStatus struct {
	// InternalAccess contains the in-cluster access configuration of the DockerRegistry.
	InternalAccess NetworkAccess `json:"internalAccess,omitempty"`

	// ExternalAccess contains the external access configuration of the DockerRegistry.
	ExternalAccess ExternalNetworkAccess `json:"externalAccess,omitempty"`

	// Storage signifies the storage type of DockerRegistry.
	Storage string `json:"storage,omitempty"`

	PVC string `json:"pvc,omitempty"`

	// State signifies current state of DockerRegistry.
	// Value can be one of ("Ready", "Processing", "Error", "Deleting").
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Enum=Processing;Deleting;Ready;Error;Warning
	State State `json:"state,omitempty"`

	// Served signifies that current DockerRegistry is managed.
	// Value can be one of ("True", "False").
	// +kubebuilder:validation:Enum=True;False
	Served Served `json:"served"`

	// Conditions associated with CustomStatus.
	Conditions []metav1.Condition `json:"conditions,omitempty"`
}

func (*DockerRegistryStatus) DeepCopy

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

func (*DockerRegistryStatus) DeepCopyInto

func (in *DockerRegistryStatus) DeepCopyInto(out *DockerRegistryStatus)

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

type ExternalAccess

type ExternalAccess struct {
	// Enable indicates whether the external access is enabled.
	// default: false
	Enabled *bool `json:"enabled,omitempty"`

	// Gateway defines gateway name (in format: <namespace>/<name>)
	// default: kyma-system/kyma-gateway
	Gateway *string `json:"gateway,omitempty"`

	// Host defines address under which registry will be exposed
	// should fit to at least one server defined in the gateway
	Host *string `json:"host,omitempty"`
}

func (*ExternalAccess) DeepCopy

func (in *ExternalAccess) DeepCopy() *ExternalAccess

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

func (*ExternalAccess) DeepCopyInto

func (in *ExternalAccess) DeepCopyInto(out *ExternalAccess)

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

type ExternalNetworkAccess

type ExternalNetworkAccess struct {
	NetworkAccess `json:""`

	// Gateway indicates which gateway is used.
	Gateway string `json:"gateway,omitempty"`
}

func (*ExternalNetworkAccess) DeepCopy

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

func (*ExternalNetworkAccess) DeepCopyInto

func (in *ExternalNetworkAccess) DeepCopyInto(out *ExternalNetworkAccess)

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

type NetworkAccess

type NetworkAccess struct {
	// Enabled indicates whether the network access is enabled.
	Enabled string `json:"enabled,omitempty"`

	// SecretName is the name of the Secret containing the addresses and auth methods.
	SecretName string `json:"secretName,omitempty"`

	// PushAddress contains an address that can be used to push images to the registry from inside the cluster.
	PushAddress string `json:"pushAddress,omitempty"`

	// PullAddress contains address kubernetes can use to pull images from the registry.
	PullAddress string `json:"pullAddress,omitempty"`
}

func (*NetworkAccess) DeepCopy

func (in *NetworkAccess) DeepCopy() *NetworkAccess

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

func (*NetworkAccess) DeepCopyInto

func (in *NetworkAccess) DeepCopyInto(out *NetworkAccess)

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

type Served

type Served string

type State

type State string

type Storage

type Storage struct {
	Azure          *StorageAzure          `json:"azure,omitempty"`
	S3             *StorageS3             `json:"s3,omitempty"`
	GCS            *StorageGCS            `json:"gcs,omitempty"`
	BTPObjectStore *StorageBTPObjectStore `json:"btpObjectStore,omitempty"`
	PVC            *StoragePVC            `json:"pvc,omitempty"`
}

func (*Storage) DeepCopy

func (in *Storage) DeepCopy() *Storage

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

func (*Storage) DeepCopyInto

func (in *Storage) DeepCopyInto(out *Storage)

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

type StorageAzure

type StorageAzure struct {
	SecretName string `json:"secretName"`
}

func (*StorageAzure) DeepCopy

func (in *StorageAzure) DeepCopy() *StorageAzure

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

func (*StorageAzure) DeepCopyInto

func (in *StorageAzure) DeepCopyInto(out *StorageAzure)

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

type StorageAzureSecrets

type StorageAzureSecrets struct {
	AccountName string
	AccountKey  string
	Container   string
}

func (*StorageAzureSecrets) DeepCopy

func (in *StorageAzureSecrets) DeepCopy() *StorageAzureSecrets

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

func (*StorageAzureSecrets) DeepCopyInto

func (in *StorageAzureSecrets) DeepCopyInto(out *StorageAzureSecrets)

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

type StorageBTPObjectStore

type StorageBTPObjectStore struct {
	SecretName string `json:"secretName,omitempty"`
}

func (*StorageBTPObjectStore) DeepCopy

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

func (*StorageBTPObjectStore) DeepCopyInto

func (in *StorageBTPObjectStore) DeepCopyInto(out *StorageBTPObjectStore)

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

type StorageGCS

type StorageGCS struct {
	Bucket        string `json:"bucket"`
	SecretName    string `json:"secretName,omitempty"`
	Rootdirectory string `json:"rootdirectory,omitempty"`
	Chunksize     int    `json:"chunksize,omitempty"`
}

func (*StorageGCS) DeepCopy

func (in *StorageGCS) DeepCopy() *StorageGCS

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

func (*StorageGCS) DeepCopyInto

func (in *StorageGCS) DeepCopyInto(out *StorageGCS)

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

type StorageGCSSecrets

type StorageGCSSecrets struct {
	AccountKey string `json:"accountkey"`
}

func (*StorageGCSSecrets) DeepCopy

func (in *StorageGCSSecrets) DeepCopy() *StorageGCSSecrets

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

func (*StorageGCSSecrets) DeepCopyInto

func (in *StorageGCSSecrets) DeepCopyInto(out *StorageGCSSecrets)

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

type StoragePVC

type StoragePVC struct {
	Name string `json:"name"`
}

func (*StoragePVC) DeepCopy

func (in *StoragePVC) DeepCopy() *StoragePVC

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

func (*StoragePVC) DeepCopyInto

func (in *StoragePVC) DeepCopyInto(out *StoragePVC)

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

type StorageS3

type StorageS3 struct {
	Bucket         string `json:"bucket"`
	Region         string `json:"region"`
	RegionEndpoint string `json:"regionEndpoint,omitempty"`
	Encrypt        bool   `json:"encrypt,omitempty"`
	Secure         bool   `json:"secure,omitempty"`
	SecretName     string `json:"secretName,omitempty"`
}

func (*StorageS3) DeepCopy

func (in *StorageS3) DeepCopy() *StorageS3

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

func (*StorageS3) DeepCopyInto

func (in *StorageS3) DeepCopyInto(out *StorageS3)

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

type StorageS3Secrets

type StorageS3Secrets struct {
	AccessKey string `json:"accessKey"`
	SecretKey string `json:"secretKey"`
}

func (*StorageS3Secrets) DeepCopy

func (in *StorageS3Secrets) DeepCopy() *StorageS3Secrets

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

func (*StorageS3Secrets) DeepCopyInto

func (in *StorageS3Secrets) DeepCopyInto(out *StorageS3Secrets)

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