navigator

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2018 License: Apache-2.0 Imports: 7 Imported by: 34

Documentation

Overview

Package api is the internal version of the API. +groupName=navigator.jetstack.io

Index

Constants

View Source
const GroupName = "navigator.jetstack.io"

GroupName is the group name use in this package

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns a Group qualified GroupKind

func RegisterDefaults

func RegisterDefaults(scheme *runtime.Scheme) error

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

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type CassandraCluster

type CassandraCluster struct {
	// we embed these types so the CassandraCluster implements runtime.Object
	metav1.TypeMeta
	metav1.ObjectMeta

	Spec   CassandraClusterSpec
	Status CassandraClusterStatus
}

CassandraCluster describes a specification for an Cassandra cluster

func (*CassandraCluster) DeepCopy

func (in *CassandraCluster) DeepCopy() *CassandraCluster

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

func (*CassandraCluster) DeepCopyInto

func (in *CassandraCluster) DeepCopyInto(out *CassandraCluster)

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

func (*CassandraCluster) DeepCopyObject

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

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

type CassandraClusterList

type CassandraClusterList struct {
	// we embed these types so that CassandraClusterList implements runtime.Object and List interfaces
	metav1.TypeMeta
	metav1.ListMeta

	Items []CassandraCluster
}

CassandraClusterList defines a List type for our custom CassandraCluster type. This is needed in order to make List operations work.

func (*CassandraClusterList) DeepCopy

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

func (*CassandraClusterList) DeepCopyInto

func (in *CassandraClusterList) DeepCopyInto(out *CassandraClusterList)

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

func (*CassandraClusterList) DeepCopyObject

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

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

type CassandraClusterNodePool

type CassandraClusterNodePool struct {
	Name          string
	Replicas      *int32
	Persistence   *PersistenceConfig
	NodeSelector  map[string]string
	Rack          *string
	Datacenter    *string
	Resources     v1.ResourceRequirements
	SchedulerName string
}

func (*CassandraClusterNodePool) DeepCopy

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

func (*CassandraClusterNodePool) DeepCopyInto

func (in *CassandraClusterNodePool) DeepCopyInto(out *CassandraClusterNodePool)

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

type CassandraClusterNodePoolStatus

type CassandraClusterNodePoolStatus struct {
	ReadyReplicas int32
}

func (*CassandraClusterNodePoolStatus) DeepCopy

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

func (*CassandraClusterNodePoolStatus) DeepCopyInto

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

type CassandraClusterSpec

type CassandraClusterSpec struct {
	NavigatorClusterConfig

	NodePools []CassandraClusterNodePool
	Version   version.Version
	Image     *ImageSpec
}

func (*CassandraClusterSpec) DeepCopy

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

func (*CassandraClusterSpec) DeepCopyInto

func (in *CassandraClusterSpec) DeepCopyInto(out *CassandraClusterSpec)

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

type CassandraClusterStatus

type CassandraClusterStatus struct {
	NodePools map[string]CassandraClusterNodePoolStatus
}

func (*CassandraClusterStatus) DeepCopy

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

func (*CassandraClusterStatus) DeepCopyInto

func (in *CassandraClusterStatus) DeepCopyInto(out *CassandraClusterStatus)

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

type CassandraPilotStatus

type CassandraPilotStatus struct {
	Version *version.Version
}

func (*CassandraPilotStatus) DeepCopy

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

func (*CassandraPilotStatus) DeepCopyInto

func (in *CassandraPilotStatus) DeepCopyInto(out *CassandraPilotStatus)

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

type ConditionStatus

type ConditionStatus string

ConditionStatus represents a condition's status.

const (
	// ConditionTrue represents the fact that a given condition is true
	ConditionTrue ConditionStatus = "True"

	// ConditionFalse represents the fact that a given condition is false
	ConditionFalse ConditionStatus = "False"

	// ConditionUnknown represents the fact that a given condition is unknown
	ConditionUnknown ConditionStatus = "Unknown"
)

These are valid condition statuses. "ConditionTrue" means a resource is in the condition; "ConditionFalse" means a resource is not in the condition; "ConditionUnknown" means kubernetes can't decide if a resource is in the condition or not. In the future, we could add other intermediate conditions, e.g. ConditionDegraded.

type ElasticsearchCluster

