v1alpha1

package
v0.0.0-...-0f0168f Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the influxdata v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=influxdata.com

Package v1alpha1 contains API Schema definitions for the influxdata v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=influxdata.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: "influxdata.com", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}
)

Functions

func RegisterDefaults

func RegisterDefaults(scheme *runtime.Scheme) error

RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.

Types

type Backup

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

	Spec   BackupSpec   `json:"spec,omitempty"`
	Status BackupStatus `json:"status,omitempty"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object Backup is the Schema for the backups API +k8s:openapi-gen=true

func (*Backup) DeepCopy

func (in *Backup) DeepCopy() *Backup

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

func (*Backup) DeepCopyInto

func (in *Backup) DeepCopyInto(out *Backup)

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

func (*Backup) DeepCopyObject

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

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

type BackupList

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

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object BackupList contains a list of Backup

func (*BackupList) DeepCopy

func (in *BackupList) DeepCopy() *BackupList

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

func (*BackupList) DeepCopyInto

func (in *BackupList) DeepCopyInto(out *BackupList)

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

func (*BackupList) DeepCopyObject

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

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

type BackupSpec

type BackupSpec struct {
	Databases     []string      `json:"databases"`
	Storage       BackupStorage `json:"storage"`
	PodName       string        `json:"podname"`
	ContainerName string        `json:"containername"`
	Retention     string        `json:"retention"`
	Shard         string        `json:"shard"`
	Start         string        `json:"start"`
	End           string        `json:"end"`
	Since         string        `json:"since"`
}

BackupSpec defines the specification for a backup.

func (*BackupSpec) DeepCopy

func (in *BackupSpec) DeepCopy() *BackupSpec

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

func (*BackupSpec) DeepCopyInto

func (in *BackupSpec) DeepCopyInto(out *BackupSpec)

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

type BackupStatus

type BackupStatus struct {
	Location string `json:"location"`
}

BackupStatus defines the observed state of Backup

func (*BackupStatus) DeepCopy

func (in *BackupStatus) DeepCopy() *BackupStatus

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

func (*BackupStatus) DeepCopyInto

func (in *BackupStatus) DeepCopyInto(out *BackupStatus)

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

type BackupStorage

type BackupStorage struct {
	Provider string           `json:"provider"`
	S3       S3BackupStorage  `json:"s3,omitempty"`
	Gcs      GcsBackupStorage `json:"gcs,omitempty"`
}

func (*BackupStorage) DeepCopy

func (in *BackupStorage) DeepCopy() *BackupStorage

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

func (*BackupStorage) DeepCopyInto

func (in *BackupStorage) DeepCopyInto(out *BackupStorage)

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

type GcsBackupStorage

type GcsBackupStorage struct {
	SaJson SecretRef `json:"sa_json"`
	Bucket string    `json:"bucket"`
	Folder string    `json:"folder"`
}

func (*GcsBackupStorage) DeepCopy

func (in *GcsBackupStorage) DeepCopy() *GcsBackupStorage

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

func (*GcsBackupStorage) DeepCopyInto

func (in *GcsBackupStorage) DeepCopyInto(out *GcsBackupStorage)

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

type Influxdb

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

	Spec   InfluxdbSpec   `json:"spec,omitempty"`
	Status InfluxdbStatus `json:"status,omitempty"`
}

Influxdb is the Schema for the influxdbs API +k8s:openapi-gen=true

func (*Influxdb) DeepCopy

func (in *Influxdb) DeepCopy() *Influxdb

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

func (*Influxdb) DeepCopyInto

func (in *Influxdb) DeepCopyInto(out *Influxdb)

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

func (*Influxdb) DeepCopyObject

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

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

type InfluxdbList

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

InfluxdbList contains a list of Influxdb

func (*InfluxdbList) DeepCopy

func (in *InfluxdbList) DeepCopy() *InfluxdbList

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

func (*InfluxdbList) DeepCopyInto

func (in *InfluxdbList) DeepCopyInto(out *InfluxdbList)

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

func (*InfluxdbList) DeepCopyObject

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

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

type InfluxdbSpec

type InfluxdbSpec struct {
	// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
	// Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file
	// Size is the number of Pods to create for the Influxdb cluster. Default: 1
	Size int32 `json:"size"`
	// BaseImage is the Influxdb container image to use for the Pods.
	BaseImage string `json:"baseImage"`
	// ImagePullPolicy defines how the image is pulled.
	ImagePullPolicy corev1.PullPolicy `json:"imagePullPolicy"`
	// NodeSelector defines which node pods get scheduled.
	NodeSelector map[string]string `json:"nodeSelector"`
	//  Affinity defines which nodes your pod is eligible to be scheduled on, based on labels on the node.
	Affinity *corev1.Affinity `json:"affinity,omitempty"`
	// Tolerations are applied to pods, and allow the pods to schedule onto nodes with matching taints.
	Tolerations []corev1.Toleration `json:"tolerations,omitempty"`
	// Pod defines the policy for pods owned by InfluxDB operator.
	// This field cannot be updated once the CR is created.
	Pod *PodPolicy `json:"pod,omitempty"`
}

InfluxdbSpec defines the desired state of Influxdb

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 InfluxdbStatus

type InfluxdbStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file
	Nodes []string `json:"nodes"`
	// ServiceName is the name of the Service for accessing the pods in the cluster.
	ServiceName string `json:"serviceName"`
	// PersistentVolumeClaimName is the name of the PVC backing the pods in the cluster.
	PersistentVolumeClaimName string `json:"persistentVolumeClaimName"`
}

InfluxdbStatus defines the observed state of Influxdb

func (*InfluxdbStatus) DeepCopy

func (in *InfluxdbStatus) DeepCopy() *InfluxdbStatus

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

func (*InfluxdbStatus) DeepCopyInto

func (in *InfluxdbStatus) DeepCopyInto(out *InfluxdbStatus)

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

type KubernetesSecret

type KubernetesSecret struct {
	Name      string `json:"name"`
	Key       string `json:"key"`
	Namespace string `json:"namespace"`
}

func (*KubernetesSecret) DeepCopy

func (in *KubernetesSecret) DeepCopy() *KubernetesSecret

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

func (*KubernetesSecret) DeepCopyInto

func (in *KubernetesSecret) DeepCopyInto(out *KubernetesSecret)

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

type PodPolicy

type PodPolicy struct {
	// Resources is the resource requirements for the containers.
	Resources corev1.ResourceRequirements `json:"resources,omitempty"`
	// Env defines environment variables which get passed into  pods
	Env []corev1.EnvVar `json:"env"`
	// EnvFrom defines envFrom's which get passed into pods
	EnvFrom []corev1.EnvFromSource `json:"envFrom,omitempty"`
	// PersistentVolumeClaim is the claim to describe PVC for the influxdb container
	PersistentVolumeClaim *corev1.PersistentVolumeClaim `json:"persistentVolumeClaim,omitempty"`
}

PodPolicy defines the policy for pods owned by InfluxDB operator.

func (*PodPolicy) DeepCopy

func (in *PodPolicy) DeepCopy() *PodPolicy

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

func (*PodPolicy) DeepCopyInto

func (in *PodPolicy) DeepCopyInto(out *PodPolicy)

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

type Restore

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

	Spec   RestoreSpec   `json:"spec,omitempty"`
	Status RestoreStatus `json:"status,omitempty"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object Restore is the Schema for the restores API +k8s:openapi-gen=true

