v1alpha1

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 14, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the opensearch v1alpha1 API group +kubebuilder:object:generate=true +groupName=opensearch.sputnik.systems

Index

Constants

View Source
const (
	IndexStateManagementPolicyProtectionFinalizer = "opensearch.sputnik.systems/ism-policy-protection"
)

Variables

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

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

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type Cluster

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

	Spec   ClusterSpec   `json:"spec,omitempty"`
	Status ClusterStatus `json:"status,omitempty"`
}

Cluster is the Schema for the clusters API

func (*Cluster) DeepCopy

func (in *Cluster) DeepCopy() *Cluster

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

func (*Cluster) DeepCopyInto

func (in *Cluster) DeepCopyInto(out *Cluster)

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

func (*Cluster) DeepCopyObject

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

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

func (*Cluster) GetAdminCertificateSecretName

func (c *Cluster) GetAdminCertificateSecretName() string

func (*Cluster) GetHeadlessService

func (c *Cluster) GetHeadlessService() *corev1.Service

func (Cluster) GetSecurityConfig

func (c Cluster) GetSecurityConfig() *SecurityConfigSpec

func (Cluster) GetSubresourceLabels

func (c Cluster) GetSubresourceLabels() map[string]string

func (Cluster) GetSubresourceNamespacedName

func (c Cluster) GetSubresourceNamespacedName() types.NamespacedName

func (*Cluster) SetInitialClusterManagerNodes

func (c *Cluster) SetInitialClusterManagerNodes(nodeNames ...string)

type ClusterList

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

ClusterList contains a list of Cluster

func (*ClusterList) DeepCopy

func (in *ClusterList) DeepCopy() *ClusterList

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

func (*ClusterList) DeepCopyInto

func (in *ClusterList) DeepCopyInto(out *ClusterList)

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

func (*ClusterList) DeepCopyObject

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

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

type ClusterSpec

type ClusterSpec struct {
	AdminCertificateSecretName string             `json:"adminCertificateSecretName"`
	SecurityConfig             SecurityConfigSpec `json:"securityConfig,omitempty"`
}

ClusterSpec defines the desired state of Cluster

func (*ClusterSpec) DeepCopy

func (in *ClusterSpec) DeepCopy() *ClusterSpec

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

func (*ClusterSpec) DeepCopyInto

func (in *ClusterSpec) DeepCopyInto(out *ClusterSpec)

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

type ClusterStatus

type ClusterStatus struct {
	InitialClusterManagerNodes []string `json:"initial_cluster_manager_nodes,omitempty"`
}

ClusterStatus defines the observed state of Cluster

func (*ClusterStatus) DeepCopy

func (in *ClusterStatus) DeepCopy() *ClusterStatus

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

func (*ClusterStatus) DeepCopyInto

func (in *ClusterStatus) DeepCopyInto(out *ClusterStatus)

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

type Dashboard

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

	Spec   DashboardSpec   `json:"spec,omitempty"`
	Status DashboardStatus `json:"status,omitempty"`
}

Dashboard is the Schema for the dashboards API

func (*Dashboard) DeepCopy

func (in *Dashboard) DeepCopy() *Dashboard

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

func (*Dashboard) DeepCopyInto

func (in *Dashboard) DeepCopyInto(out *Dashboard)

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

func (*Dashboard) DeepCopyObject

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

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

func (*Dashboard) GetCertificateSecretName

func (d *Dashboard) GetCertificateSecretName() string

func (*Dashboard) GetContainers

func (d *Dashboard) GetContainers() []corev1.Container

func (*Dashboard) GetDeployment

func (d *Dashboard) GetDeployment() *appsv1.Deployment

func (*Dashboard) GetEnvVars

func (d *Dashboard) GetEnvVars() []corev1.EnvVar

func (*Dashboard) GetReplicas

func (d *Dashboard) GetReplicas() int

func (*Dashboard) GetRuntimeObject

func (d *Dashboard) GetRuntimeObject() client.Object

func (*Dashboard) GetService

func (d *Dashboard) GetService() *corev1.Service

func (*Dashboard) GetSubresourceLabels

func (d *Dashboard) GetSubresourceLabels() map[string]string

func (*Dashboard) GetSubresourceNamespacedName

