v1alpha1

package
Version: v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the envoy v1alpha1 API group +kubebuilder:object:generate=true +groupName=marin3r.3scale.net

Index

Constants

View Source
const (

	// CacheOutOfSyncCondition is a condition that indicates that the
	// envoyconfig cannot reach the desired status specified in the spec,
	// usually because the config in the spec is incorrect or has caused failures
	// in the envoy clients
	CacheOutOfSyncCondition status.ConditionType = "CacheOutOfSync"

	// RollbackFailedCondition indicates that the EnvoyConfig object
	// is not able to publish a config revision because all revisions are
	// tainted
	RollbackFailedCondition status.ConditionType = "RollbackFailed"

	//InSyncState indicates that a EnvoyConfig object has its resources spec
	// in sync with the xds server cache
	InSyncState string = "InSync"

	// RollbackState indicates that a EnvoyConfig object has performed a
	// rollback to a previous version of the resources spec
	RollbackState string = "Rollback"

	// RollbackFailedState indicates that there is no untainted revision that
	// can be pusblished in the xds server cache
	RollbackFailedState string = "RollbackFailed"
)
View Source
const (

	// RevisionPublishedCondition is a condition that marks the EnvoyConfigRevision object
	// as the one that should be published in the xds server cache
	RevisionPublishedCondition status.ConditionType = "RevisionPublished"

	// ResourcesInSyncCondition is a condition that other controllers can use to indicate
	// that the respurces need resync
	ResourcesInSyncCondition status.ConditionType = "ResourcesInSync"

	// RevisionTaintedCondition is a condition type that's used to report that this
	// problems have been observed with this revision and should not be published
	RevisionTaintedCondition status.ConditionType = "RevisionTainted"

	// EnvoyConfigRevisionFinalizer is the finalizer for EnvoyConfig objects
	EnvoyConfigRevisionFinalizer string = "finalizer.marin3r.3scale.net"
)
View Source
const (
	// EnvoyBootstrapKind is Kind of the EnvoyBootstrap resources
	EnvoyBootstrapKind string = "EnvoyBootstrap"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "marin3r.3scale.net", 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 ClientCertificate

type ClientCertificate struct {
	// Directory defines the directory in the envoy container where
	// the certificate will be mounted
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	Directory string `json:"directory"`
	// The Secret where the certificate will be stored
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	SecretName string `json:"secretName"`
	// The requested ‘duration’ (i.e. lifetime) of the Certificate
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	Duration metav1.Duration `json:"duration"`
}

ClientCertificate allows specifying options for the client certificate used to authenticate with the discovery service

func (*ClientCertificate) DeepCopy

func (in *ClientCertificate) DeepCopy() *ClientCertificate

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

func (*ClientCertificate) DeepCopyInto

func (in *ClientCertificate) DeepCopyInto(out *ClientCertificate)

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

type ConfigRevisionRef

type ConfigRevisionRef struct {
	// Version is a hash of the EnvoyResources field
	// +operator-sdk:csv:customresourcedefinitions:type=status
	Version string `json:"version"`
	// Ref is a reference to the EnvoyConfigRevision object that
	// holds the configuration matching the Version field.
	// +operator-sdk:csv:customresourcedefinitions:type=status
	Ref corev1.ObjectReference `json:"ref"`
}

ConfigRevisionRef holds a reference to EnvoyConfigRevision object

func (*ConfigRevisionRef) DeepCopy

func (in *ConfigRevisionRef) DeepCopy() *ConfigRevisionRef

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

func (*ConfigRevisionRef) DeepCopyInto

func (in *ConfigRevisionRef) DeepCopyInto(out *ConfigRevisionRef)

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

type EnvoyBootstrap

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

	Spec   EnvoyBootstrapSpec   `json:"spec,omitempty"`
	Status EnvoyBootstrapStatus `json:"status,omitempty"`
}

EnvoyBootstrap is the Schema for the envoybootstraps API +operator-sdk:csv:customresourcedefinitions:displayName="EnvoyBootstrap"

func (*EnvoyBootstrap) DeepCopy

func (in *EnvoyBootstrap) DeepCopy() *EnvoyBootstrap

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

func (*EnvoyBootstrap) DeepCopyInto

func (in *EnvoyBootstrap) DeepCopyInto(out *EnvoyBootstrap)

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

func (*EnvoyBootstrap) DeepCopyObject

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

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

type EnvoyBootstrapList

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

EnvoyBootstrapList contains a list of EnvoyBootstrap

func (*EnvoyBootstrapList) DeepCopy

func (in *EnvoyBootstrapList) DeepCopy() *EnvoyBootstrapList

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

