v1alpha1

package
v0.0.0-...-9704ff0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the externaldb v1alpha1 API group +kubebuilder:object:generate=true +groupName=externaldb.databases.land

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "externaldb.databases.land", 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 ConnectionMongo

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

	Spec   ConnectionMongoSpec   `json:"spec,omitempty"`
	Status ConnectionMongoStatus `json:"status,omitempty"`
}

ConnectionMongo is the Schema for the connectionmongoes API

func (*ConnectionMongo) DeepCopy

func (in *ConnectionMongo) DeepCopy() *ConnectionMongo

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

func (*ConnectionMongo) DeepCopyInto

func (in *ConnectionMongo) DeepCopyInto(out *ConnectionMongo)

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

func (*ConnectionMongo) DeepCopyObject

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

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

type ConnectionMongoList

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

ConnectionMongoList contains a list of ConnectionMongo

func (*ConnectionMongoList) DeepCopy

func (in *ConnectionMongoList) DeepCopy() *ConnectionMongoList

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

func (*ConnectionMongoList) DeepCopyInto

func (in *ConnectionMongoList) DeepCopyInto(out *ConnectionMongoList)

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

func (*ConnectionMongoList) DeepCopyObject

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

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

type ConnectionMongoSpec

type ConnectionMongoSpec struct {
	// mongo hostname
	Hostname string `json:"hostname,omitempty"`

	// mongo port
	Port int64 `json:"port,omitempty"`

	// mongo username
	Username string `json:"username,omitempty"`

	// mongo password
	Password string `json:"password,omitempty"`

	// mongo database name
	Database string `json:"database,omitempty"`

	// mongo connection url
	Url string `json:"url,omitempty"`

	// secret name containing `MONGO_PASSWORD` or `MONGO_CONNECITON_URL`
	SecretName string `json:"secretName,omitempty"`

	// config map name containing `MONGO_HOSTNAME`, `MONGO_PORT`, `MONGO_USERNAME` or `MONGO_DATABASE`
	ConfigMapName string `json:"configMapName,omitempty"`
}

ConnectionMongoSpec defines the desired state of ConnectionMongo

func (*ConnectionMongoSpec) DeepCopy

func (in *ConnectionMongoSpec) DeepCopy() *ConnectionMongoSpec

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

func (*ConnectionMongoSpec) DeepCopyInto

func (in *ConnectionMongoSpec) DeepCopyInto(out *ConnectionMongoSpec)

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

type ConnectionMongoStatus

type ConnectionMongoStatus struct {
}

ConnectionMongoStatus defines the observed state of ConnectionMongo

func (*ConnectionMongoStatus) DeepCopy

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

func (*ConnectionMongoStatus) DeepCopyInto

func (in *ConnectionMongoStatus) DeepCopyInto(out *ConnectionMongoStatus)

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

type ConnectionMysql

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

	Spec   ConnectionMysqlSpec   `json:"spec,omitempty"`
	Status ConnectionMysqlStatus `json:"status,omitempty"`
}

ConnectionMysql is the Schema for the connectionmysqls API

func (*ConnectionMysql) DeepCopy

func (in *ConnectionMysql) DeepCopy() *ConnectionMysql

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

func (*ConnectionMysql) DeepCopyInto

func (in *ConnectionMysql) DeepCopyInto(out *ConnectionMysql)

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

func (*ConnectionMysql) DeepCopyObject

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

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

type ConnectionMysqlList

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

ConnectionMysqlList contains a list of ConnectionMysql

func (*ConnectionMysqlList) DeepCopy

func (in *ConnectionMysqlList) DeepCopy() *ConnectionMysqlList

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

func (*ConnectionMysqlList) DeepCopyInto

func (in *ConnectionMysqlList) DeepCopyInto(out *ConnectionMysqlList)

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

func (*ConnectionMysqlList) DeepCopyObject

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

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

type ConnectionMysqlSpec

