v1beta1

package
v0.8.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

+kubebuilder:object:generate=true +groupName=core.opni.io

Index

Constants

View Source
const (
	IDLabel = "opni.io/multiclusterID"
)

Variables

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

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

type AlertingSpec struct {
	Enabled bool `json:"enabled,omitempty"`
	//+kubebuilder:default=9093
	WebPort int `json:"webPort,omitempty"`
	//+kubebuilder:default=9094
	ClusterPort int `json:"clusterPort,omitempty"`
	//+kubebuilder:default="ClusterIP"
	ServiceType corev1.ServiceType `json:"serviceType,omitempty"`
	//+kubebuilder:default="500Mi"
	Storage string `json:"storage,omitempty"`
	//+kubebuilder:default="500m"
	CPU string `json:"cpu,omitempty"`
	//+kubebuilder:default="200Mi"
	Memory string `json:"memory,omitempty"`
	//+kubebuilder:default=1
	Replicas int32 `json:"replicas,omitempty"`
	//+kubebuilder:default="1m0s"
	ClusterSettleTimeout string `json:"clusterSettleTimeout,omitempty"`
	//+kubebuilder:default="1m0s"
	ClusterPushPullInterval string `json:"clusterPushPullInterval,omitempty"`
	//+kubebuilder:default="200ms"
	ClusterGossipInterval string                      `json:"clusterGossipInterval,omitempty"`
	ConfigName            string                      `json:"configName,omitempty"`
	GatewayVolumeMounts   []opnimeta.ExtraVolumeMount `json:"alertVolumeMounts,omitempty"`
	RawAlertManagerConfig string                      `json:"rawConfigMap,omitempty"`
	RawInternalRouting    string                      `json:"rawInternalRouting,omitempty"`
}

v1beta2 spec

func (*AlertingSpec) DeepCopy

func (in *AlertingSpec) DeepCopy() *AlertingSpec

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

func (*AlertingSpec) DeepCopyInto

func (in *AlertingSpec) DeepCopyInto(out *AlertingSpec)

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

type AuthSpec

type AuthSpec struct {
	//+kubebuilder:validation:Required
	Provider cfgv1beta1.AuthProviderType `json:"provider,omitempty"`
	Openid   *OpenIDConfigSpec           `json:"openid,omitempty"`
	Noauth   *noauth.ServerConfig        `json:"noauth,omitempty"`
}

func (*AuthSpec) DeepCopy

func (in *AuthSpec) DeepCopy() *AuthSpec

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

func (*AuthSpec) DeepCopyInto

func (in *AuthSpec) DeepCopyInto(out *AuthSpec)

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

type CortexSpec

type CortexSpec struct {
	Enabled        bool                   `json:"enabled,omitempty"`
	Image          *opnimeta.ImageSpec    `json:"image,omitempty"`
	LogLevel       string                 `json:"logLevel,omitempty"`
	Storage        *storagev1.StorageSpec `json:"storage,omitempty"`
	ExtraEnvVars   []corev1.EnvVar        `json:"extraEnvVars,omitempty"`
	DeploymentMode DeploymentMode         `json:"deploymentMode,omitempty"`

	// Overrides for specific workloads. If unset, all values have automatic
	// defaults based on the deployment mode.
	Workloads CortexWorkloadsSpec `json:"workloads,omitempty"`
}

func (*CortexSpec) DeepCopy

func (in *CortexSpec) DeepCopy() *CortexSpec

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

func (*CortexSpec) DeepCopyInto

func (in *CortexSpec) DeepCopyInto(out *CortexSpec)

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

type CortexStatus

type CortexStatus struct {
	Version        string                    `json:"version,omitempty"`
	WorkloadsReady bool                      `json:"workloadsReady,omitempty"`
	Conditions     []string                  `json:"conditions,omitempty"`
	WorkloadStatus map[string]WorkloadStatus `json:"workloadStatus,omitempty"`
}