func (*EnvoyBootstrapList) DeepCopyInto

func (in *EnvoyBootstrapList) DeepCopyInto(out *EnvoyBootstrapList)

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

func (*EnvoyBootstrapList) DeepCopyObject

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

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

type EnvoyBootstrapSpec

type EnvoyBootstrapSpec struct {
	// DiscoveryService is the name of the DiscoveryService resource the envoy will be a client of
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	DiscoveryService string `json:"discoveryService"`
	// ClientCertificate is a struct containing options for the certificate used to authenticate with the
	// discovery service
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	ClientCertificate *ClientCertificate `json:"clientCertificate"`
	// EnvoyStaticConfig is a struct that controls options for the envoy's static config file
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	EnvoyStaticConfig *EnvoyStaticConfig `json:"envoyStaticConfig"`
}

EnvoyBootstrapSpec defines the desired state of EnvoyBootstrap

func (*EnvoyBootstrapSpec) DeepCopy

func (in *EnvoyBootstrapSpec) DeepCopy() *EnvoyBootstrapSpec

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

func (*EnvoyBootstrapSpec) DeepCopyInto

func (in *EnvoyBootstrapSpec) DeepCopyInto(out *EnvoyBootstrapSpec)

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

type EnvoyBootstrapStatus

type EnvoyBootstrapStatus struct{}

EnvoyBootstrapStatus defines the observed state of EnvoyBootstrap

func (*EnvoyBootstrapStatus) DeepCopy

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

func (*EnvoyBootstrapStatus) DeepCopyInto

func (in *EnvoyBootstrapStatus) DeepCopyInto(out *EnvoyBootstrapStatus)

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

type EnvoyConfig

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

	Spec   EnvoyConfigSpec   `json:"spec,omitempty"`
	Status EnvoyConfigStatus `json:"status,omitempty"`
}

EnvoyConfig holds the configuration for a given envoy nodeID. The spec of an EnvoyConfig object holds the envoy resources that conform the desired configuration for the given nodeID and that the discovery service will send to any envoy client that identifies itself with that nodeID. +kubebuilder:subresource:status +kubebuilder:resource:path=envoyconfigs,scope=Namespaced,shortName=ec +kubebuilder:printcolumn:JSONPath=".spec.nodeID",name=Node ID,type=string +kubebuilder:printcolumn:JSONPath=".spec.envoyAPI",name=Envoy API,type=string +kubebuilder:printcolumn:JSONPath=".status.desiredVersion",name=Desired Version,type=string +kubebuilder:printcolumn:JSONPath=".status.publishedVersion",name=Published Version,type=string +kubebuilder:printcolumn:JSONPath=".status.cacheState",name=Cache State,type=string +operator-sdk:csv:customresourcedefinitions:displayName="EnvoyConfig" +operator-sdk:csv:customresourcedefinitions:resources={{EnvoyConfigRevision,v1alpha1}}

func (*EnvoyConfig) DeepCopy

func (in *EnvoyConfig) DeepCopy() *EnvoyConfig

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

func (*EnvoyConfig) DeepCopyInto

func (in *EnvoyConfig) DeepCopyInto(out *EnvoyConfig)

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

func (*EnvoyConfig) DeepCopyObject

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

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

func (*EnvoyConfig) GetEnvoyAPIVersion

func (ec *EnvoyConfig) GetEnvoyAPIVersion() envoy.APIVersion

GetEnvoyAPIVersion returns envoy's API version for the EnvoyConfigRevision

func (*EnvoyConfig) GetEnvoyResourcesVersion

func (ec *EnvoyConfig) GetEnvoyResourcesVersion() string

GetEnvoyResourcesVersion returns the hash of the resources in the spec which univoquely identifies the version of the resources.

func (*EnvoyConfig) GetSerialization

func (ec *EnvoyConfig) GetSerialization() envoy_serializer.Serialization

GetSerialization returns the encoding of the envoy resources.

type EnvoyConfigList

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

EnvoyConfigList contains a list of EnvoyConfig

func (*EnvoyConfigList) DeepCopy

func (in *EnvoyConfigList) DeepCopy() *EnvoyConfigList

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

func (*EnvoyConfigList) DeepCopyInto

func (in *EnvoyConfigList) DeepCopyInto(out *EnvoyConfigList)

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

func (*EnvoyConfigList) DeepCopyObject

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

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

type EnvoyConfigRevision

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

	Spec   EnvoyConfigRevisionSpec   `json:"spec,omitempty"`
	Status EnvoyConfigRevisionStatus `json:"status,omitempty"`
}

