v1alpha1

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2021 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the admin.enterprise.mesh.gloo.solo.io v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=admin.enterprise.mesh.gloo.solo.io

NOTE: Boilerplate only. Ignore this file. Used to register the Go types with the Kubernetes internal scheme

Definitions for the Kubernetes types

Definitions for the Kubernetes types

Index

Constants

This section is empty.

Variables

View Source
var (
	IstioInstallationStatus_State_name = map[int32]string{
		0: "PENDING",
		1: "ACCEPTED",
		2: "FAILED",
	}
	IstioInstallationStatus_State_value = map[string]int32{
		"PENDING":  0,
		"ACCEPTED": 1,
		"FAILED":   2,
	}
)

Enum value maps for IstioInstallationStatus_State.

View Source
var (
	IstioInstallationStatus_IstioOperatorStatus_State_name = map[int32]string{
		0: "PENDING",
		1: "INSTALLING",
		2: "HEALTHY",
		3: "ERROR",
	}
	IstioInstallationStatus_IstioOperatorStatus_State_value = map[string]int32{
		"PENDING":    0,
		"INSTALLING": 1,
		"HEALTHY":    2,
		"ERROR":      3,
	}
)

Enum value maps for IstioInstallationStatus_IstioOperatorStatus_State.

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: "admin.enterprise.mesh.gloo.solo.io", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}
)
View Source
var File_github_com_solo_io_gloo_mesh_api_enterprise_admin_v1alpha1_istio_installation_proto protoreflect.FileDescriptor
View Source
var IstioInstallationGVK = schema.GroupVersionKind{
	Group:   "admin.enterprise.mesh.gloo.solo.io",
	Version: "v1alpha1",
	Kind:    "IstioInstallation",
}

GroupVersionKind for IstioInstallation

Functions

func AddToScheme

func AddToScheme(s *runtime.Scheme) error

func NewIstioInstallationClient

func NewIstioInstallationClient(client client.Client) *istioInstallationClient

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Clientset

type Clientset interface {
	// clienset for the admin.enterprise.mesh.gloo.solo.io/v1alpha1/v1alpha1 APIs
	IstioInstallations() IstioInstallationClient
}

clienset for the admin.enterprise.mesh.gloo.solo.io/v1alpha1 APIs

func NewClientset

func NewClientset(client client.Client) Clientset

func NewClientsetFromConfig

func NewClientsetFromConfig(cfg *rest.Config) (Clientset, error)

type IstioInstallation

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

	Spec   IstioInstallationSpec   `json:"spec,omitempty"`
	Status IstioInstallationStatus `json:"status,omitempty"`
}

IstioInstallation is the Schema for the istioInstallation API

func (*IstioInstallation) DeepCopy

func (in *IstioInstallation) DeepCopy() *IstioInstallation

func (*IstioInstallation) DeepCopyInto

func (in *IstioInstallation) DeepCopyInto(out *IstioInstallation)

func (*IstioInstallation) DeepCopyObject

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

func (IstioInstallation) GVK

GVK returns the GroupVersionKind associated with the resource type.

type IstioInstallationClient

Client knows how to perform CRUD operations on IstioInstallations.

type IstioInstallationList

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

IstioInstallationList contains a list of IstioInstallation

func (*IstioInstallationList) DeepCopy

func (*IstioInstallationList) DeepCopyInto

func (in *IstioInstallationList) DeepCopyInto(out *IstioInstallationList)

func (*IstioInstallationList) DeepCopyObject

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

type IstioInstallationReader

type IstioInstallationReader interface {
	// Get retrieves a IstioInstallation for the given object key
	GetIstioInstallation(ctx context.Context, key client.ObjectKey) (*IstioInstallation, error)

	// List retrieves list of IstioInstallations for a given namespace and list options.
	ListIstioInstallation(ctx context.Context, opts ...client.ListOption) (*IstioInstallationList, error)
}

Reader knows how to read and list IstioInstallations.

type IstioInstallationSlice

type IstioInstallationSlice []*IstioInstallation