func (*CortexStatus) DeepCopy

func (in *CortexStatus) DeepCopy() *CortexStatus

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

func (*CortexStatus) DeepCopyInto

func (in *CortexStatus) DeepCopyInto(out *CortexStatus)

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

type CortexWorkloadSpec

type CortexWorkloadSpec struct {
	Replicas           *int32                            `json:"replicas,omitempty"`
	ExtraVolumes       []corev1.Volume                   `json:"extraVolumes,omitempty"`
	ExtraVolumeMounts  []corev1.VolumeMount              `json:"extraVolumeMounts,omitempty"`
	ExtraEnvVars       []corev1.EnvVar                   `json:"extraEnvVars,omitempty"`
	ExtraArgs          []string                          `json:"extraArgs,omitempty"`
	SidecarContainers  []corev1.Container                `json:"sidecarContainers,omitempty"`
	InitContainers     []corev1.Container                `json:"initContainers,omitempty"`
	DeploymentStrategy *appsv1.DeploymentStrategy        `json:"deploymentStrategy,omitempty"`
	UpdateStrategy     *appsv1.StatefulSetUpdateStrategy `json:"updateStrategy,omitempty"`
	SecurityContext    *corev1.SecurityContext           `json:"securityContext,omitempty"`
	Affinity           *corev1.Affinity                  `json:"affinity,omitempty"`
}

func (*CortexWorkloadSpec) DeepCopy

func (in *CortexWorkloadSpec) DeepCopy() *CortexWorkloadSpec

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

func (*CortexWorkloadSpec) DeepCopyInto

func (in *CortexWorkloadSpec) DeepCopyInto(out *CortexWorkloadSpec)

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

type CortexWorkloadsSpec

type CortexWorkloadsSpec struct {
	Distributor   *CortexWorkloadSpec `json:"distributor,omitempty"`
	Ingester      *CortexWorkloadSpec `json:"ingester,omitempty"`
	Compactor     *CortexWorkloadSpec `json:"compactor,omitempty"`
	StoreGateway  *CortexWorkloadSpec `json:"storeGateway,omitempty"`
	Ruler         *CortexWorkloadSpec `json:"ruler,omitempty"`
	QueryFrontend *CortexWorkloadSpec `json:"queryFrontend,omitempty"`
	Querier       *CortexWorkloadSpec `json:"querier,omitempty"`
	Purger        *CortexWorkloadSpec `json:"purger,omitempty"`

	// Used only when deploymentMode is AllInOne.
	AllInOne *CortexWorkloadSpec `json:"allInOne,omitempty"`
}

func (*CortexWorkloadsSpec) DeepCopy

func (in *CortexWorkloadsSpec) DeepCopy() *CortexWorkloadsSpec

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

func (*CortexWorkloadsSpec) DeepCopyInto

func (in *CortexWorkloadsSpec) DeepCopyInto(out *CortexWorkloadsSpec)

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

type DeploymentMode

type DeploymentMode string
const (
	DeploymentModeAllInOne        DeploymentMode = "AllInOne"
	DeploymentModeHighlyAvailable DeploymentMode = "HighlyAvailable"
)

type FileStorageSpec

type FileStorageSpec struct {
	JetStreamPersistenceSpec `json:",inline"`
	Enabled                  *bool             `json:"enabled,omitempty"`
	Size                     resource.Quantity `json:"size,omitempty"`
}

func (*FileStorageSpec) DeepCopy

func (in *FileStorageSpec) DeepCopy() *FileStorageSpec

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

func (*FileStorageSpec) DeepCopyInto

func (in *FileStorageSpec) DeepCopyInto(out *FileStorageSpec)

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

type Gateway

type Gateway struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              GatewaySpec   `json:"spec,omitempty"`
	Status            GatewayStatus `json:"status,omitempty"`
}

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

func (*Gateway) DeepCopy