type ConnectionMysqlSpec struct {
	// mysql hostname
	Hostname string `json:"hostname,omitempty"`

	// mysql port
	Port int64 `json:"port,omitempty"`

	// mysql username
	Username string `json:"username,omitempty"`

	// mysql password
	Password string `json:"password,omitempty"`

	// mysql database name
	Database string `json:"database,omitempty"`

	// mysql connection url
	Url string `json:"url,omitempty"`

	// secret name containing `MYSQL_PASSWORD` or `MYSQL_CONNECITON_URL`
	SecretName string `json:"secretName,omitempty"`

	// config map name containing `MYSQL_HOSTNAME`, `MYSQL_PORT`, `MYSQL_USERNAME` or `MYSQL_DATABASE`
	ConfigMapName string `json:"configMapName,omitempty"`
}

ConnectionMysqlSpec defines the desired state of ConnectionMysql

func (*ConnectionMysqlSpec) DeepCopy

func (in *ConnectionMysqlSpec) DeepCopy() *ConnectionMysqlSpec

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

func (*ConnectionMysqlSpec) DeepCopyInto

func (in *ConnectionMysqlSpec) DeepCopyInto(out *ConnectionMysqlSpec)

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

type ConnectionMysqlStatus

type ConnectionMysqlStatus struct {
}

ConnectionMysqlStatus defines the observed state of ConnectionMysql

func (*ConnectionMysqlStatus) DeepCopy

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

func (*ConnectionMysqlStatus) DeepCopyInto

func (in *ConnectionMysqlStatus) DeepCopyInto(out *ConnectionMysqlStatus)

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

type ConnectionPostgres

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

	Spec   ConnectionPostgresSpec   `json:"spec,omitempty"`
	Status ConnectionPostgresStatus `json:"status,omitempty"`
}

ConnectionPostgres is the Schema for the connectionpostgres API

func (*ConnectionPostgres) DeepCopy

func (in *ConnectionPostgres) DeepCopy() *ConnectionPostgres

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

func (*ConnectionPostgres) DeepCopyInto

func (in *ConnectionPostgres) DeepCopyInto(out *ConnectionPostgres)

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

func (*ConnectionPostgres) DeepCopyObject

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

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

type ConnectionPostgresList

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

ConnectionPostgresList contains a list of ConnectionPostgres

func (*ConnectionPostgresList) DeepCopy

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

func (*ConnectionPostgresList) DeepCopyInto

func (in *ConnectionPostgresList) DeepCopyInto(out *ConnectionPostgresList)

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

func (*ConnectionPostgresList) DeepCopyObject

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

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

type ConnectionPostgresSpec

type ConnectionPostgresSpec struct {
	// postgres hostname
	Hostname string `json:"hostname,omitempty"`

	// postgres port
	Port int64 `json:"port,omitempty"`

	// postgres username
	Username string `json:"username,omitempty"`

	// postgres password
	Password string `json:"password,omitempty"`

	// postgres database name
	Database string `json:"database,omitempty"`

	// postgres connection url
	Url string `json:"url,omitempty"`

	// secret name containing `POSTGRES_PASSWORD` or `POSTGRES_CONNECITON_URL`
	SecretName string `json:"secretName,omitempty"`

	// config map name containing `POSTGRES_HOSTNAME`, `POSTGRES_PORT`, `POSTGRES_USERNAME` or `POSTGRES_DATABASE`
	ConfigMapName string `json:"configMapName,omitempty"`

	// postgres ssl mode (allow, disable, prefer, allow-unauthorized, require, verify-ca, verify-full)
	SslMode string `json:"sslMode,omitempty"`
}

ConnectionPostgresSpec defines the desired state of ConnectionPostgres

func (*ConnectionPostgresSpec) DeepCopy

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

func (*ConnectionPostgresSpec) DeepCopyInto

func (in *ConnectionPostgresSpec) DeepCopyInto(out *ConnectionPostgresSpec)

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

type ConnectionPostgresStatus

type ConnectionPostgresStatus struct {
}

ConnectionPostgresStatus defines the observed state of ConnectionPostgres

func (*ConnectionPostgresStatus) DeepCopy

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

func (*ConnectionPostgresStatus) DeepCopyInto

func (in *ConnectionPostgresStatus) DeepCopyInto(out *ConnectionPostgresStatus)

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

