v1beta1

package
v0.11.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

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

Index

Constants

View Source
const (
	AlertingDeployConfStandalone = "standalone"
	AlertingDeployConfCluster    = "ha"
)
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

func CollectorCRD added in v0.10.0

func CollectorCRD() (*crd.CRD, error)

func KeyringCRD added in v0.10.0

func KeyringCRD() (*crd.CRD, error)

Types

type AlertManagerSpec added in v0.10.0

type AlertManagerSpec struct {
	Enable     bool                `json:"enable,omitempty"`
	Image      *opnimeta.ImageSpec `json:"image,omitempty"`
	LogLevel   string              `json:"logLevel,omitempty"`
	DeployConf string              `json:"deployConf,omitempty"`

	// Overrides for out-of-the box alerting specs
	ApplicationSpec AlertingApplicationSpec `json:"workloads,omitempty"`
}

func (*AlertManagerSpec) DeepCopy added in v0.10.0

func (in *AlertManagerSpec) DeepCopy() *AlertManagerSpec

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

func (*AlertManagerSpec) DeepCopyInto added in v0.10.0

func (in *AlertManagerSpec) DeepCopyInto(out *AlertManagerSpec)

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

type AlertManagerStatus added in v0.10.0

type AlertManagerStatus struct {
	Version    string   `json:"version,omitempty"`
	Ready      bool     `json:"ready,omitempty"`
	Conditions []string `json:"conditions,omitempty"`
}

func (*AlertManagerStatus) DeepCopy added in v0.10.0

func (in *AlertManagerStatus) DeepCopy() *AlertManagerStatus

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

func (*AlertManagerStatus) DeepCopyInto added in v0.10.0

func (in *AlertManagerStatus) DeepCopyInto(out *AlertManagerStatus)

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

type AlertingApplicationSpec added in v0.10.0

type AlertingApplicationSpec struct {
	Replicas                  *int32                            `json:"replicas,omitempty"`
	ExtraArgs                 []string                          `json:"extraArgs,omitempty"`
	ExtraVolumeSpec           []VolumeSpec                      `json:"extraVolumeSpec,omitempty"`
	ExtraEnvVars              []corev1.EnvVar                   `json:"extraEnvVars,omitempty"`
	SidecarContainers         []corev1.Container                `json:"sidecarContainers,omitempty"`
	ResourceRequirements      *corev1.ResourceRequirements      `json:"resourceLimits,omitempty"`
	UpdateStrategy            *appsv1.StatefulSetUpdateStrategy `json:"updateStrategy,omitempty"`
	SecurityContext           *corev1.SecurityContext           `json:"securityContext,omitempty"`
	*openv1.PersistenceConfig `json:",inline"`
	Affinity                  *corev1.Affinity `json:"affinity,omitempty"`
}

func (*AlertingApplicationSpec) DeepCopy added in v0.10.0

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

func (*AlertingApplicationSpec) DeepCopyInto added in v0.10.0

func (in *AlertingApplicationSpec) DeepCopyInto(out *AlertingApplicationSpec)

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

type AlertingCluster added in v0.10.0

type AlertingCluster struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              AlertingClusterSpec   `json:"spec,omitempty"`
	Status            AlertingClusterStatus `json:"status,omitempty"`
}

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

func (*AlertingCluster) DeepCopy added in v0.10.0

func (in *AlertingCluster) DeepCopy() *AlertingCluster

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

func (*AlertingCluster) DeepCopyInto added in v0.10.0

func (in *AlertingCluster) DeepCopyInto(out *AlertingCluster)

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

func (*AlertingCluster) DeepCopyObject added in v0.10.0

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

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

type AlertingClusterList added in v0.10.0

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

+kubebuilder:object:root=true

func (*AlertingClusterList) DeepCopy added in v0.10.0

func (in *AlertingClusterList) DeepCopy() *AlertingClusterList

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

func (*AlertingClusterList) DeepCopyInto added in v0.10.0