func (in *Gateway) DeepCopy() *Gateway

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

func (*Gateway) DeepCopyInto

func (in *Gateway) DeepCopyInto(out *Gateway)

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

func (*Gateway) DeepCopyObject

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

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

type GatewayList

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

+kubebuilder:object:root=true

func (*GatewayList) DeepCopy

func (in *GatewayList) DeepCopy() *GatewayList

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

func (*GatewayList) DeepCopyInto

func (in *GatewayList) DeepCopyInto(out *GatewayList)

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

func (*GatewayList) DeepCopyObject

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

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

type GatewaySpec

type GatewaySpec struct {
	Image *opnimeta.ImageSpec `json:"image,omitempty"`
	//+kubebuilder:validation:Required
	Auth             AuthSpec `json:"auth,omitempty"`
	Hostname         string   `json:"hostname,omitempty"`
	PluginSearchDirs []string `json:"pluginSearchDirs,omitempty"`

	Alerting AlertingSpec                `json:"alerting,omitempty"`
	NatsRef  corev1.LocalObjectReference `json:"natsCluster"`

	//+kubebuilder:default=LoadBalancer
	ServiceType        corev1.ServiceType        `json:"serviceType,omitempty"`
	ServiceAnnotations map[string]string         `json:"serviceAnnotations,omitempty"`
	Management         cfgv1beta1.ManagementSpec `json:"management,omitempty"`
	//+kubebuilder:default=etcd
	StorageType cfgv1beta1.StorageType `json:"storageType,omitempty"`

	NodeSelector      map[string]string           `json:"nodeSelector,omitempty"`
	Tolerations       []corev1.Toleration         `json:"tolerations,omitempty"`
	Affinity          *corev1.Affinity            `json:"affinity,omitempty"`
	ExtraVolumeMounts []opnimeta.ExtraVolumeMount `json:"extraVolumeMounts,omitempty"`
	ExtraEnvVars      []corev1.EnvVar             `json:"extraEnvVars,omitempty"`
	Profiling         cfgv1beta1.ProfilingSpec    `json:"profiling,omitempty"`
}

func (*GatewaySpec) DeepCopy

func (in *GatewaySpec) DeepCopy() *GatewaySpec

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

func (*GatewaySpec) DeepCopyInto

func (in *GatewaySpec) DeepCopyInto(out *GatewaySpec)

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

func (*GatewaySpec) GetServiceType

func (g *GatewaySpec) GetServiceType() corev1.ServiceType

type GatewayStatus

type GatewayStatus struct {
	Image           string                      `json:"image,omitempty"`
	ImagePullPolicy corev1.PullPolicy           `json:"imagePullPolicy,omitempty"`
	ServiceName     string                      `json:"serviceName,omitempty"`
	LoadBalancer    *corev1.LoadBalancerIngress `json:"loadBalancer,omitempty"`
	Endpoints       []corev1.EndpointAddress    `json:"endpoints,omitempty"`
	Ready           bool                        `json:"ready,omitempty"`
}

func (*GatewayStatus) DeepCopy

func (in *GatewayStatus) DeepCopy() *GatewayStatus

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

func (*GatewayStatus) DeepCopyInto

func (in *GatewayStatus) DeepCopyInto(out *GatewayStatus)

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

type GrafanaSpec

type GrafanaSpec struct {
	Enabled bool `json:"enabled,omitempty"`
	//+kubebuilder:validation:Required
	Hostname string `json:"hostname"`

	// Contains any additional configuration or overrides for the Grafana
	// installation spec.
	grafanav1alpha1.GrafanaSpec `json:",inline,omitempty"`
}

func (*GrafanaSpec) DeepCopy

func (in *GrafanaSpec) DeepCopy() *GrafanaSpec

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

func (*GrafanaSpec) DeepCopyInto

func (in *GrafanaSpec) DeepCopyInto(out *GrafanaSpec)

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

type IndexUserState