type DatabaseConnection

type DatabaseConnection struct {
	// name of the connection postgres
	Name string `json:"name,omitempty"`

	// namespace of the connection postgres
	Namespace string `json:"namespace,omitempty"`
}

func (*DatabaseConnection) DeepCopy

func (in *DatabaseConnection) DeepCopy() *DatabaseConnection

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

func (*DatabaseConnection) DeepCopyInto

func (in *DatabaseConnection) DeepCopyInto(out *DatabaseConnection)

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

type ExternalMongo

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

	Spec   ExternalMongoSpec   `json:"spec,omitempty"`
	Status ExternalMongoStatus `json:"status,omitempty"`
}

ExternalMongo is the Schema for the externalmongoes API

func (*ExternalMongo) DeepCopy

func (in *ExternalMongo) DeepCopy() *ExternalMongo

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

func (*ExternalMongo) DeepCopyInto

func (in *ExternalMongo) DeepCopyInto(out *ExternalMongo)

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

func (*ExternalMongo) DeepCopyObject

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

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

type ExternalMongoList

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

ExternalMongoList contains a list of ExternalMongo

func (*ExternalMongoList) DeepCopy

func (in *ExternalMongoList) DeepCopy() *ExternalMongoList

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

func (*ExternalMongoList) DeepCopyInto

func (in *ExternalMongoList) DeepCopyInto(out *ExternalMongoList)

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

func (*ExternalMongoList) DeepCopyObject

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

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

type ExternalMongoSpec

type ExternalMongoSpec struct {
	// name is the name of the database to create
	Name string `json:"name,omitempty"`

	// cleanup will delete the database when the ExternalMongo resource is deleted
	Cleanup bool `json:"cleanup,omitempty"`

	// connection mongo resource
	Connection DatabaseConnection `json:"connection,omitempty"`

	// protocol to use in url
	Protocol string `json:"protocol,omitempty"`

	// kustomization to apply after success
	Kustomization KustomizationSpec `json:"kustomization,omitempty" yaml:"kustomization,omitempty"`

	// name of generated secret containing `MONGO_PASSWORD` or `MONGO_CONNECITON_URL`
	SecretName string `json:"secretName,omitempty"`

	// name of generated config map containing `MONGO_HOSTNAME`, `MONGO_PORT`, `MONGO_USERNAME` or `MONGO_DATABASE`
	ConfigMapName string `json:"configMapName,omitempty"`
}

ExternalMongoSpec defines the desired state of ExternalMongo

func (*ExternalMongoSpec) DeepCopy

func (in *ExternalMongoSpec) DeepCopy() *ExternalMongoSpec

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

func (*ExternalMongoSpec) DeepCopyInto

func (in *ExternalMongoSpec) DeepCopyInto(out *ExternalMongoSpec)

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

type ExternalMongoStatus

type ExternalMongoStatus struct {
	// database status (Creating, Deleting, Created, AlreadyExists or Failed)
	Database string `json:"database,omitempty"`

	// external mongo message
	Message string `json:"message,omitempty"`

	// external mongo phase (Pending, Succeeded, Failed, Unknown)
	Phase string `json:"phase,omitempty"`

	// external mongo ready
	Ready bool `json:"ready,omitempty"`
}

ExternalMongoStatus defines the observed state of ExternalMongo

func (*ExternalMongoStatus) DeepCopy

func (in *ExternalMongoStatus) DeepCopy() *ExternalMongoStatus

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

func (*ExternalMongoStatus) DeepCopyInto

func (in *ExternalMongoStatus) DeepCopyInto(out *ExternalMongoStatus)

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

type ExternalMysql

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

	Spec   ExternalMysqlSpec   `json:"spec,omitempty"`
	Status ExternalMysqlStatus `json:"status,omitempty"`
}

ExternalMysql is the Schema for the externalmysqls API

func (*ExternalMysql) DeepCopy

func (in *ExternalMysql) DeepCopy() *ExternalMysql

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

func (*ExternalMysql) DeepCopyInto

func (in *ExternalMysql) DeepCopyInto(out *ExternalMysql)

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