IstioInstallationSlice represents a slice of *IstioInstallation

type IstioInstallationSpec

type IstioInstallationSpec struct {

	// The clusters where the IstioOperators should be installed.
	ClusterNames []string `protobuf:"bytes,1,rep,name=cluster_names,json=clusterNames,proto3" json:"cluster_names,omitempty"`
	// Selector for the IstioOperator CRs that should be installed on the managed clusters.
	IstioOperatorSelector *v1.ObjectSelector `` /* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

The IstioInstallation API and it's associated features are undergoing development so this API is not currently supported.

func (*IstioInstallationSpec) DeepCopyInto

func (in *IstioInstallationSpec) DeepCopyInto(out *IstioInstallationSpec)

DeepCopyInto for the IstioInstallation.Spec

func (*IstioInstallationSpec) Descriptor deprecated

func (*IstioInstallationSpec) Descriptor() ([]byte, []int)

Deprecated: Use IstioInstallationSpec.ProtoReflect.Descriptor instead.

func (*IstioInstallationSpec) GetClusterNames

func (x *IstioInstallationSpec) GetClusterNames() []string

func (*IstioInstallationSpec) GetIstioOperatorSelector

func (x *IstioInstallationSpec) GetIstioOperatorSelector() *v1.ObjectSelector

func (*IstioInstallationSpec) MarshalJSON

func (this *IstioInstallationSpec) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for IstioInstallationSpec

func (*IstioInstallationSpec) ProtoMessage

func (*IstioInstallationSpec) ProtoMessage()

func (*IstioInstallationSpec) ProtoReflect

func (x *IstioInstallationSpec) ProtoReflect() protoreflect.Message

func (*IstioInstallationSpec) Reset

func (x *IstioInstallationSpec) Reset()

func (*IstioInstallationSpec) String

func (x *IstioInstallationSpec) String() string

func (*IstioInstallationSpec) UnmarshalJSON

func (this *IstioInstallationSpec) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for IstioInstallationSpec

type IstioInstallationStatus

type IstioInstallationStatus struct {

	// The most recent generation observed in the the IstioInstallation metadata.
	// If the `observedGeneration` does not match `metadata.generation`,
	// Gloo Mesh has not processed the most recent version of this resource.
	ObservedGeneration int64 `protobuf:"varint,1,opt,name=observed_generation,json=observedGeneration,proto3" json:"observed_generation,omitempty"`
	// The current state of the IstioOperator.
	State IstioInstallationStatus_State `` /* 134-byte string literal not displayed */
	// A human readable message about the current state of the IstioInstallation.
	Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	// The status of each IstioOperator that should be installed by Gloo Mesh, where the
	// key is the concatenation of the IstioOperator's name, namespace, and cluster and
	// the value is the operator's status.
	IstioOperatorStatuses map[string]*IstioInstallationStatus_IstioOperatorStatus `` /* 214-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*IstioInstallationStatus) DeepCopyInto

func (in *IstioInstallationStatus) DeepCopyInto(out *IstioInstallationStatus)

DeepCopyInto for the IstioInstallation.Status

func (*IstioInstallationStatus) Descriptor deprecated

func (*IstioInstallationStatus) Descriptor() ([]byte, []int)

Deprecated: Use IstioInstallationStatus.ProtoReflect.Descriptor instead.

func (*IstioInstallationStatus) GetIstioOperatorStatuses

func (*IstioInstallationStatus) GetMessage

func (x *IstioInstallationStatus) GetMessage() string

func (*IstioInstallationStatus) GetObservedGeneration

func (x *IstioInstallationStatus) GetObservedGeneration() int64

func (*IstioInstallationStatus) GetState

func (*IstioInstallationStatus) MarshalJSON

func (this *IstioInstallationStatus) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for IstioInstallationStatus

func (*IstioInstallationStatus) ProtoMessage

func (*IstioInstallationStatus) ProtoMessage()

func (*IstioInstallationStatus) ProtoReflect

func (x *IstioInstallationStatus) ProtoReflect() protoreflect.Message

func (*IstioInstallationStatus) Reset

func (x *IstioInstallationStatus) Reset()

func (*IstioInstallationStatus) String

func (x *IstioInstallationStatus) String() string

func (*IstioInstallationStatus) UnmarshalJSON

func (this *IstioInstallationStatus) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for IstioInstallationStatus

type IstioInstallationStatusWriter

type IstioInstallationStatusWriter interface {
	// Update updates the fields corresponding to the status subresource for the
	// given IstioInstallation object.
	UpdateIstioInstallationStatus(ctx context.Context, obj *IstioInstallation, opts ...client.UpdateOption) error

	// Patch patches the given IstioInstallation object's subresource.
	PatchIstioInstallationStatus(ctx context.Context, obj *IstioInstallation, patch client.Patch, opts ...client.PatchOption) error
}

StatusWriter knows how to update status subresource of a IstioInstallation object.

type IstioInstallationStatus_IstioOperatorStatus

type IstioInstallationStatus_IstioOperatorStatus struct {

	// The most recent generation observed in the the IstioOperator metadata.
	// If the `observedGeneration` does not match `metadata.generation`,
	// Gloo Mesh has not processed the most recent version of this resource.
	ObservedGeneration int64 `protobuf:"varint,1,opt,name=observed_generation,json=observedGeneration,proto3" json:"observed_generation,omitempty"`
	// The current state of the IstioOperator.
	State IstioInstallationStatus_IstioOperatorStatus_State `` /* 154-byte string literal not displayed */
	// A human readable message about the current state of the IstioOperator.
	Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	// The revision tag for the associated Istio components.
	Revision string `protobuf:"bytes,4,opt,name=revision,proto3" json:"revision,omitempty"`
	// contains filtered or unexported fields
}