func (in *AlertingClusterList) DeepCopyInto(out *AlertingClusterList)

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

func (*AlertingClusterList) DeepCopyObject added in v0.10.0

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

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

type AlertingClusterSpec added in v0.10.0

type AlertingClusterSpec struct {
	//+kubebuilder:validation:required
	Gateway      corev1.LocalObjectReference `json:"gateway,omitempty"`
	Alertmanager AlertManagerSpec            `json:"alertmanager,omitempty"`
}

func (*AlertingClusterSpec) DeepCopy added in v0.10.0

func (in *AlertingClusterSpec) DeepCopy() *AlertingClusterSpec

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

func (*AlertingClusterSpec) DeepCopyInto added in v0.10.0

func (in *AlertingClusterSpec) DeepCopyInto(out *AlertingClusterSpec)

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

type AlertingClusterStatus added in v0.10.0

type AlertingClusterStatus struct {
	Image           string             `json:"image,omitempty"`
	ImagePullPolicy corev1.PullPolicy  `json:"imagePullPolicy,omitempty"`
	Alertmanager    AlertManagerStatus `json:"alertmanager,omitempty"`
}

func (*AlertingClusterStatus) DeepCopy added in v0.10.0

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

func (*AlertingClusterStatus) DeepCopyInto added in v0.10.0

func (in *AlertingClusterStatus) DeepCopyInto(out *AlertingClusterStatus)

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

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"`
	//+kubebuilder:default="/var/lib"
	DataMountPath       string                      `json:"dataMountPath,omitempty"`
	GatewayVolumeMounts []opnimeta.ExtraVolumeMount `json:"alertVolumeMounts,omitempty"`
	//! deprecated
	RawAlertManagerConfig string `json:"rawConfigMap,omitempty"`
	//! deprecated
	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 BootstrapToken added in v0.8.1

type BootstrapToken struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              *opnicorev1.BootstrapToken `json:"spec,omitempty"`
}

+kubebuilder:object:root=true

func (*BootstrapToken) DeepCopy added in v0.8.1

func (in *BootstrapToken) DeepCopy() *BootstrapToken

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

func (*BootstrapToken) DeepCopyInto added in v0.8.1

func (in *BootstrapToken) DeepCopyInto(out *BootstrapToken)

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

func (*BootstrapToken) DeepCopyObject added in v0.8.1

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

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

type BootstrapTokenList added in v0.8.1

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

+kubebuilder:object:root=true

func (*BootstrapTokenList) DeepCopy added in v0.8.1

func (in *BootstrapTokenList) DeepCopy() *BootstrapTokenList

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

func (*BootstrapTokenList) DeepCopyInto added in v0.8.1

func (in *BootstrapTokenList) DeepCopyInto(out *BootstrapTokenList)

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

func (*BootstrapTokenList) DeepCopyObject added in v0.8.1

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

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

type Collector added in v0.8.3

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

	Spec   CollectorSpec   `json:"spec,omitempty"`
	Status CollectorStatus `json:"status,omitempty"`
}

Collector is the Schema for the logadapters API

func (*Collector) DeepCopy added in v0.8.3

func (in *Collector) DeepCopy() *Collector

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

func (*Collector) DeepCopyInto added in v0.8.3

func (in *Collector) DeepCopyInto(out *Collector)

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

func (*Collector) DeepCopyObject added in v0.8.3

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

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

type CollectorList added in v0.8.3

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

CollectorList contains a list of Collector

func (*CollectorList) DeepCopy added in v0.8.3

func (in *CollectorList) DeepCopy() *CollectorList

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

func (*CollectorList) DeepCopyInto added in v0.8.3

func (in *CollectorList) DeepCopyInto(out *CollectorList)

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

func (*CollectorList) DeepCopyObject added in v0.8.3

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

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

type CollectorSpec added in v0.8.3