type ElasticsearchCluster struct {
	// we embed these types so the ElasticsearchCluster implements runtime.Object
	metav1.TypeMeta
	metav1.ObjectMeta

	Spec   ElasticsearchClusterSpec
	Status ElasticsearchClusterStatus
}

ElasticsearchCluster describes a specification for an Elasticsearch cluster

func (*ElasticsearchCluster) DeepCopy

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

func (*ElasticsearchCluster) DeepCopyInto

func (in *ElasticsearchCluster) DeepCopyInto(out *ElasticsearchCluster)

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

func (*ElasticsearchCluster) DeepCopyObject

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

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

type ElasticsearchClusterHealth

type ElasticsearchClusterHealth string
const (
	ElasticsearchClusterHealthRed    ElasticsearchClusterHealth = "Red"
	ElasticsearchClusterHealthYellow ElasticsearchClusterHealth = "Yellow"
	ElasticsearchClusterHealthGreen  ElasticsearchClusterHealth = "Green"
)

type ElasticsearchClusterList

type ElasticsearchClusterList struct {
	// we embed these types so that ElasticsearchClusterList implements runtime.Object and List interfaces
	metav1.TypeMeta
	metav1.ListMeta

	Items []ElasticsearchCluster
}

ElasticsearchClusterList defines a List type for our custom ElasticsearchCluster type. This is needed in order to make List operations work.

func (*ElasticsearchClusterList) DeepCopy

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

func (*ElasticsearchClusterList) DeepCopyInto

func (in *ElasticsearchClusterList) DeepCopyInto(out *ElasticsearchClusterList)

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

func (*ElasticsearchClusterList) DeepCopyObject

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

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

type ElasticsearchClusterNodePool

type ElasticsearchClusterNodePool struct {
	Name          string
	Replicas      *int32
	Roles         []ElasticsearchClusterRole
	NodeSelector  map[string]string
	Resources     v1.ResourceRequirements
	Persistence   *PersistenceConfig
	SchedulerName string
}

func (*ElasticsearchClusterNodePool) DeepCopy

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

func (*ElasticsearchClusterNodePool) DeepCopyInto

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

type ElasticsearchClusterNodePoolStatus

type ElasticsearchClusterNodePoolStatus struct {
	ReadyReplicas int32
}

func (*ElasticsearchClusterNodePoolStatus) DeepCopy

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

func (*ElasticsearchClusterNodePoolStatus) DeepCopyInto

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

type ElasticsearchClusterRole

type ElasticsearchClusterRole string
const (
	ElasticsearchRoleData   ElasticsearchClusterRole = "data"
	ElasticsearchRoleMaster ElasticsearchClusterRole = "master"
	ElasticsearchRoleIngest ElasticsearchClusterRole = "ingest"
)

type ElasticsearchClusterSpec

type ElasticsearchClusterSpec struct {
	NavigatorClusterConfig

	Version        semver.Version
	Image          *ImageSpec
	Plugins        []string
	NodePools      []ElasticsearchClusterNodePool
	MinimumMasters *int32
}

func (*ElasticsearchClusterSpec) DeepCopy

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

func (*ElasticsearchClusterSpec) DeepCopyInto

func (in *ElasticsearchClusterSpec) DeepCopyInto(out *ElasticsearchClusterSpec)

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

type ElasticsearchClusterStatus

type ElasticsearchClusterStatus struct {
	NodePools map[string]ElasticsearchClusterNodePoolStatus
	Health    *ElasticsearchClusterHealth
}

func (*ElasticsearchClusterStatus) DeepCopy

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

func (*ElasticsearchClusterStatus) DeepCopyInto

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

type ElasticsearchPilotStatus

type ElasticsearchPilotStatus struct {
	// Documents is the current number of documents on this node. nil indicates
	// an unknown number of documents, whereas 0 indicates that the node is
	// empty
	Documents *int64
	Version   *semver.Version
}

func (*ElasticsearchPilotStatus) DeepCopy

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

func (*ElasticsearchPilotStatus) DeepCopyInto

func (in *ElasticsearchPilotStatus) DeepCopyInto(out *ElasticsearchPilotStatus)

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

type ImageSpec

type ImageSpec struct {
	Repository string
	Tag        string
	PullPolicy v1.PullPolicy
}

func (*ImageSpec) DeepCopy