func (d *Dashboard) GetSubresourceNamespacedName() types.NamespacedName

type DashboardList

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

DashboardList contains a list of Dashboard

func (*DashboardList) DeepCopy

func (in *DashboardList) DeepCopy() *DashboardList

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

func (*DashboardList) DeepCopyInto

func (in *DashboardList) DeepCopyInto(out *DashboardList)

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

func (*DashboardList) DeepCopyObject

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

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

type DashboardSpec

type DashboardSpec struct {
	NodeGroupName               string               `json:"nodeGroupName"`
	ClientCertificateSecretName string               `json:"clientCertificateSecretName"`
	ExtraConfigBody             string               `json:"extraConfigBody,omitempty"`
	Replicas                    int                  `json:"replicas"`
	ServiceSpec                 NodeGroupServiceSpec `json:"serviceSpec,omitempty"`
	// +kubebuilder:default="opensearchproject/opensearch-dashboards:2.0.1"
	Image           string            `json:"image,omitempty"`
	ImagePullPolicy corev1.PullPolicy `json:"imagePullPolicy,omitempty"`
	ExtraEnvVars    []corev1.EnvVar   `json:"extraEnvVars,omitempty"`
}

DashboardSpec defines the desired state of Dashboard

func (*DashboardSpec) DeepCopy

func (in *DashboardSpec) DeepCopy() *DashboardSpec

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

func (*DashboardSpec) DeepCopyInto

func (in *DashboardSpec) DeepCopyInto(out *DashboardSpec)

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

type DashboardStatus

type DashboardStatus struct {
}

DashboardStatus defines the observed state of Dashboard

func (*DashboardStatus) DeepCopy

func (in *DashboardStatus) DeepCopy() *DashboardStatus

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

func (*DashboardStatus) DeepCopyInto

func (in *DashboardStatus) DeepCopyInto(out *DashboardStatus)

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

type IndexStateManagementPolicy

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

	Spec   IndexStateManagementPolicySpec   `json:"spec,omitempty"`
	Status IndexStateManagementPolicyStatus `json:"status,omitempty"`
}

IndexStateManagementPolicy is the Schema for the indexstatemanagementpolicies API

func (*IndexStateManagementPolicy) DeepCopy

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

func (*IndexStateManagementPolicy) DeepCopyInto

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

func (*IndexStateManagementPolicy) DeepCopyObject

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

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

func (*IndexStateManagementPolicy) GetClusterAddress

func (p *IndexStateManagementPolicy) GetClusterAddress() string

func (*IndexStateManagementPolicy) GetPolicyBytesBuffer

func (p *IndexStateManagementPolicy) GetPolicyBytesBuffer() io.Reader

func (*IndexStateManagementPolicy) GetPolicyBytesSHA1

func (p *IndexStateManagementPolicy) GetPolicyBytesSHA1() (string, error)

type IndexStateManagementPolicyList

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

IndexStateManagementPolicyList contains a list of IndexStateManagementPolicy

func (*IndexStateManagementPolicyList) DeepCopy

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

func (*IndexStateManagementPolicyList) DeepCopyInto

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

func (*IndexStateManagementPolicyList) DeepCopyObject

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

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

type IndexStateManagementPolicySpec

type IndexStateManagementPolicySpec struct {
	ClusterName string `json:"clusterName"`
	Body        string `json:"body"`
}

IndexStateManagementPolicySpec defines the desired state of IndexStateManagementPolicy

func (*IndexStateManagementPolicySpec) DeepCopy

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

func (*IndexStateManagementPolicySpec) DeepCopyInto

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

type IndexStateManagementPolicyStatus

type IndexStateManagementPolicyStatus struct {
	Version     int64  `json:"version"`
	SeqNo       int64  `json:"seqNo"`
	PrimaryTerm int64  `json:"primaryTerm"`
	PolicySHA1  string `json:"policySHA1"`
}

IndexStateManagementPolicyStatus defines the observed state of IndexStateManagementPolicy

func (*IndexStateManagementPolicyStatus) DeepCopy

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

func (*IndexStateManagementPolicyStatus) DeepCopyInto

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

type NodeGroup

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

	Spec   NodeGroupSpec   `json:"spec,omitempty"`
	Status NodeGroupStatus `json:"status,omitempty"`
}