func (*ExternalMysql) DeepCopyObject

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

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

type ExternalMysqlList

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

ExternalMysqlList contains a list of ExternalMysql

func (*ExternalMysqlList) DeepCopy

func (in *ExternalMysqlList) DeepCopy() *ExternalMysqlList

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

func (*ExternalMysqlList) DeepCopyInto

func (in *ExternalMysqlList) DeepCopyInto(out *ExternalMysqlList)

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

func (*ExternalMysqlList) DeepCopyObject

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

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

type ExternalMysqlSpec

type ExternalMysqlSpec struct {
	// name is the name of the database to create
	Name string `json:"name,omitempty"`

	// cleanup will delete the database when the ExternalMysql resource is deleted
	Cleanup bool `json:"cleanup,omitempty"`

	// connection mysql resource
	Connection DatabaseConnection `json:"connection,omitempty"`

	// protocol to use in url
	Protocol string `json:"protocol,omitempty"`

	// kustomization to apply after success
	Kustomization KustomizationSpec `json:"kustomization,omitempty" yaml:"kustomization,omitempty"`

	// name of generated secret containing `MYSQL_PASSWORD` or `MYSQL_CONNECITON_URL`
	SecretName string `json:"secretName,omitempty"`

	// name of generated config map containing `MYSQL_HOSTNAME`, `MYSQL_PORT`, `MYSQL_USERNAME` or `MYSQL_DATABASE`
	ConfigMapName string `json:"configMapName,omitempty"`
}

ExternalMysqlSpec defines the desired state of ExternalMysql

func (*ExternalMysqlSpec) DeepCopy

func (in *ExternalMysqlSpec) DeepCopy() *ExternalMysqlSpec

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

func (*ExternalMysqlSpec) DeepCopyInto

func (in *ExternalMysqlSpec) DeepCopyInto(out *ExternalMysqlSpec)

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

type ExternalMysqlStatus

type ExternalMysqlStatus struct {
	// database status (Creating, Deleting, Created, AlreadyExists or Failed)
	Database string `json:"database,omitempty"`

	// external mysql message
	Message string `json:"message,omitempty"`

	// external mysql phase (Pending, Succeeded, Failed, Unknown)
	Phase string `json:"phase,omitempty"`

	// external mysql ready
	Ready bool `json:"ready,omitempty"`
}

ExternalMysqlStatus defines the observed state of ExternalMysql

func (*ExternalMysqlStatus) DeepCopy

func (in *ExternalMysqlStatus) DeepCopy() *ExternalMysqlStatus

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

func (*ExternalMysqlStatus) DeepCopyInto

func (in *ExternalMysqlStatus) DeepCopyInto(out *ExternalMysqlStatus)

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

type ExternalPostgres

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

	Spec   ExternalPostgresSpec   `json:"spec,omitempty"`
	Status ExternalPostgresStatus `json:"status,omitempty"`
}

ExternalPostgres is the Schema for the externalpostgres API

func (*ExternalPostgres) DeepCopy

func (in *ExternalPostgres) DeepCopy() *ExternalPostgres

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

func (*ExternalPostgres) DeepCopyInto

func (in *ExternalPostgres) DeepCopyInto(out *ExternalPostgres)

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

func (*ExternalPostgres) DeepCopyObject

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

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

type ExternalPostgresList

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

ExternalPostgresList contains a list of ExternalPostgres

func (*ExternalPostgresList) DeepCopy

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

func (*ExternalPostgresList) DeepCopyInto

func (in *ExternalPostgresList) DeepCopyInto(out *ExternalPostgresList)

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

func (*ExternalPostgresList) DeepCopyObject

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

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

type ExternalPostgresSpec