type IndexUserState string
const (
	IndexUserStatePending IndexUserState = "pending"
	IndexUserStateCreated IndexUserState = "created"
	IndexUserStateError   IndexUserState = "error"
)

type JetStreamPersistenceSpec

type JetStreamPersistenceSpec struct {
	PVC      *PVCSource                   `json:"pvc,omitempty"`
	EmptyDir *corev1.EmptyDirVolumeSource `json:"emptyDir,omitempty"`
}

func (*JetStreamPersistenceSpec) DeepCopy

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

func (*JetStreamPersistenceSpec) DeepCopyInto

func (in *JetStreamPersistenceSpec) DeepCopyInto(out *JetStreamPersistenceSpec)

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

type JetStreamSpec

type JetStreamSpec struct {
	Enabled           *bool             `json:"enabled,omitempty"`
	MemoryStorageSize resource.Quantity `json:"memoryStorageSize,omitempty"`
	FileStorage       FileStorageSpec   `json:"fileStorage,omitempty"`
}

func (*JetStreamSpec) DeepCopy

func (in *JetStreamSpec) DeepCopy() *JetStreamSpec

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

func (*JetStreamSpec) DeepCopyInto

func (in *JetStreamSpec) DeepCopyInto(out *JetStreamSpec)

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

type LoggingCluster

type LoggingCluster struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              LoggingClusterSpec   `json:"spec,omitempty"`
	Status            LoggingClusterStatus `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp` +kubebuilder:printcolumn:name="IndexUser",type=boolean,JSONPath=`.status.indexUserState`

func (*LoggingCluster) DeepCopy

func (in *LoggingCluster) DeepCopy() *LoggingCluster

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

func (*LoggingCluster) DeepCopyInto

func (in *LoggingCluster) DeepCopyInto(out *LoggingCluster)

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

func (*LoggingCluster) DeepCopyObject

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

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

type LoggingClusterList

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

+kubebuilder:object:root=true

func (*LoggingClusterList) DeepCopy

func (in *LoggingClusterList) DeepCopy() *LoggingClusterList

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

func (*LoggingClusterList) DeepCopyInto

func (in *LoggingClusterList) DeepCopyInto(out *LoggingClusterList)

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

func (*LoggingClusterList) DeepCopyObject

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

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

type LoggingClusterSpec

type LoggingClusterSpec struct {
	OpensearchClusterRef *opnimeta.OpensearchClusterRef `json:"opensearchCluster,omitempty"`
	IndexUserSecret      *corev1.LocalObjectReference   `json:"indexUser,omitempty"`
	FriendlyName         string                         `json:"friendlyName,omitempty"`
	LastSync             metav1.Time                    `json:"lastSync,omitempty"`
	Enabled              bool                           `json:"enabled,omitempty"`
}

func (*LoggingClusterSpec) DeepCopy

func (in *LoggingClusterSpec) DeepCopy() *LoggingClusterSpec

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

func (*LoggingClusterSpec) DeepCopyInto

func (in *LoggingClusterSpec) DeepCopyInto(out *LoggingClusterSpec)

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

type LoggingClusterState

type LoggingClusterState string
const (
	LoggingClusterStateCreated    LoggingClusterState = "created"
	LoggingClusterStateRegistered LoggingClusterState = "registered"
	LoggingClusterStateError      LoggingClusterState = "error"
)

type LoggingClusterStatus

type LoggingClusterStatus struct {
	Conditions     []string            `json:"conditions,omitempty"`
	State          LoggingClusterState `json:"state,omitempty"`
	IndexUserState IndexUserState      `json:"indexUserState,omitempty"`
	ReadRole       string              `json:"readRole,omitempty"`
}

func (*LoggingClusterStatus) DeepCopy

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

func (*LoggingClusterStatus) DeepCopyInto

func (in *LoggingClusterStatus) DeepCopyInto(out *LoggingClusterStatus)

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