EnvoyConfigRevision holds an specific version of the EnvoyConfig resources. EnvoyConfigRevisions are automatically created and deleted by the EnvoyConfig controller and are not intended to be directly used. Use EnvoyConfig objects instead. +kubebuilder:subresource:status +kubebuilder:resource:path=envoyconfigrevisions,scope=Namespaced,shortName=ecr +kubebuilder:printcolumn:JSONPath=".spec.nodeID",name=Node ID,type=string +kubebuilder:printcolumn:JSONPath=".spec.envoyAPI",name=Envoy API,type=string +kubebuilder:printcolumn:JSONPath=".spec.version",name=Version,type=string +kubebuilder:printcolumn:JSONPath=".status.published",name=Published,type=boolean +kubebuilder:printcolumn:JSONPath=".metadata.creationTimestamp",name="Created At",type=string,format=date-time +kubebuilder:printcolumn:JSONPath=".status.lastPublishedAt",name="Last Published At",type=string,format=date-time +kubebuilder:printcolumn:JSONPath=".status.tainted",name=Tainted,type=boolean +operator-sdk:csv:customresourcedefinitions:displayName="EnvoyConfigRevision"

func (*EnvoyConfigRevision) DeepCopy

func (in *EnvoyConfigRevision) DeepCopy() *EnvoyConfigRevision

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

func (*EnvoyConfigRevision) DeepCopyInto

func (in *EnvoyConfigRevision) DeepCopyInto(out *EnvoyConfigRevision)

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

func (*EnvoyConfigRevision) DeepCopyObject

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

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

func (*EnvoyConfigRevision) GetEnvoyAPIVersion

func (ecr *EnvoyConfigRevision) GetEnvoyAPIVersion() envoy.APIVersion

GetEnvoyAPIVersion returns envoy's API version for the EnvoyConfigRevision

func (*EnvoyConfigRevision) GetSerialization

func (ecr *EnvoyConfigRevision) GetSerialization() envoy_serializer.Serialization

GetSerialization returns the encoding of the envoy resources.

type EnvoyConfigRevisionList

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

EnvoyConfigRevisionList contains a list of EnvoyConfigRevision

func (*EnvoyConfigRevisionList) DeepCopy

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

func (*EnvoyConfigRevisionList) DeepCopyInto

func (in *EnvoyConfigRevisionList) DeepCopyInto(out *EnvoyConfigRevisionList)

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

func (*EnvoyConfigRevisionList) DeepCopyObject

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

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

type EnvoyConfigRevisionSpec

type EnvoyConfigRevisionSpec struct {
	// NodeID holds the envoy identifier for the discovery service to know which set
	// of resources to send to each of the envoy clients that connect to it.
	// +kubebuilder:validation:Pattern:[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*')
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	NodeID string `json:"nodeID"`
	// Version is a hash of the EnvoyResources field
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	Version string `json:"version"`
	// EnvoyAPI is the version of envoy's API to use. Defaults to v2.
	// +kubebuilder:validation:Enum=v2;v3
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	// +optional
	EnvoyAPI *string `json:"envoyAPI,omitempty"`
	// Serialization specicifies the serialization format used to describe the resources. "json" and "yaml"
	// are supported. "json" is used if unset.
	// +kubebuilder:validation:Enum=json;b64json;yaml
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	// +optional
	Serialization *string `json:"serialization,omitempty"`
	// EnvoyResources holds the different types of resources suported by the envoy discovery service
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	EnvoyResources *EnvoyResources `json:"envoyResources"`
}

EnvoyConfigRevisionSpec defines the desired state of EnvoyConfigRevision

func (*EnvoyConfigRevisionSpec) DeepCopy

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

func (*EnvoyConfigRevisionSpec) DeepCopyInto

func (in *EnvoyConfigRevisionSpec) DeepCopyInto(out *EnvoyConfigRevisionSpec)

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

type EnvoyConfigRevisionStatus

type EnvoyConfigRevisionStatus struct {
	// Published signals if the EnvoyConfigRevision is the one currently published
	// in the xds server cache
	// +operator-sdk:csv:customresourcedefinitions:type=status
	// +optional
	Published *bool `json:"published,omitempty"`
	// LastPublishedAt indicates the last time this config review transitioned to
	// published
	// +operator-sdk:csv:customresourcedefinitions:type=status
	// +optional
	LastPublishedAt *metav1.Time `json:"lastPublishedAt,omitempty"`
	// Tainted indicates whether the EnvoyConfigRevision is eligible for publishing
	// or not
	// +operator-sdk:csv:customresourcedefinitions:type=status
	// +optional
	Tainted *bool `json:"tainted,omitempty"`
	// Conditions represent the latest available observations of an object's state
	// +operator-sdk:csv:customresourcedefinitions:type=status
	Conditions status.Conditions `json:"conditions"`
}