type ExternalPostgresSpec struct {
	// name is the name of the database to create
	Name string `json:"name,omitempty"`

	// cleanup will delete the database when the ExternalPostgres resource is deleted
	Cleanup bool `json:"cleanup,omitempty"`

	// connection postgres resource
	Connection DatabaseConnection `json:"connection,omitempty"`

	// protocol to use in url
	Protocol string `json:"protocol,omitempty"`

	// kustomization to apply after success
	Kustomization KustomizationSpec `json:"kustomization,omitempty" yaml:"kustomization,omitempty"`

	// name of generated secret containing `POSTGRES_PASSWORD` or `POSTGRES_CONNECITON_URL`
	SecretName string `json:"secretName,omitempty"`

	// name of generated config map containing `POSTGRES_HOSTNAME`, `POSTGRES_PORT`, `POSTGRES_USERNAME` or `POSTGRES_DATABASE`
	ConfigMapName string `json:"configMapName,omitempty"`
}

ExternalPostgresSpec defines the desired state of ExternalPostgres

func (*ExternalPostgresSpec) DeepCopy

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

func (*ExternalPostgresSpec) DeepCopyInto

func (in *ExternalPostgresSpec) DeepCopyInto(out *ExternalPostgresSpec)

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

type ExternalPostgresStatus

type ExternalPostgresStatus struct {
	// database status (Creating, Deleting, Created, AlreadyExists or Failed)
	Database string `json:"database,omitempty"`

	// external postgres message
	Message string `json:"message,omitempty"`

	// external postgres phase (Pending, Succeeded, Failed, Unknown)
	Phase string `json:"phase,omitempty"`

	// external postgres ready
	Ready bool `json:"ready,omitempty"`
}

ExternalPostgresStatus defines the observed state of ExternalPostgres

func (*ExternalPostgresStatus) DeepCopy

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

func (*ExternalPostgresStatus) DeepCopyInto

func (in *ExternalPostgresStatus) DeepCopyInto(out *ExternalPostgresStatus)

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

type KustomizationSpec

type KustomizationSpec struct {
	// keep retrying when fails until timeout in milliseconds expires
	RetryTimeout uint `json:"retryTimeout,omitempty" yaml:"retryTimeout,omitempty"`

	// kustomization config
	Configuration TransformerConfig `json:"configuration,omitempty" yaml:"configuration,omitempty"`

	// CommonAnnotations to add to all objects.
	CommonAnnotations map[string]string `json:"commonAnnotations,omitempty" yaml:"commonAnnotations,omitempty"`

	// CommonLabels to add to all objects and selectors.
	CommonLabels map[string]string `json:"commonLabels,omitempty" yaml:"commonLabels,omitempty"`

	// ConfigMapGenerator is a list of configmaps to generate from
	// local data (one configMap per list item).
	// The resulting resource is a normal operand, subject to
	// name prefixing, patching, etc.  By default, the name of
	// the map will have a suffix hash generated from its contents.
	ConfigMapGenerator []kustomizeTypes.ConfigMapArgs `json:"configMapGenerator,omitempty" yaml:"configMapGenerator,omitempty"`

	// Crds specifies relative paths to Custom Resource Definition files.
	// This allows custom resources to be recognized as operands, making
	// it possible to add them to the Resources list.
	// CRDs themselves are not modified.
	Crds []string `json:"crds,omitempty" yaml:"crds,omitempty"`

	// GeneratorOptions modify behavior of all ConfigMap and Secret generators.
	GeneratorOptions *kustomizeTypes.GeneratorOptions `json:"generatorOptions,omitempty" yaml:"generatorOptions,omitempty"`

	// Images is a list of (image name, new name, new tag or digest)
	// for changing image names, tags or digests. This can also be achieved with a
	// patch, but this operator is simpler to specify.
	Images []kustomizeTypes.Image `json:"images,omitempty" yaml:"images,omitempty"`

	// NamePrefix will prefix the names of all resources mentioned in the kustomization
	// file including generated configmaps and secrets.
	NamePrefix string `json:"namePrefix,omitempty" yaml:"namePrefix,omitempty"`

	// Namespace to add to all objects.
	Namespace string `json:"namespace,omitempty" yaml:"namespace,omitempty"`

	// NameSuffix will suffix the names of all resources mentioned in the kustomization
	// file including generated configmaps and secrets.
	NameSuffix string `json:"nameSuffix,omitempty" yaml:"nameSuffix,omitempty"`

	// Patches is a list of patches, where each one can be either a
	// Strategic Merge Patch or a JSON patch.
	// Each patch can be applied to multiple target objects.
	Patches []kustomizeTypes.Patch `json:"patches,omitempty" yaml:"patches,omitempty"`

	// JSONPatches is a list of JSONPatch for applying JSON patch.
	// Format documented at https://tools.ietf.org/html/rfc6902
	// and http://jsonpatch.com
	PatchesJson6902 []kustomizeTypes.PatchJson6902 `json:"patchesJson6902,omitempty" yaml:"patchesJson6902,omitempty"`

	// PatchesStrategicMerge specifies the relative path to a file
	// containing a strategic merge patch.  Format documented at
	// https://github.com/kubernetes/community/blob/master/contributors/devel/strategic-merge-patch.md
	// URLs and globs are not supported.
	PatchesStrategicMerge []kustomizeTypes.PatchStrategicMerge `json:"patchesStrategicMerge,omitempty" yaml:"patchesStrategicMerge,omitempty"`

	// Replicas is a list of {resourcename, count} that allows for simpler replica
	// specification. This can also be done with a patch.
	Replicas []kustomizeTypes.Replica `json:"replicas,omitempty" yaml:"replicas,omitempty"`

	// Resources refers to kubernetes resources subject to
	// kustomization.
	Resources []*kustomizeTypes.Selector `json:"resources,omitempty" yaml:"resources,omitempty"`

	// SecretGenerator is a list of secrets to generate from
	// local data (one secret per list item).
	// The resulting resource is a normal operand, subject to
	// name prefixing, patching, etc.  By default, the name of
	// the map will have a suffix hash generated from its contents.
	SecretGenerator []kustomizeTypes.SecretArgs `json:"secretGenerator,omitempty" yaml:"secretGenerator,omitempty"`

	// Vars allow things modified by kustomize to be injected into a
	// kubernetes object specification. A var is a name (e.g. FOO) associated
	// with a field in a specific resource instance.  The field must
	// contain a value of type string/bool/int/float, and defaults to the name field
	// of the instance.  Any appearance of "$(FOO)" in the object
	// spec will be replaced at kustomize build time, after the final
	// value of the specified field has been determined.
	Vars []kustomizeTypes.Var `json:"vars,omitempty" yaml:"vars,omitempty"`
}