NodeGroup is the Schema for the nodegroups API

func (*NodeGroup) DeepCopy

func (in *NodeGroup) DeepCopy() *NodeGroup

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

func (*NodeGroup) DeepCopyInto

func (in *NodeGroup) DeepCopyInto(out *NodeGroup)

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

func (*NodeGroup) DeepCopyObject

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

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

func (*NodeGroup) GetCertificateSecretName

func (ng *NodeGroup) GetCertificateSecretName() string

func (*NodeGroup) GetContainers

func (ng *NodeGroup) GetContainers() []corev1.Container

func (*NodeGroup) GetDiscoverySeedHosts

func (ng *NodeGroup) GetDiscoverySeedHosts() string

func (*NodeGroup) GetEnvVars

func (ng *NodeGroup) GetEnvVars() []corev1.EnvVar

func (*NodeGroup) GetInitContainers

func (ng *NodeGroup) GetInitContainers() []corev1.Container

func (*NodeGroup) GetLivenessProbe

func (ng *NodeGroup) GetLivenessProbe() *corev1.Probe

func (*NodeGroup) GetNodeNames

func (ng *NodeGroup) GetNodeNames() []string

func (*NodeGroup) GetPodSecurityContext

func (ng *NodeGroup) GetPodSecurityContext() *corev1.PodSecurityContext

func (*NodeGroup) GetReadinessProbe

func (ng *NodeGroup) GetReadinessProbe() *corev1.Probe

func (*NodeGroup) GetReplicas

func (ng *NodeGroup) GetReplicas() int

func (*NodeGroup) GetRoles

func (ng *NodeGroup) GetRoles() NodeGroupSpecRoles

func (*NodeGroup) GetRuntimeObject

func (ng *NodeGroup) GetRuntimeObject() client.Object

func (*NodeGroup) GetService

func (ng *NodeGroup) GetService() *corev1.Service

func (*NodeGroup) GetStartupProbe

func (ng *NodeGroup) GetStartupProbe() *corev1.Probe

func (*NodeGroup) GetStatefulSet

func (ng *NodeGroup) GetStatefulSet() *appsv1.StatefulSet

func (*NodeGroup) GetSubresourceLabels

func (ng *NodeGroup) GetSubresourceLabels() map[string]string

func (*NodeGroup) GetSubresourceNamespacedName

func (ng *NodeGroup) GetSubresourceNamespacedName() types.NamespacedName

func (*NodeGroup) GetVolumeMounts

func (ng *NodeGroup) GetVolumeMounts() []corev1.VolumeMount

func (*NodeGroup) GetVolumes

func (ng *NodeGroup) GetVolumes() []corev1.Volume

func (*NodeGroup) SetServiceNameStatus

func (ng *NodeGroup) SetServiceNameStatus()

type NodeGroupList

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

NodeGroupList contains a list of NodeGroup

func (*NodeGroupList) DeepCopy

func (in *NodeGroupList) DeepCopy() *NodeGroupList

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

func (*NodeGroupList) DeepCopyInto

func (in *NodeGroupList) DeepCopyInto(out *NodeGroupList)

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

func (*NodeGroupList) DeepCopyObject

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

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

type NodeGroupServiceSpec

type NodeGroupServiceSpec struct {
	Type                  *corev1.ServiceType                      `json:"type,omitempty"`
	ExternalTrafficPolicy *corev1.ServiceExternalTrafficPolicyType `json:"externalTrafficPolicy,omitempty"`
}

func (*NodeGroupServiceSpec) DeepCopy

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

func (*NodeGroupServiceSpec) DeepCopyInto

func (in *NodeGroupServiceSpec) DeepCopyInto(out *NodeGroupServiceSpec)

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

type NodeGroupSpec