EnvoyConfigRevisionStatus defines the observed state of EnvoyConfigRevision

func (*EnvoyConfigRevisionStatus) DeepCopy

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

func (*EnvoyConfigRevisionStatus) DeepCopyInto

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

func (*EnvoyConfigRevisionStatus) IsPublished

func (status *EnvoyConfigRevisionStatus) IsPublished() bool

IsPublished returns true if this revision is published, false otherwise

func (*EnvoyConfigRevisionStatus) IsTainted

func (status *EnvoyConfigRevisionStatus) IsTainted() bool

IsTainted returns true if this revision is tainted, false otherwise

type EnvoyConfigSpec

type EnvoyConfigSpec struct {
	// NodeID holds the envoy identifier for the discovery service to know which set
	// of resources to send to each of the envoy clients that connect to it.
	// +kubebuilder:validation:Pattern:[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*')
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	NodeID string `json:"nodeID"`
	// Serialization specicifies the serialization format used to describe the resources. "json" and "yaml"
	// are supported. "json" is used if unset.
	// +kubebuilder:validation:Enum=json;b64json;yaml
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	// +optional
	Serialization *string `json:"serialization,omitempty"`
	// EnvoyAPI is the version of envoy's API to use. Defaults to v2.
	// +kubebuilder:validation:Enum=v2;v3
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	// +optional
	EnvoyAPI *string `json:"envoyAPI,omitempty"`
	// EnvoyResources holds the different types of resources suported by the envoy discovery service
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	EnvoyResources *EnvoyResources `json:"envoyResources"`
}

EnvoyConfigSpec defines the desired state of EnvoyConfig

func (*EnvoyConfigSpec) DeepCopy

func (in *EnvoyConfigSpec) DeepCopy() *EnvoyConfigSpec

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

func (*EnvoyConfigSpec) DeepCopyInto

func (in *EnvoyConfigSpec) DeepCopyInto(out *EnvoyConfigSpec)

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

type EnvoyConfigStatus

type EnvoyConfigStatus struct {
	// CacheState summarizes all the observations about the EnvoyConfig
	// to give the user a concrete idea on the general status of the discovery servie cache.
	// It is intended only for human consumption. Other controllers should relly on conditions
	// to determine the status of the discovery server cache.
	// +operator-sdk:csv:customresourcedefinitions:type=status
	CacheState string `json:"cacheState,omitempty"`
	// PublishedVersion is the config version currently
	// served by the envoy discovery service for the give nodeID
	// +operator-sdk:csv:customresourcedefinitions:type=status
	PublishedVersion string `json:"publishedVersion,omitempty"`
	// DesiredVersion represents the resources version described in
	// the spec of the EnvoyConfig object
	// +operator-sdk:csv:customresourcedefinitions:type=status
	DesiredVersion string `json:"desiredVersion,omitempty"`
	// Conditions represent the latest available observations of an object's state
	// +operator-sdk:csv:customresourcedefinitions:type=status
	Conditions status.Conditions `json:"conditions,omitempty"`
	// ConfigRevisions is an ordered list of references to EnvoyConfigRevision
	// objects
	// +operator-sdk:csv:customresourcedefinitions:type=status
	ConfigRevisions []ConfigRevisionRef `json:"revisions,omitempty"`
}

EnvoyConfigStatus defines the observed state of EnvoyConfig

func (*EnvoyConfigStatus) DeepCopy

func (in *EnvoyConfigStatus) DeepCopy() *EnvoyConfigStatus

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

func (*EnvoyConfigStatus) DeepCopyInto

func (in *EnvoyConfigStatus) DeepCopyInto(out *EnvoyConfigStatus)

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

type EnvoyResource

type EnvoyResource struct {
	// Name of the envoy resource
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	Name string `json:"name"`
	// Value is the serialized representation of the envoy resource
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	Value string `json:"value"`
}

EnvoyResource holds serialized representation of an envoy resource

func (*EnvoyResource) DeepCopy

func (in *EnvoyResource) DeepCopy() *EnvoyResource

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

func (*EnvoyResource) DeepCopyInto

func (in *EnvoyResource) DeepCopyInto(out *EnvoyResource)

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

type EnvoyResources