KustomizationSpec defines the desired state of Kustomization

func (*KustomizationSpec) DeepCopy

func (in *KustomizationSpec) DeepCopy() *KustomizationSpec

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

func (*KustomizationSpec) DeepCopyInto

func (in *KustomizationSpec) DeepCopyInto(out *KustomizationSpec)

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

type TransformerConfig

type TransformerConfig struct {
	// NameReference     nbrSlice      `json:"nameReference,omitempty" yaml:"nameReference,omitempty"`
	CommonAnnotations kustomizeTypes.FsSlice `json:"commonAnnotations,omitempty" yaml:"commonAnnotations,omitempty"`
	CommonLabels      kustomizeTypes.FsSlice `json:"commonLabels,omitempty" yaml:"commonLabels,omitempty"`
	Images            kustomizeTypes.FsSlice `json:"images,omitempty" yaml:"images,omitempty"`
	NamePrefix        kustomizeTypes.FsSlice `json:"namePrefix,omitempty" yaml:"namePrefix,omitempty"`
	NameSpace         kustomizeTypes.FsSlice `json:"namespace,omitempty" yaml:"namespace,omitempty"`
	NameSuffix        kustomizeTypes.FsSlice `json:"nameSuffix,omitempty" yaml:"nameSuffix,omitempty"`
	Replicas          kustomizeTypes.FsSlice `json:"replicas,omitempty" yaml:"replicas,omitempty"`
	VarReference      kustomizeTypes.FsSlice `json:"varReference,omitempty" yaml:"varReference,omitempty"`
}

func (*TransformerConfig) DeepCopy

func (in *TransformerConfig) DeepCopy() *TransformerConfig

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

func (*TransformerConfig) DeepCopyInto

func (in *TransformerConfig) DeepCopyInto(out *TransformerConfig)

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