v1alpha1

package
v0.0.0-...-ec11375 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v1alpha1 is the v1alpha1 version of the API. +groupName=etcd.xmudrii.com

Index

Constants

This section is empty.

Variables

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

SchemeGroupVersion is group version used to register these objects

Functions

func IsEtcdStorageConditionEquivalent

func IsEtcdStorageConditionEquivalent(l, r *EtcdStorageCondition) bool

IsEtcdStorageConditionEquivalent returns true if conditions are same expect for LastTransitionTimes.

func IsEtcdStorageConditionFalse

func IsEtcdStorageConditionFalse(es *EtcdStorage, conditionType EtcdStorageConditionType) bool

IsEtcdStorageConditionFalse checks is condition present and false.

func IsEtcdStorageConditionPresentAndEqual

func IsEtcdStorageConditionPresentAndEqual(es *EtcdStorage, conditionType EtcdStorageConditionType, status ConditionStatus) bool

IsEtcdStorageConditionPresentAndEqual checks is condition present with the status equal to passed argument.

func IsEtcdStorageConditionTrue

func IsEtcdStorageConditionTrue(es *EtcdStorage, conditionType EtcdStorageConditionType) bool

IsEtcdStorageConditionTrue checks is condition present and true.

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

func SetEtcdStorageCondition

func SetEtcdStorageCondition(es *EtcdStorage, newCondition EtcdStorageCondition)

SetEtcdStorageCondition applies Condition to the EtcdStorage instance provided as the argument. If the condition already exists in the EtcdStorage instance, it's overwritten.

Types

type CABundleDestination

type CABundleDestination struct {
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
}

CABundleDestination contains name and namespace of configmap where CA bundle is stored.

func (*CABundleDestination) DeepCopy

func (in *CABundleDestination) DeepCopy() *CABundleDestination

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

func (*CABundleDestination) DeepCopyInto

func (in *CABundleDestination) DeepCopyInto(out *CABundleDestination)

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

type ClientCertificateDestination

type ClientCertificateDestination struct {
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
}

ClientCertificateDestination contains name and namespace of secret where client certificate and key are stored.

func (*ClientCertificateDestination) DeepCopy

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

func (*ClientCertificateDestination) DeepCopyInto

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

type ConditionStatus

type ConditionStatus string

ConditionStatus represents status of the EtcdStorage condition.

const (
	// ConditionTrue means a resource is in the condition.
	ConditionTrue ConditionStatus = "True"
	// ConditionFalse means a resource is not in the condition.
	ConditionFalse ConditionStatus = "False"
	// ConditionUnknown means controller can't decide if a EtcdStorage resource is in the condition or not.
	ConditionUnknown ConditionStatus = "Unknown"
)

These are valid condition statuses: ConditionTrue, ConditionFalse, ConditionUnknown.

type EtcdStorage

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

	Spec   EtdcStorageSpec   `json:"spec"`
	Status EtcdStorageStatus `json:"status"`
}

EtcdStorage is a specification for a EtcdStorage resource

func (*EtcdStorage) DeepCopy

func (in *EtcdStorage) DeepCopy() *EtcdStorage

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

func (*EtcdStorage) DeepCopyInto

func (in *EtcdStorage) DeepCopyInto(out *EtcdStorage)

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

func (*EtcdStorage) DeepCopyObject

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

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

type EtcdStorageCondition

type EtcdStorageCondition struct {
	// Type is the type of the condition.
	Type EtcdStorageConditionType
	// Status is the status of the condition (true, false, unknown).
	Status ConditionStatus
	// Last time the condition transitioned from one status to another.
	LastTransitionTime metav1.Time
	// Unique, one-word, CamelCase reason for the condition's last transition.
	Reason string
	// Human-readable message indicating details about last transition.
	Message string
}

EtcdStorageCondition contains details for the current condition of this EtcdStorage instance.

func FindEtcdStorageCondition

func FindEtcdStorageCondition(es *EtcdStorage, conditionType EtcdStorageConditionType) *EtcdStorageCondition

FindEtcdStorageCondition returns the condition you're looking for, or nil if condition is not present.

func (*EtcdStorageCondition) DeepCopy

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

func (*EtcdStorageCondition) DeepCopyInto

func (in *EtcdStorageCondition) DeepCopyInto(out *EtcdStorageCondition)

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

type EtcdStorageConditionType

type EtcdStorageConditionType string

EtcdStorageConditionType represents condition of the EtcdStorage resource.

const (
	// Deployed means EtcdProxy Deployment and Service for exposing EtcdProxy are created.
	Deployed EtcdStorageConditionType = "Deployed"
)

type EtcdStorageList

type EtcdStorageList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []EtcdStorage `json:"items"`
}

EtcdStorageList is a list of EtcdStorage resources

func (*EtcdStorageList) DeepCopy

func (in *EtcdStorageList) DeepCopy() *EtcdStorageList

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

func (*EtcdStorageList) DeepCopyInto

func (in *EtcdStorageList) DeepCopyInto(out *EtcdStorageList)

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

func (*EtcdStorageList) DeepCopyObject

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

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

type EtcdStorageStatus

type EtcdStorageStatus struct {
	// Conditions indicates states of the EtcdStroageStatus,
	Conditions []EtcdStorageCondition
}

EtcdStorageStatus is the status for a EtcdStorage resource

func (*EtcdStorageStatus) DeepCopy

func (in *EtcdStorageStatus) DeepCopy() *EtcdStorageStatus

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

func (*EtcdStorageStatus) DeepCopyInto

func (in *EtcdStorageStatus) DeepCopyInto(out *EtcdStorageStatus)

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

type EtdcStorageSpec

type EtdcStorageSpec struct {
	// CACertConfigMaps contains name and namespace of ConfigMap where CA serving certificate for etcdproxy pod
	// is supposed to be deployed. Usually it is in aggregated API server namespace.
	CACertConfigMaps []CABundleDestination `json:"caCertConfigMap"`

	// ClientCertSecrets contains name and namespace of Secret where client certificate and key for etcdproxy pod
	// is supposed to be deployed. Usually it is in aggregated API server namespace.
	ClientCertSecrets []ClientCertificateDestination `json:"clientCertSecret"`

	// SigningCertificateValidity is number of minutes for how long self-generated signing certificate is valid.
	SigningCertificateValidity metav1.Duration `json:"signingCertificateValidity"`

	// ServingCertificateValidity is number of minutes for how long serving certificate/key pair is valid.
	ServingCertificateValidity metav1.Duration `json:"servingCertificateValidity"`

	// ClientCertificateValidity is number of minutes for how long client certificate/key pair is valid.
	ClientCertificateValidity metav1.Duration `json:"clientCertificateValidity"`
}

EtdcStorageSpec is the spec for a EtcdStorage resource

func (*EtdcStorageSpec) DeepCopy

func (in *EtdcStorageSpec) DeepCopy() *EtdcStorageSpec

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

func (*EtdcStorageSpec) DeepCopyInto

func (in *EtdcStorageSpec) DeepCopyInto(out *EtdcStorageSpec)

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