type NodeGroupSpec struct {
	// ClusterName is specify which Cluster resource corresponds to this NodeGroup
	ClusterName               string               `json:"clusterName"`
	NodeCertificateSecretName string               `json:"nodeCertificateSecretName"`
	Roles                     NodeGroupSpecRoles   `json:"roles"`
	Plugins                   []string             `json:"plugins,omitempty"`
	ExtraConfigBody           string               `json:"extraConfigBody,omitempty"`
	ServiceSpec               NodeGroupServiceSpec `json:"serviceSpec,omitempty"`
	Replicas                  int                  `json:"replicas"`
	// +kubebuilder:default="Parallel"
	PodManagementPolicy appsv1.PodManagementPolicyType `json:"podManagementPolicy,omitempty"`
	// +kubebuilder:default="opensearchproject/opensearch:2.0.1"
	Image           string            `json:"image,omitempty"`
	ImagePullPolicy corev1.PullPolicy `json:"imagePullPolicy,omitempty"`
	// SecurityContext           *corev1.SecurityContext       `json:"securityContext,omitempty"`
	LivenessProbe             *corev1.Probe                    `json:"livenessProbe,omitempty"`
	ReadinessProbe            *corev1.Probe                    `json:"readinessProbe,omitempty"`
	StartupProbe              *corev1.Probe                    `json:"startupProbe,omitempty"`
	SecurityContext           *corev1.PodSecurityContext       `json:"securityContext,omitempty"`
	Affinity                  *corev1.Affinity                 `json:"affinity,omitempty"`
	Tolerations               []corev1.Toleration              `json:"tolerations,omitempty"`
	Resources                 corev1.ResourceRequirements      `json:"resources,omitempty"`
	ExtraEnvVars              []corev1.EnvVar                  `json:"extraEnvVars,omitempty"`
	InitContainers            []corev1.Container               `json:"initContainers,omitempty"`
	ExtraContainers           []corev1.Container               `json:"extraContainers,omitempty"`
	ExtraVolumeMounts         []corev1.VolumeMount             `json:"extraVolumeMounts,omitempty"`
	ExtraVolumes              []corev1.Volume                  `json:"extraVolumes,omitempty"`
	PersistentVolumeClaimSpec corev1.PersistentVolumeClaimSpec `json:"persistentVolumeClaimSpec"`
}

NodeGroupSpec defines the desired state of NodeGroup

func (*NodeGroupSpec) DeepCopy

func (in *NodeGroupSpec) DeepCopy() *NodeGroupSpec

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

func (*NodeGroupSpec) DeepCopyInto

func (in *NodeGroupSpec) DeepCopyInto(out *NodeGroupSpec)

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

type NodeGroupSpecRole

type NodeGroupSpecRole string

+kubebuilder:validation:Enum=cluster_manager;ingest;data;remote_cluster_client

type NodeGroupSpecRoles

type NodeGroupSpecRoles []NodeGroupSpecRole

func (NodeGroupSpecRoles) DeepCopy

func (in NodeGroupSpecRoles) DeepCopy() NodeGroupSpecRoles

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

func (NodeGroupSpecRoles) DeepCopyInto

func (in NodeGroupSpecRoles) DeepCopyInto(out *NodeGroupSpecRoles)

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

func (NodeGroupSpecRoles) IsClusterManager

func (r NodeGroupSpecRoles) IsClusterManager() bool

func (NodeGroupSpecRoles) String

func (r NodeGroupSpecRoles) String() string

type NodeGroupStatus

type NodeGroupStatus struct {
	ServiceName string `json:"serviceName,omitempty"`
}

NodeGroupStatus defines the observed state of NodeGroup

func (*NodeGroupStatus) DeepCopy

func (in *NodeGroupStatus) DeepCopy() *NodeGroupStatus

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

func (*NodeGroupStatus) DeepCopyInto

func (in *NodeGroupStatus) DeepCopyInto(out *NodeGroupStatus)

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

type SecurityConfigSpec

type SecurityConfigSpec struct {
	// +kubebuilder:default=true
	Enabled       bool    `json:"enabled,omitempty"`
	ActionGroups  *string `json:"action_groups,omitempty"`
	Config        *string `json:"config,omitempty"`
	InternalUsers *string `json:"internal_users,omitempty"`
	Roles         *string `json:"roles,omitempty"`
	RolesMapping  *string `json:"roles_mapping,omitempty"`
	Tenants       *string `json:"tenants,omitempty"`
}

SecurityConfig is defining opensearch security config files

func (*SecurityConfigSpec) DeepCopy

func (in *SecurityConfigSpec) DeepCopy() *SecurityConfigSpec

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

func (*SecurityConfigSpec) DeepCopyInto

func (in *SecurityConfigSpec) DeepCopyInto(out *SecurityConfigSpec)

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