type MonitoringCluster

type MonitoringCluster struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              MonitoringClusterSpec   `json:"spec,omitempty"`
	Status            MonitoringClusterStatus `json:"status,omitempty"`
}

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

func (*MonitoringCluster) DeepCopy

func (in *MonitoringCluster) DeepCopy() *MonitoringCluster

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

func (*MonitoringCluster) DeepCopyInto

func (in *MonitoringCluster) DeepCopyInto(out *MonitoringCluster)

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

func (*MonitoringCluster) DeepCopyObject

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

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

type MonitoringClusterList

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

+kubebuilder:object:root=true

func (*MonitoringClusterList) DeepCopy

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

func (*MonitoringClusterList) DeepCopyInto

func (in *MonitoringClusterList) DeepCopyInto(out *MonitoringClusterList)

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

func (*MonitoringClusterList) DeepCopyObject

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

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

type MonitoringClusterSpec

type MonitoringClusterSpec struct {
	//+kubebuilder:validation:Required
	Gateway corev1.LocalObjectReference `json:"gateway,omitempty"`
	Cortex  CortexSpec                  `json:"cortex,omitempty"`
	Grafana GrafanaSpec                 `json:"grafana,omitempty"`
}

func (*MonitoringClusterSpec) DeepCopy

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

func (*MonitoringClusterSpec) DeepCopyInto

func (in *MonitoringClusterSpec) DeepCopyInto(out *MonitoringClusterSpec)

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

type MonitoringClusterStatus

type MonitoringClusterStatus struct {
	Image           string            `json:"image,omitempty"`
	ImagePullPolicy corev1.PullPolicy `json:"imagePullPolicy,omitempty"`
	Cortex          CortexStatus      `json:"cortex,omitempty"`
}

func (*MonitoringClusterStatus) DeepCopy

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

func (*MonitoringClusterStatus) DeepCopyInto

func (in *MonitoringClusterStatus) DeepCopyInto(out *MonitoringClusterStatus)

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

type NatsAuthMethod

type NatsAuthMethod string

+kubebuilder:validation:Enum=password;nkey

const (
	NatsAuthPassword NatsAuthMethod = "password"
	NatsAuthNkey     NatsAuthMethod = "nkey"
)

type NatsCluster

type NatsCluster struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              NatsSpec   `json:"spec,omitempty"`
	Status            NatsStatus `json:"status,omitempty"`
}

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

func (*NatsCluster) DeepCopy

func (in *NatsCluster) DeepCopy() *NatsCluster

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

func (*NatsCluster) DeepCopyInto

func (in *NatsCluster) DeepCopyInto(out *NatsCluster)

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

func (*NatsCluster) DeepCopyObject

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

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

type NatsClusterList

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

+kubebuilder:object:root=true

func (*NatsClusterList) DeepCopy

func (in *NatsClusterList) DeepCopy() *NatsClusterList

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

func (*NatsClusterList) DeepCopyInto

func (in *NatsClusterList) DeepCopyInto(out *NatsClusterList)

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

func (*NatsClusterList) DeepCopyObject

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

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

type NatsClusterState

type NatsClusterState string
const (
	NatsClusterStateError   NatsClusterState = "Error"
	NatsClusterStateWorking NatsClusterState = "Working"
	NatsClusterStateReady   NatsClusterState = "Ready"
)

type NatsSpec

type NatsSpec struct {
	// +kubebuilder:validation:Required
	// +kubebuilder:default:=password
	AuthMethod NatsAuthMethod `json:"authMethod,omitempty"`
	// Username to use for authentication, if username auth is specified in
	// AuthMethod. If empty, defaults to "nats-user". If AuthMethod is "nkey",
	// this field is ignored.
	Username string `json:"username,omitempty"`
	// Number of nats server replicas. If not set, defaults to 3.
	Replicas *int32 `json:"replicas,omitempty"`
	// A secret containing a "password" item.	This secret must already exist
	// if specified.
	PasswordFrom *corev1.SecretKeySelector `json:"passwordFrom,omitempty"`
	NodeSelector map[string]string         `json:"nodeSelector,omitempty"`
	Tolerations  []corev1.Toleration       `json:"tolerations,omitempty"`
	JetStream    JetStreamSpec             `json:"jetStream,omitempty"`
}

