aiven_nais_io_v1

package
v0.0.0-...-399b07a Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 9 Imported by: 11

Documentation

Overview

Package v1 contains API Schema definitions for the aiven.nais.io v1 API group +kubebuilder:object:generate=true +groupName=aiven.nais.io +versionName=v1

Index

Constants

View Source
const (
	MaxServiceUserNameLength = 64
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "aiven.nais.io", Version: "v1"}

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

type AivenApplication struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              AivenApplicationSpec   `json:"spec,omitempty"`
	Status            AivenApplicationStatus `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:resource:shortName={"aivenapp"} +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Name of secret",type=string,JSONPath=".spec.secretName" +kubebuilder:printcolumn:name="State",type="string",JSONPath=".status.synchronizationState",priority=10 +kubebuilder:printcolumn:name="Synced",type="date",JSONPath=".status.synchronizationTime",priority=20 +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",priority=30

func (*AivenApplication) DeepCopy

func (in *AivenApplication) DeepCopy() *AivenApplication

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

func (*AivenApplication) DeepCopyInto

func (in *AivenApplication) DeepCopyInto(out *AivenApplication)

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

func (*AivenApplication) DeepCopyObject

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

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

func (*AivenApplication) FormatExpiresAt

func (in *AivenApplication) FormatExpiresAt() string

func (*AivenApplication) GetOwnerReference

func (in *AivenApplication) GetOwnerReference() metav1.OwnerReference

func (*AivenApplication) Hash

func (in *AivenApplication) Hash() (string, error)

func (*AivenApplication) SecretKey

func (in *AivenApplication) SecretKey() client.ObjectKey

type AivenApplicationBuilder

type AivenApplicationBuilder struct {
	// contains filtered or unexported fields
}

func NewAivenApplicationBuilder

func NewAivenApplicationBuilder(name, namespace string) AivenApplicationBuilder

func (AivenApplicationBuilder) Build

func (*AivenApplicationBuilder) DeepCopy

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

func (*AivenApplicationBuilder) DeepCopyInto

func (in *AivenApplicationBuilder) DeepCopyInto(out *AivenApplicationBuilder)

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

func (AivenApplicationBuilder) WithAnnotation

func (b AivenApplicationBuilder) WithAnnotation(key, value string) AivenApplicationBuilder

func (AivenApplicationBuilder) WithSpec

func (AivenApplicationBuilder) WithStatus

type AivenApplicationCondition

type AivenApplicationCondition struct {
	// Type of condition.
	Type AivenApplicationConditionType `json:"type"`
	// Status of the condition, one of True, False, Unknown.
	Status corev1.ConditionStatus `json:"status"`
	// The last time this condition was updated.
	LastUpdateTime metav1.Time `json:"lastUpdateTime,omitempty"`
	// The reason for the condition's last transition.
	Reason string `json:"reason,omitempty"`
	// A human readable message indicating details about the transition.
	Message string `json:"message,omitempty"`
}

AivenApplicationCondition describes the state of a deployment at a certain point.

func (*AivenApplicationCondition) DeepCopy

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

func (*AivenApplicationCondition) DeepCopyInto

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

type AivenApplicationConditionType

type AivenApplicationConditionType string
const (
	AivenApplicationSucceeded    AivenApplicationConditionType = "Succeeded"
	AivenApplicationAivenFailure AivenApplicationConditionType = "AivenFailure"
	AivenApplicationLocalFailure AivenApplicationConditionType = "LocalFailure"
)

type AivenApplicationList

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

+kubebuilder:object:root=true

func (*AivenApplicationList) DeepCopy

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

func (*AivenApplicationList) DeepCopyInto

func (in *AivenApplicationList) DeepCopyInto(out *AivenApplicationList)

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

func (*AivenApplicationList) DeepCopyObject

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

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

type AivenApplicationSpec

type AivenApplicationSpec struct {
	// SecretName is the name of the secret containing Aiven credentials
	SecretName string `json:"secretName"`
	// A Protected secret will not be deleted by the janitor even when not in use
	Protected bool `json:"protected,omitempty"`
	// A timestamp that indicates time-to-expire-date for personal secrets.
	// Format RFC3339 = "2006-01-02T15:04:05Z07:00"
	// +kubebuilder:validation:Type=string
	// +kubebuilder:validation:Format=date-time
	ExpiresAt *metav1.Time `json:"expiresAt,omitempty"`
	// Kafka is a section configuring the kafka credentials to provision
	Kafka *KafkaSpec `json:"kafka,omitempty"`
	// OpenSearch is a section configuring the OpenSearch credentials to provision
	OpenSearch *OpenSearchSpec `json:"openSearch,omitempty"`
	// Redis is a section configuring the Redis credentials to provision
	Redis []*RedisSpec `json:"redis,omitempty"`
	// InfluxDB is a section configuring the InfluxDB credentials to provision
	InfluxDB *InfluxDBSpec `json:"influxDB,omitempty"`
}

func (*AivenApplicationSpec) DeepCopy

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

func (*AivenApplicationSpec) DeepCopyInto

func (in *AivenApplicationSpec) DeepCopyInto(out *AivenApplicationSpec)

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

type AivenApplicationStatus

type AivenApplicationStatus struct {
	// SynchronizationHash is the hash of the AivenApplication object most recently successfully synchronized
	SynchronizationHash string `json:"synchronizationHash,omitempty"`
	// SynchronizationSecretName is the SecretName set in the last successful synchronization
	SynchronizationSecretName string `json:"synchronizationSecretName,omitempty"`
	// SynchronizationState denotes whether the provisioning of the AivenApplication has been successfully completed or not
	SynchronizationState string `json:"synchronizationState,omitempty"`
	// SynchronizationTime is the last time the Status subresource was updated
	SynchronizationTime *metav1.Time `json:"synchronizationTime,omitempty"`
	// SynchronizedGeneration is the generation most recently successfully synchronized by Aivenator
	SynchronizedGeneration int64 `json:"synchronizedGeneration,omitempty"`
	// ObservedGeneration is the generation most recently observed by Aivenator
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// Represents the latest available observations of an AivenApplications' current state.
	Conditions []AivenApplicationCondition `json:"conditions,omitempty"`
}

func (*AivenApplicationStatus) AddCondition

func (in *AivenApplicationStatus) AddCondition(condition AivenApplicationCondition, dropTypes ...AivenApplicationConditionType)

func (*AivenApplicationStatus) DeepCopy

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

func (*AivenApplicationStatus) DeepCopyInto

func (in *AivenApplicationStatus) DeepCopyInto(out *AivenApplicationStatus)

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

func (*AivenApplicationStatus) GetConditionOfType

type InfluxDBSpec

type InfluxDBSpec struct {
	// Name of the InfluxDB instance (`influx-<team>`)
	Instance string `json:"instance,omitempty"`
}

func (*InfluxDBSpec) DeepCopy

func (in *InfluxDBSpec) DeepCopy() *InfluxDBSpec

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

func (*InfluxDBSpec) DeepCopyInto

func (in *InfluxDBSpec) DeepCopyInto(out *InfluxDBSpec)

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

type KafkaSpec

type KafkaSpec struct {
	// Pool is the Kafka pool (aka cluster) on Aiven this application uses
	Pool string `json:"pool"`
}

func (*KafkaSpec) DeepCopy

func (in *KafkaSpec) DeepCopy() *KafkaSpec

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

func (*KafkaSpec) DeepCopyInto

func (in *KafkaSpec) DeepCopyInto(out *KafkaSpec)

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

type OpenSearchSpec

type OpenSearchSpec struct {
	// Use the `instance_name` that you specified in the [navikt/aiven-iac](https://github.com/navikt/aiven-iac) repository.
	Instance string `json:"instance,omitempty"`
	// Access level for opensearch user
	// +kubebuilder:validation:Enum=read;write;readwrite;admin
	Access string `json:"access,omitempty"`
}

func (*OpenSearchSpec) DeepCopy

func (in *OpenSearchSpec) DeepCopy() *OpenSearchSpec

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

func (*OpenSearchSpec) DeepCopyInto

func (in *OpenSearchSpec) DeepCopyInto(out *OpenSearchSpec)

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

type RedisSpec

type RedisSpec struct {
	// The last part of the name used when creating the instance (ie. redis-<team>-<instance>)
	Instance string `json:"instance,omitempty"`
	// Access level for redis user
	// +kubebuilder:validation:Enum=read;write;readwrite;admin
	Access string `json:"access,omitempty"`
}

func (*RedisSpec) DeepCopy

func (in *RedisSpec) DeepCopy() *RedisSpec

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

func (*RedisSpec) DeepCopyInto

func (in *RedisSpec) DeepCopyInto(out *RedisSpec)

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