func (*IstioInstallationStatus_IstioOperatorStatus) Descriptor deprecated

Deprecated: Use IstioInstallationStatus_IstioOperatorStatus.ProtoReflect.Descriptor instead.

func (*IstioInstallationStatus_IstioOperatorStatus) GetMessage

func (*IstioInstallationStatus_IstioOperatorStatus) GetObservedGeneration

func (x *IstioInstallationStatus_IstioOperatorStatus) GetObservedGeneration() int64

func (*IstioInstallationStatus_IstioOperatorStatus) GetRevision

func (*IstioInstallationStatus_IstioOperatorStatus) GetState

func (*IstioInstallationStatus_IstioOperatorStatus) ProtoMessage

func (*IstioInstallationStatus_IstioOperatorStatus) ProtoReflect

func (*IstioInstallationStatus_IstioOperatorStatus) Reset

func (*IstioInstallationStatus_IstioOperatorStatus) String

type IstioInstallationStatus_IstioOperatorStatus_State

type IstioInstallationStatus_IstioOperatorStatus_State int32

The state of a IstioOperator installation.

const (
	// Waiting for resources to be installed.
	IstioInstallationStatus_IstioOperatorStatus_PENDING IstioInstallationStatus_IstioOperatorStatus_State = 0
	// In the process of installing Istio resources on to the managed cluster.
	IstioInstallationStatus_IstioOperatorStatus_INSTALLING IstioInstallationStatus_IstioOperatorStatus_State = 1
	// All Istio components were installed successfully and they are healthy.
	IstioInstallationStatus_IstioOperatorStatus_HEALTHY IstioInstallationStatus_IstioOperatorStatus_State = 2
	// This Istio installation is in an error state.
	IstioInstallationStatus_IstioOperatorStatus_ERROR IstioInstallationStatus_IstioOperatorStatus_State = 3
)

func (IstioInstallationStatus_IstioOperatorStatus_State) Descriptor

func (IstioInstallationStatus_IstioOperatorStatus_State) Enum

func (IstioInstallationStatus_IstioOperatorStatus_State) EnumDescriptor deprecated

Deprecated: Use IstioInstallationStatus_IstioOperatorStatus_State.Descriptor instead.

func (IstioInstallationStatus_IstioOperatorStatus_State) Number