func (*Restore) DeepCopy

func (in *Restore) DeepCopy() *Restore

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

func (*Restore) DeepCopyInto

func (in *Restore) DeepCopyInto(out *Restore)

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

func (*Restore) DeepCopyObject

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

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

type RestoreList

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

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object RestoreList contains a list of Restore

func (*RestoreList) DeepCopy

func (in *RestoreList) DeepCopy() *RestoreList

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

func (*RestoreList) DeepCopyInto

func (in *RestoreList) DeepCopyInto(out *RestoreList)

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

func (*RestoreList) DeepCopyObject

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

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

type RestoreSpec

type RestoreSpec struct {
	Database          string        `json:"database"`
	RestoreToDatabase string        `json:"restoreTo"`
	BackupId          string        `json:"backupId"`
	Storage           BackupStorage `json:"storage"`
	PodName           string        `json:"podname"`
	ContainerName     string        `json:"containername"`
	Rp                string        `json:"rp"`
	NewRp             string        `json:"newRp"`
	Shard             string        `json:"shard"`
}

RestoreSpec defines the desired config of Restore

func (*RestoreSpec) DeepCopy

func (in *RestoreSpec) DeepCopy() *RestoreSpec

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

func (*RestoreSpec) DeepCopyInto

func (in *RestoreSpec) DeepCopyInto(out *RestoreSpec)

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

type RestoreStatus

type RestoreStatus struct {
	RunResult string `json:"result"`
}

RestoreStatus defines the observed state of Restore

func (*RestoreStatus) DeepCopy

func (in *RestoreStatus) DeepCopy() *RestoreStatus

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

func (*RestoreStatus) DeepCopyInto

func (in *RestoreStatus) DeepCopyInto(out *RestoreStatus)

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

type S3BackupStorage

type S3BackupStorage struct {
	AwsKeyId     SecretRef `json:"aws_key_id"`
	AwsSecretKey SecretRef `json:"aws_secret_key"`
	Bucket       string    `json:"bucket"`
	Folder       string    `json:"folder"`
	Region       string    `json:"region"`
}

func (*S3BackupStorage) DeepCopy

func (in *S3BackupStorage) DeepCopy() *S3BackupStorage

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

func (*S3BackupStorage) DeepCopyInto

func (in *S3BackupStorage) DeepCopyInto(out *S3BackupStorage)

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

type SecretRef

type SecretRef struct {
	ValueFrom ValueFrom `json:"valueFrom"`
}

func (*SecretRef) DeepCopy

func (in *SecretRef) DeepCopy() *SecretRef

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

func (*SecretRef) DeepCopyInto

func (in *SecretRef) DeepCopyInto(out *SecretRef)

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

type ValueFrom

type ValueFrom struct {
	SecretKeyRef KubernetesSecret `json:"secretKeyRef"`
}

func (*ValueFrom) DeepCopy

func (in *ValueFrom) DeepCopy() *ValueFrom

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

func (*ValueFrom) DeepCopyInto

func (in *ValueFrom) DeepCopyInto(out *ValueFrom)

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