func (*NatsSpec) DeepCopy

func (in *NatsSpec) DeepCopy() *NatsSpec

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

func (*NatsSpec) DeepCopyInto

func (in *NatsSpec) DeepCopyInto(out *NatsSpec)

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

type NatsStatus

type NatsStatus struct {
	State            NatsClusterState          `json:"state,omitempty"`
	Replicas         int32                     `json:"replicas,omitempty"`
	AuthSecretKeyRef *corev1.SecretKeySelector `json:"authSecretKeyRef,omitempty"`
	NKeyUser         string                    `json:"nkeyUser,omitempty"`
}

func (*NatsStatus) DeepCopy

func (in *NatsStatus) DeepCopy() *NatsStatus

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

func (*NatsStatus) DeepCopyInto

func (in *NatsStatus) DeepCopyInto(out *NatsStatus)

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

type OpenIDConfigSpec

type OpenIDConfigSpec struct {
	openid.OpenidConfig `json:",inline,omitempty,squash"`
	ClientID            string   `json:"clientID,omitempty"`
	ClientSecret        string   `json:"clientSecret,omitempty"`
	Scopes              []string `json:"scopes,omitempty"`
	AllowedDomains      []string `json:"allowedDomains,omitempty"`
	RoleAttributePath   string   `json:"roleAttributePath,omitempty"`

	InsecureSkipVerify *bool `json:"insecureSkipVerify,omitempty"`

	// extra options from grafana config
	AllowSignUp         *bool  `json:"allowSignUp,omitempty"`
	RoleAttributeStrict *bool  `json:"roleAttributeStrict,omitempty"`
	EmailAttributePath  string `json:"emailAttributePath,omitempty"`
	TLSClientCert       string `json:"tlsClientCert,omitempty"`
	TLSClientKey        string `json:"tlsClientKey,omitempty"`
	TLSClientCA         string `json:"tlsClientCA,omitempty"`
}

func (*OpenIDConfigSpec) DeepCopy

func (in *OpenIDConfigSpec) DeepCopy() *OpenIDConfigSpec

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

func (*OpenIDConfigSpec) DeepCopyInto

func (in *OpenIDConfigSpec) DeepCopyInto(out *OpenIDConfigSpec)

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

type PVCSource

type PVCSource struct {
	StorageClassName string                              `json:"storageClass,omitempty"`
	AccessModes      []corev1.PersistentVolumeAccessMode `json:"accessModes,omitempty"`
}

func (*PVCSource) DeepCopy

func (in *PVCSource) DeepCopy() *PVCSource

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

func (*PVCSource) DeepCopyInto

func (in *PVCSource) DeepCopyInto(out *PVCSource)

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

type StorageBackendType

type StorageBackendType string
const (
	StorageBackendS3         StorageBackendType = "s3"
	StorageBackendGCS        StorageBackendType = "gcs"
	StorageBackendAzure      StorageBackendType = "azure"
	StorageBackendSwift      StorageBackendType = "swift"
	StorageBackendFilesystem StorageBackendType = "filesystem"
)

type WorkloadStatus

type WorkloadStatus struct {
	Ready   bool   `json:"ready,omitempty"`
	Message string `json:"conditions,omitempty"`
}

func (*WorkloadStatus) DeepCopy

func (in *WorkloadStatus) DeepCopy() *WorkloadStatus

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

func (*WorkloadStatus) DeepCopyInto

func (in *WorkloadStatus) DeepCopyInto(out *WorkloadStatus)

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