func (IstioInstallationStatus_IstioOperatorStatus_State) String

func (IstioInstallationStatus_IstioOperatorStatus_State) Type

type IstioInstallationStatus_State

type IstioInstallationStatus_State int32

The state of the IstioInstallation.

const (
	// Waiting for the Istio installation to be processed.
	IstioInstallationStatus_PENDING IstioInstallationStatus_State = 0
	// Finished processing the Istio installation successfully.
	IstioInstallationStatus_ACCEPTED IstioInstallationStatus_State = 1
	// Failed while processing the Istio installation parameters.
	IstioInstallationStatus_FAILED IstioInstallationStatus_State = 2
)

func (IstioInstallationStatus_State) Descriptor

func (IstioInstallationStatus_State) Enum

func (IstioInstallationStatus_State) EnumDescriptor deprecated

func (IstioInstallationStatus_State) EnumDescriptor() ([]byte, []int)

Deprecated: Use IstioInstallationStatus_State.Descriptor instead.

func (IstioInstallationStatus_State) Number

func (IstioInstallationStatus_State) String

func (IstioInstallationStatus_State) Type

type IstioInstallationTransitionFunction

type IstioInstallationTransitionFunction func(existing, desired *IstioInstallation) error

IstioInstallationTransitionFunction instructs the IstioInstallationWriter how to transition between an existing IstioInstallation object and a desired on an Upsert

type IstioInstallationWriter

type IstioInstallationWriter interface {
	// Create saves the IstioInstallation object.
	CreateIstioInstallation(ctx context.Context, obj *IstioInstallation, opts ...client.CreateOption) error

	// Delete deletes the IstioInstallation object.
	DeleteIstioInstallation(ctx context.Context, key client.ObjectKey, opts ...client.DeleteOption) error

	// Update updates the given IstioInstallation object.
	UpdateIstioInstallation(ctx context.Context, obj *IstioInstallation, opts ...client.UpdateOption) error

	// Patch patches the given IstioInstallation object.
	PatchIstioInstallation(ctx context.Context, obj *IstioInstallation, patch client.Patch, opts ...client.PatchOption) error

	// DeleteAllOf deletes all IstioInstallation objects matching the given options.
	DeleteAllOfIstioInstallation(ctx context.Context, opts ...client.DeleteAllOfOption) error

	// Create or Update the IstioInstallation object.
	UpsertIstioInstallation(ctx context.Context, obj *IstioInstallation, transitionFuncs ...IstioInstallationTransitionFunction) error
}

Writer knows how to create, delete, and update IstioInstallations.

type MulticlusterClientset

type MulticlusterClientset interface {
	// Cluster returns a Clientset for the given cluster
	Cluster(cluster string) (Clientset, error)
}

MulticlusterClientset for the admin.enterprise.mesh.gloo.solo.io/v1alpha1 APIs

func NewMulticlusterClientset

func NewMulticlusterClientset(client multicluster.Client) MulticlusterClientset

type MulticlusterIstioInstallationClient

type MulticlusterIstioInstallationClient interface {
	// Cluster returns a IstioInstallationClient for the given cluster
	Cluster(cluster string) (IstioInstallationClient, error)
}

Provides IstioInstallationClients for multiple clusters.

func NewMulticlusterIstioInstallationClient

func NewMulticlusterIstioInstallationClient(client multicluster.Client) MulticlusterIstioInstallationClient

Directories

Path Synopsis
Definitions for the Kubernetes Controllers Definitions for the multicluster Kubernetes Controllers Definitions for the Kubernetes Controllers
Definitions for the Kubernetes Controllers Definitions for the multicluster Kubernetes Controllers Definitions for the Kubernetes Controllers
mocks
Package mock_controller is a generated GoMock package.
Package mock_controller is a generated GoMock package.
Package mock_v1alpha1 is a generated GoMock package.
Package mock_v1alpha1 is a generated GoMock package.
mocks
Package mock_v1alpha1sets is a generated GoMock package.
Package mock_v1alpha1sets is a generated GoMock package.

Jump to

Keyboard shortcuts

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