type CollectorSpec struct {
	opnimeta.ImageSpec `json:",inline,omitempty"`
	AgentEndpoint      string                       `json:"agentEndpoint,omitempty"`
	SystemNamespace    string                       `json:"systemNamespace,omitempty"`
	LoggingConfig      *corev1.LocalObjectReference `json:"loggingConfig,omitempty"`
	MetricsConfig      *corev1.LocalObjectReference `json:"metricsConfig,omitempty"`
	ConfigReloader     *ConfigReloaderSpec          `json:"configReloader,omitempty"`
	LogLevel           string                       `json:"logLevel,omitempty"`
}

func (*CollectorSpec) DeepCopy added in v0.8.3

func (in *CollectorSpec) DeepCopy() *CollectorSpec

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

func (*CollectorSpec) DeepCopyInto added in v0.8.3

func (in *CollectorSpec) DeepCopyInto(out *CollectorSpec)

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

func (*CollectorSpec) IsEmpty added in v0.9.0

func (c *CollectorSpec) IsEmpty() bool

type CollectorState added in v0.8.3

type CollectorState string
const (
	CollectorStatePending CollectorState = "pending"
	CollectorStateReady   CollectorState = "ready"
	CollectorStateError   CollectorState = "error"
)

type CollectorStatus added in v0.8.3

type CollectorStatus struct {
	Conditions []string       `json:"conditions,omitempty"`
	State      CollectorState `json:"state,omitempty"`
}

CollectorStatus defines the observed state of Collector

func (*CollectorStatus) DeepCopy added in v0.8.3

func (in *CollectorStatus) DeepCopy() *CollectorStatus

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

func (*CollectorStatus) DeepCopyInto added in v0.8.3

func (in *CollectorStatus) DeepCopyInto(out *CollectorStatus)

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

type ConfigReloaderSpec added in v0.10.0

type ConfigReloaderSpec struct {
	opnimeta.ImageSpec `json:",inline,omitempty"`
}

func (*ConfigReloaderSpec) DeepCopy added in v0.10.0

func (in *ConfigReloaderSpec) DeepCopy() *ConfigReloaderSpec

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

func (*ConfigReloaderSpec) DeepCopyInto added in v0.10.0

func (in *ConfigReloaderSpec) DeepCopyInto(out *ConfigReloaderSpec)

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"`

	AgentImageTagOverride string `json:"agentImageTagOverride,omitempty"`

	// Deprecated: this field is ignored.
	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=jetstream
	//+kubebuilder:validation:Optional
	//+kubebuilder:validation:XValidation:rule="self == oldSelf",message="Value is immutable"
	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"`
	StorageType     cfgv1beta1.StorageType      `json:"storageType,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 Keyring added in v0.8.1

type Keyring struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Data              []byte `json:"data,omitempty"`
}

+kubebuilder:object:root=true

func (*Keyring) DeepCopy added in v0.8.1

func (in *Keyring) DeepCopy() *Keyring

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

func (*Keyring) DeepCopyInto added in v0.8.1

func (in *Keyring) DeepCopyInto(out *Keyring)

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

func (*Keyring) DeepCopyObject added in v0.8.1

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

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

type KeyringList added in v0.8.1

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

+kubebuilder:object:root=true

func (*KeyringList) DeepCopy added in v0.8.1

func (in *KeyringList) DeepCopy() *KeyringList

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

func (*KeyringList) DeepCopyInto added in v0.8.1

func (in *KeyringList) DeepCopyInto(out *KeyringList)

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

func (*KeyringList) DeepCopyObject added in v0.8.1

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

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

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"`
	// Deprecated: individual auth users are no longer requried
	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 VolumeSpec added in v0.10.0

type VolumeSpec struct {
	corev1.Volume      `json:"volume,omitempty"`
	corev1.VolumeMount `json:"volumeMounts,omitempty"`
}

func (*VolumeSpec) DeepCopy added in v0.10.0

func (in *VolumeSpec) DeepCopy() *VolumeSpec

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

func (*VolumeSpec) DeepCopyInto added in v0.10.0

func (in *VolumeSpec) DeepCopyInto(out *VolumeSpec)

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

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