type EnvoyResources struct {
	// Endpoints is a list of the envoy ClusterLoadAssignment resource type.
	// V2 reference: https://www.envoyproxy.io/docs/envoy/latest/api-v2/api/v2/endpoint.proto
	// V3 reference: https://www.envoyproxy.io/docs/envoy/latest/api-v3/config/endpoint/v3/endpoint.proto
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	Endpoints []EnvoyResource `json:"endpoints,omitempty"`
	// Clusters is a list of the envoy Cluster resource type.
	// V2 reference: https://www.envoyproxy.io/docs/envoy/latest/api-v2/api/v2/cluster.proto
	// V3 reference: https://www.envoyproxy.io/docs/envoy/latest/api-v3/config/cluster/v3/cluster.proto
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	Clusters []EnvoyResource `json:"clusters,omitempty"`
	// Routes is a list of the envoy Route resource type.
	// V2 reference: https://www.envoyproxy.io/docs/envoy/latest/api-v2/api/v2/route.proto
	// V3 reference: https://www.envoyproxy.io/docs/envoy/latest/api-v3/config/route/v3/route.proto
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	Routes []EnvoyResource `json:"routes,omitempty"`
	// Listeners is a list of the envoy Listener resource type.
	// V2 referece: https://www.envoyproxy.io/docs/envoy/latest/api-v2/api/v2/listener.proto
	// V3 reference: https://www.envoyproxy.io/docs/envoy/latest/api-v3/config/listener/v3/listener.proto
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	Listeners []EnvoyResource `json:"listeners,omitempty"`
	// Runtimes is a list of the envoy Runtime resource type.
	// V2 reference: https://www.envoyproxy.io/docs/envoy/latest/api-v2/service/discovery/v2/rtds.proto
	// V3 reference: https://www.envoyproxy.io/docs/envoy/latest/api-v3/service/runtime/v3/rtds.proto
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	Runtimes []EnvoyResource `json:"runtime,omitempty"`
	// Secrets is a list of references to Kubernetes Secret objects.
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	Secrets []EnvoySecretResource `json:"secrets,omitempty"`
}

EnvoyResources holds each envoy api resource type

func (*EnvoyResources) DeepCopy

func (in *EnvoyResources) DeepCopy() *EnvoyResources

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

func (*EnvoyResources) DeepCopyInto

func (in *EnvoyResources) DeepCopyInto(out *EnvoyResources)

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

type EnvoySecretResource

type EnvoySecretResource struct {
	// Name of the envoy resource
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	Name string `json:"name"`
	// Ref is a reference to a Kubernetes Secret of type "kubernetes.io/tls" from which
	// an envoy Secret resource will be automatically created.
	// +operator-sdk:csv:customresourcedefinitions:type=spec,xDescriptors="urn:alm:descriptor:io.kubernetes:SecretReference"
	Ref corev1.SecretReference `json:"ref"`
}

EnvoySecretResource holds a reference to a k8s Secret from where to take a secret from

func (*EnvoySecretResource) DeepCopy

func (in *EnvoySecretResource) DeepCopy() *EnvoySecretResource

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

func (*EnvoySecretResource) DeepCopyInto

func (in *EnvoySecretResource) DeepCopyInto(out *EnvoySecretResource)

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

type EnvoyStaticConfig

type EnvoyStaticConfig struct {
	// The ConfigMap where the envoy client v2 static config will be stored
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	ConfigMapNameV2 string `json:"configMapNameV2"`
	// The ConfigMap where the envoy client v3 static config will be stored
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	ConfigMapNameV3 string `json:"configMapNameV3"`
	// ConfigFile is the path of envoy's bootstrap config file
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	ConfigFile string `json:"configFile"`
	// ResourcesDir is the path where resource files are loaded from. It is used to
	// load discovery messages directly from the filesystem, for example in order to be able
	// to bootstrap certificates and support rotation when they are modified.
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	ResourcesDir string `json:"resourcesDir"`
	// RtdsLayerResourceName is the resource name that the envoy client will request when askikng
	// the discovery service for Runtime resources.
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	RtdsLayerResourceName string `json:"rtdsLayerResourceName"`
	// AdminBindAddress is where envoy's admin server binds to.
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	AdminBindAddress string `json:"adminBindAddress"`
	// AdminAccessLogPath configures where the envoy's admin server logs are written to
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	AdminAccessLogPath string `json:"adminAccessLogPath"`
}

EnvoyStaticConfig allows specifying envoy static config options

func (*EnvoyStaticConfig) DeepCopy

func (in *EnvoyStaticConfig) DeepCopy() *EnvoyStaticConfig

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

func (*EnvoyStaticConfig) DeepCopyInto

func (in *EnvoyStaticConfig) DeepCopyInto(out *EnvoyStaticConfig)

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
t or T : Toggle theme light dark auto
y or Y : Canonical URL