func (in *ImageSpec) DeepCopy() *ImageSpec

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

func (*ImageSpec) DeepCopyInto

func (in *ImageSpec) DeepCopyInto(out *ImageSpec)

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

type NavigatorClusterConfig struct {
	PilotImage ImageSpec

	SecurityContext NavigatorSecurityContext
}

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

func (in *NavigatorClusterConfig) DeepCopyInto(out *NavigatorClusterConfig)

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

type NavigatorSecurityContext struct {
	RunAsUser *int64
}

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

func (in *NavigatorSecurityContext) DeepCopyInto(out *NavigatorSecurityContext)

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

type PersistenceConfig

type PersistenceConfig struct {
	Size         resource.Quantity
	StorageClass *string
}

func (*PersistenceConfig) DeepCopy

func (in *PersistenceConfig) DeepCopy() *PersistenceConfig

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

func (*PersistenceConfig) DeepCopyInto

func (in *PersistenceConfig) DeepCopyInto(out *PersistenceConfig)

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

type Pilot

type Pilot struct {
	metav1.TypeMeta
	metav1.ObjectMeta

	Spec   PilotSpec
	Status PilotStatus
}

func (*Pilot) DeepCopy

func (in *Pilot) DeepCopy() *Pilot

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

func (*Pilot) DeepCopyInto

func (in *Pilot) DeepCopyInto(out *Pilot)

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

func (*Pilot) DeepCopyObject

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

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

type PilotCondition

type PilotCondition struct {
	// Type of the condition, currently ('Ready').
	Type PilotConditionType

	// Status of the condition, one of ('True', 'False', 'Unknown').
	Status ConditionStatus

	// LastTransitionTime is the timestamp corresponding to the last status
	// change of this condition.
	LastTransitionTime metav1.Time

	// Reason is a brief machine readable explanation for the condition's last
	// transition.
	Reason string

	// Message is a human readable description of the details of the last
	// transition, complementing reason.
	Message string
}

PilotCondition contains condition information for a Pilot.

func (*PilotCondition) DeepCopy

func (in *PilotCondition) DeepCopy() *PilotCondition

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

func (*PilotCondition) DeepCopyInto

func (in *PilotCondition) DeepCopyInto(out *PilotCondition)

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

type PilotConditionType

type PilotConditionType string

PilotConditionType represents a Pilot condition value.

const (
	// PilotConditionReady represents the fact that a given Pilot condition
	// is in ready state.
	PilotConditionReady PilotConditionType = "Ready"
	// PilotConditionStarted represents the fact that a given Pilot condition
	// is in started state.
	PilotConditionStarted PilotConditionType = "Started"
	// PilotConditionStopped represents the fact that a given Pilot
	// condition is in a stopped state.
	PilotConditionStopped PilotConditionType = "Stopped"
)

type PilotList

type PilotList struct {
	metav1.TypeMeta
	metav1.ListMeta

	Items []Pilot
}

func (*PilotList) DeepCopy

func (in *PilotList) DeepCopy() *PilotList

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

func (*PilotList) DeepCopyInto

func (in *PilotList) DeepCopyInto(out *PilotList)

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

func (*PilotList) DeepCopyObject

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

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

type PilotSpec

type PilotSpec struct {
}

func (*PilotSpec) DeepCopy

func (in *PilotSpec) DeepCopy() *PilotSpec

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

func (*PilotSpec) DeepCopyInto

func (in *PilotSpec) DeepCopyInto(out *PilotSpec)

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

type PilotStatus

type PilotStatus struct {
	Conditions []PilotCondition
	// Contains status information specific to Elasticsearch Pilots
	Elasticsearch *ElasticsearchPilotStatus
	// Contains status information specific to Cassandra Pilots
	Cassandra *CassandraPilotStatus
}

func (*PilotStatus) DeepCopy

func (in *PilotStatus) DeepCopy() *PilotStatus

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

func (*PilotStatus) DeepCopyInto

func (in *PilotStatus) DeepCopyInto(out *PilotStatus)

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

Directories

Path Synopsis
Package install installs the experimental API group, making it available as an option to all of the API encoding/decoding machinery.
Package install installs the experimental API group, making it available as an option to all of the API encoding/decoding machinery.
Package v1alpha1 is the v1alpha1 version of the API.
Package v1alpha1 is the v1alpha1 version of the API.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL