v2beta1

package
v0.0.0-...-7754ea6 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MPL-2.0 Imports: 24 Imported by: 1

Documentation

Overview

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Package v2beta1 contains API Schema definitions for the consul.hashicorp.com v2beta1 API group +kubebuilder:object:generate=true +groupName=mesh.consul.hashicorp.com

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Index

Constants

View Source
const KindGatewayClass = "GatewayClass"
View Source
const KindGatewayClassConfig = "GatewayClassConfig"

Variables

View Source
var (

	// MeshGroup is a collection of mesh resources.
	MeshGroup = "mesh.consul.hashicorp.com"

	// MeshGroupVersion is group version used to register these objects.
	MeshGroupVersion = schema.GroupVersion{Group: MeshGroup, Version: "v2beta1"}

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

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

Functions

This section is empty.

Types

type APIGateway

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

	Spec             pbmesh.APIGateway `json:"spec,omitempty"`
	APIGatewayStatus `json:"status,omitempty"`
}

APIGateway is the Schema for the API Gateway +kubebuilder:printcolumn:name="Synced",type="string",JSONPath=".status.conditions[?(@.type==\"Synced\")].status",description="The sync status of the resource with Consul" +kubebuilder:printcolumn:name="Last Synced",type="date",JSONPath=".status.lastSyncedTime",description="The last successful synced time of the resource with Consul" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description="The age of the resource" +kubebuilder:resource:scope=Cluster

func (*APIGateway) AddFinalizer

func (in *APIGateway) AddFinalizer(f string)

func (*APIGateway) DeepCopy

func (in *APIGateway) DeepCopy() *APIGateway

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

func (*APIGateway) DeepCopyInto

func (in *APIGateway) DeepCopyInto(out *APIGateway)

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

func (*APIGateway) DeepCopyObject

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

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

func (*APIGateway) DefaultNamespaceFields

func (in *APIGateway) DefaultNamespaceFields(tenancy common.ConsulTenancyConfig)

DefaultNamespaceFields is required as part of the common.MeshConfig interface.

func (*APIGateway) Finalizers

func (in *APIGateway) Finalizers() []string

func (*APIGateway) KubeKind

func (in *APIGateway) KubeKind() string

func (*APIGateway) KubernetesName

func (in *APIGateway) KubernetesName() string

func (*APIGateway) ListenersToContainerPorts

func (in *APIGateway) ListenersToContainerPorts(_ int32, _ int32) []corev1.ContainerPort

func (*APIGateway) ListenersToServicePorts

func (in *APIGateway) ListenersToServicePorts(portModifier int32) []corev1.ServicePort

ListenersToServicePorts converts the APIGateway listeners to ServicePorts.

func (*APIGateway) MatchesConsul

func (in *APIGateway) MatchesConsul(candidate *pbresource.Resource, namespace, partition string) bool

func (*APIGateway) RemoveFinalizer

func (in *APIGateway) RemoveFinalizer(f string)

func (*APIGateway) Resource

func (in *APIGateway) Resource(namespace, partition string) *pbresource.Resource

func (*APIGateway) ResourceID

func (in *APIGateway) ResourceID(namespace, partition string) *pbresource.ID

func (*APIGateway) SetLastSyncedTime

func (in *APIGateway) SetLastSyncedTime(time *metav1.Time)

func (*APIGateway) SetSyncedCondition

func (in *APIGateway) SetSyncedCondition(status corev1.ConditionStatus, reason, message string)

func (*APIGateway) SyncedCondition

func (in *APIGateway) SyncedCondition() (status corev1.ConditionStatus, reason, message string)

func (*APIGateway) SyncedConditionStatus

func (in *APIGateway) SyncedConditionStatus() corev1.ConditionStatus

func (*APIGateway) Validate

func (in *APIGateway) Validate(tenancy common.ConsulTenancyConfig) error

type APIGatewayList

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

APIGatewayList contains a list of APIGateway.

func (*APIGatewayList) DeepCopy

func (in *APIGatewayList) DeepCopy() *APIGatewayList

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

func (*APIGatewayList) DeepCopyInto

func (in *APIGatewayList) DeepCopyInto(out *APIGatewayList)

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

func (*APIGatewayList) DeepCopyObject

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

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

func (*APIGatewayList) ReconcileRequests

func (in *APIGatewayList) ReconcileRequests() []reconcile.Request

type APIGatewayStatus

type APIGatewayStatus struct {
	Status    `json:"status,omitempty"`
	Addresses []GatewayAddress `json:"addresses,omitempty"`
	Listeners []ListenerStatus `json:"listeners,omitempty"`
}

func (*APIGatewayStatus) DeepCopy

func (in *APIGatewayStatus) DeepCopy() *APIGatewayStatus

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

func (*APIGatewayStatus) DeepCopyInto

func (in *APIGatewayStatus) DeepCopyInto(out *APIGatewayStatus)

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

type Condition

type Condition struct {
	// Type of condition.
	// +required
	Type ConditionType `json:"type" description:"type of status condition"`

	// Status of the condition, one of True, False, Unknown.
	// +required
	Status corev1.ConditionStatus `json:"status" description:"status of the condition, one of True, False, Unknown"`

	// LastTransitionTime is the last time the condition transitioned from one status to another.
	// +optional
	LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty" description:"last time the condition transitioned from one status to another"`

	// The reason for the condition's last transition.
	// +optional
	Reason string `json:"reason,omitempty" description:"one-word CamelCase reason for the condition's last transition"`

	// A human readable message indicating details about the transition.
	// +optional
	Message string `json:"message,omitempty" description:"human-readable message indicating details about last transition"`
}

Conditions define a readiness condition for a Consul resource. See: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#typical-status-properties +k8s:deepcopy-gen=true +k8s:openapi-gen=true

func (*Condition) DeepCopy

func (in *Condition) DeepCopy() *Condition

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

func (*Condition) DeepCopyInto

func (in *Condition) DeepCopyInto(out *Condition)

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

func (*Condition) IsFalse

func (c *Condition) IsFalse() bool

IsFalse is true if the condition is False.

func (*Condition) IsTrue

func (c *Condition) IsTrue() bool

IsTrue is true if the condition is True.

func (*Condition) IsUnknown

func (c *Condition) IsUnknown() bool

IsUnknown is true if the condition is Unknown.

type ConditionType

type ConditionType string

ConditionType is a camel-cased condition type.

const (
	// ConditionSynced specifies that the resource has been synced with Consul.
	ConditionSynced ConditionType = "Synced"
)

type Conditions

type Conditions []Condition

Conditions is the schema for the conditions portion of the payload.

func (Conditions) DeepCopy

func (in Conditions) DeepCopy() Conditions

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

func (Conditions) DeepCopyInto

func (in Conditions) DeepCopyInto(out *Conditions)

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

type GRPCRoute

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

	Spec   pbmesh.GRPCRoute `json:"spec,omitempty"`
	Status `json:"status,omitempty"`
}

GRPCRoute is the Schema for the GRPC Route API +kubebuilder:printcolumn:name="Synced",type="string",JSONPath=".status.conditions[?(@.type==\"Synced\")].status",description="The sync status of the resource with Consul" +kubebuilder:printcolumn:name="Last Synced",type="date",JSONPath=".status.lastSyncedTime",description="The last successful synced time of the resource with Consul" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description="The age of the resource" +kubebuilder:resource:shortName="grpc-route"

func (*GRPCRoute) AddFinalizer

func (in *GRPCRoute) AddFinalizer(f string)

func (*GRPCRoute) DeepCopy

func (in *GRPCRoute) DeepCopy() *GRPCRoute

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

func (*GRPCRoute) DeepCopyInto

func (in *GRPCRoute) DeepCopyInto(out *GRPCRoute)

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

func (*GRPCRoute) DeepCopyObject

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

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

func (*GRPCRoute) DefaultNamespaceFields

func (in *GRPCRoute) DefaultNamespaceFields(tenancy common.ConsulTenancyConfig)

DefaultNamespaceFields is required as part of the common.MeshConfig interface.

func (*GRPCRoute) Finalizers

func (in *GRPCRoute) Finalizers() []string

func (*GRPCRoute) KubeKind

func (in *GRPCRoute) KubeKind() string

func (*GRPCRoute) KubernetesName

func (in *GRPCRoute) KubernetesName() string

func (*GRPCRoute) MatchesConsul

func (in *GRPCRoute) MatchesConsul(candidate *pbresource.Resource, namespace, partition string) bool

func (*GRPCRoute) RemoveFinalizer

func (in *GRPCRoute) RemoveFinalizer(f string)

func (*GRPCRoute) Resource

func (in *GRPCRoute) Resource(namespace, partition string) *pbresource.Resource

func (*GRPCRoute) ResourceID

func (in *GRPCRoute) ResourceID(namespace, partition string) *pbresource.ID

func (*GRPCRoute) SetLastSyncedTime

func (in *GRPCRoute) SetLastSyncedTime(time *metav1.Time)

func (*GRPCRoute) SetSyncedCondition

func (in *GRPCRoute) SetSyncedCondition(status corev1.ConditionStatus, reason, message string)

func (*GRPCRoute) SyncedCondition

func (in *GRPCRoute) SyncedCondition() (status corev1.ConditionStatus, reason, message string)

func (*GRPCRoute) SyncedConditionStatus

func (in *GRPCRoute) SyncedConditionStatus() corev1.ConditionStatus

func (*GRPCRoute) Validate

func (in *GRPCRoute) Validate(tenancy common.ConsulTenancyConfig) error

type GRPCRouteList

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

GRPCRouteList contains a list of GRPCRoute.

func (*GRPCRouteList) DeepCopy

func (in *GRPCRouteList) DeepCopy() *GRPCRouteList

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

func (*GRPCRouteList) DeepCopyInto

func (in *GRPCRouteList) DeepCopyInto(out *GRPCRouteList)

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

func (*GRPCRouteList) DeepCopyObject

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

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

type GRPCRouteWebhook

type GRPCRouteWebhook struct {
	Logger logr.Logger

	// ConsulTenancyConfig contains the injector's namespace and partition configuration.
	ConsulTenancyConfig common.ConsulTenancyConfig

	client.Client
	// contains filtered or unexported fields
}

func (*GRPCRouteWebhook) Handle

func (*GRPCRouteWebhook) InjectDecoder

func (v *GRPCRouteWebhook) InjectDecoder(d *admission.Decoder) error

func (*GRPCRouteWebhook) List

type GatewayAddress

type GatewayAddress struct {
	// +kubebuilder:default=IPAddress
	Type  string `json:"type"`
	Value string `json:"value"`
}

func (*GatewayAddress) DeepCopy

func (in *GatewayAddress) DeepCopy() *GatewayAddress

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

func (*GatewayAddress) DeepCopyInto

func (in *GatewayAddress) DeepCopyInto(out *GatewayAddress)

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

type GatewayClass

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

	Spec   GatewayClassSpec `json:"spec,omitempty"`
	Status `json:"status,omitempty"`
}

GatewayClass is the Schema for the Gateway Class API +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description="The age of the resource" +kubebuilder:resource:scope=Cluster

func (*GatewayClass) DeepCopy

func (in *GatewayClass) DeepCopy() *GatewayClass

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

func (*GatewayClass) DeepCopyInto

func (in *GatewayClass) DeepCopyInto(out *GatewayClass)

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

func (*GatewayClass) DeepCopyObject

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

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

type GatewayClassAnnotationsAndLabels

type GatewayClassAnnotationsAndLabels struct {
	// Annotations are applied to the created resource
	Annotations GatewayClassAnnotationsLabelsConfig `json:"annotations,omitempty"`
	// Labels are applied to the created resource
	Labels GatewayClassAnnotationsLabelsConfig `json:"labels,omitempty"`
}

GatewayClassAnnotationsAndLabels exists to provide a commonly-embedded wrapper for Annotations and Labels on a given resource configuration.

func (*GatewayClassAnnotationsAndLabels) DeepCopy

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

func (*GatewayClassAnnotationsAndLabels) DeepCopyInto

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

type GatewayClassAnnotationsLabelsConfig

type GatewayClassAnnotationsLabelsConfig struct {
	// InheritFromGateway lists the names/keys of annotations or labels to copy from the Gateway resource.
	// Any name/key included here will override those in Set if specified on the Gateway.
	InheritFromGateway []string `json:"inheritFromGateway,omitempty"`
	// Set lists the names/keys and values of annotations or labels to set on the resource.
	// Any name/key included here will be overridden if present in InheritFromGateway and set on the Gateway.
	Set map[string]string `json:"set,omitempty"`
}

func (*GatewayClassAnnotationsLabelsConfig) DeepCopy

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

func (*GatewayClassAnnotationsLabelsConfig) DeepCopyInto

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

type GatewayClassConfig

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

	Spec   GatewayClassConfigSpec `json:"spec,omitempty"`
	Status `json:"status,omitempty"`
}

GatewayClassConfig is the Schema for the Mesh Gateway API +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description="The age of the resource" +kubebuilder:resource:scope=Cluster

func (*GatewayClassConfig) DeepCopy

func (in *GatewayClassConfig) DeepCopy() *GatewayClassConfig

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

func (*GatewayClassConfig) DeepCopyInto

func (in *GatewayClassConfig) DeepCopyInto(out *GatewayClassConfig)

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

func (*GatewayClassConfig) DeepCopyObject

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

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

type GatewayClassConfigList

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

GatewayClassConfigList contains a list of GatewayClassConfig.

func (*GatewayClassConfigList) DeepCopy

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

func (*GatewayClassConfigList) DeepCopyInto

func (in *GatewayClassConfigList) DeepCopyInto(out *GatewayClassConfigList)

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

func (*GatewayClassConfigList) DeepCopyObject

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

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

type GatewayClassConfigSpec

type GatewayClassConfigSpec struct {
	GatewayClassAnnotationsAndLabels `json:",inline"`

	// Deployment contains config specific to the Deployment created from this GatewayClass
	Deployment GatewayClassDeploymentConfig `json:"deployment,omitempty"`
	// Role contains config specific to the Role created from this GatewayClass
	Role GatewayClassRoleConfig `json:"role,omitempty"`
	// RoleBinding contains config specific to the RoleBinding created from this GatewayClass
	RoleBinding GatewayClassRoleBindingConfig `json:"roleBinding,omitempty"`
	// Service contains config specific to the Service created from this GatewayClass
	Service GatewayClassServiceConfig `json:"service,omitempty"`
	// ServiceAccount contains config specific to the corev1.ServiceAccount created from this GatewayClass
	ServiceAccount GatewayClassServiceAccountConfig `json:"serviceAccount,omitempty"`
}

GatewayClassConfigSpec specifies the desired state of the GatewayClassConfig CRD.

func (*GatewayClassConfigSpec) DeepCopy

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

func (*GatewayClassConfigSpec) DeepCopyInto

func (in *GatewayClassConfigSpec) DeepCopyInto(out *GatewayClassConfigSpec)

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

type GatewayClassConsulConfig

type GatewayClassConsulConfig struct {
	// Logging specifies the logging configuration for Consul Dataplane
	Logging GatewayClassConsulLoggingConfig `json:"logging,omitempty"`
}

func (*GatewayClassConsulConfig) DeepCopy

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

func (*GatewayClassConsulConfig) DeepCopyInto

func (in *GatewayClassConsulConfig) DeepCopyInto(out *GatewayClassConsulConfig)

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

type GatewayClassConsulLoggingConfig

type GatewayClassConsulLoggingConfig struct {
	// Level sets the logging level for Consul Dataplane (debug, info, etc.)
	Level string `json:"level,omitempty"`
}

func (*GatewayClassConsulLoggingConfig) DeepCopy

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

func (*GatewayClassConsulLoggingConfig) DeepCopyInto

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

type GatewayClassContainerConfig

type GatewayClassContainerConfig struct {
	// Consul specifies configuration for the consul-dataplane container
	Consul GatewayClassConsulConfig `json:"consul,omitempty"`
	// Resources specifies the resource requirements for the created Deployment's container
	Resources *corev1.ResourceRequirements `json:"resources,omitempty"`
	// PortModifier specifies the value to be added to every port value for listeners on this gateway.
	// This is generally used to avoid binding to privileged ports in the container.
	PortModifier int32 `json:"portModifier,omitempty"`
	// HostPort specifies a port to be exposed to the external host network
	HostPort int32 `json:"hostPort,omitempty"`
}

func (*GatewayClassContainerConfig) DeepCopy

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

func (*GatewayClassContainerConfig) DeepCopyInto

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

type GatewayClassDeploymentConfig

type GatewayClassDeploymentConfig struct {
	GatewayClassAnnotationsAndLabels `json:",inline"`

	// Container contains config specific to the created Deployment's container.
	Container *GatewayClassContainerConfig `json:"container,omitempty"`
	// InitContainer contains config specific to the created Deployment's init container.
	InitContainer *GatewayClassInitContainerConfig `json:"initContainer,omitempty"`
	// NodeSelector is a feature that constrains the scheduling of a pod to nodes that
	// match specified labels.
	// By defining NodeSelector in a pod's configuration, you can ensure that the pod is
	// only scheduled to nodes with the corresponding labels, providing a way to
	// influence the placement of workloads based on node attributes.
	// More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
	NodeSelector map[string]string `json:"nodeSelector,omitempty"`
	// PriorityClassName specifies the priority class name to use on the created Deployment.
	PriorityClassName string `json:"priorityClassName,omitempty"`
	// Replicas specifies the configuration to control the number of replicas for the created Deployment.
	Replicas *GatewayClassReplicasConfig `json:"replicas,omitempty"`
	// SecurityContext specifies the security context for the created Deployment's Pod.
	SecurityContext *corev1.PodSecurityContext `json:"securityContext,omitempty"`
	// Tolerations specifies the tolerations to use on the created Deployment.
	Tolerations []corev1.Toleration `json:"tolerations,omitempty"`
	// HostNetwork specifies whether the gateway pods should run on the host network.
	HostNetwork bool `json:"hostNetwork,omitempty"`
	// TopologySpreadConstraints is a feature that controls how pods are spead across your topology.
	// More info: https://kubernetes.io/docs/concepts/scheduling-eviction/topology-spread-constraints/
	TopologySpreadConstraints []corev1.TopologySpreadConstraint `json:"topologySpreadConstraints,omitempty"`
	// DNSPolicy specifies the dns policy to use. These are set on a per pod basis.
	// +kubebuilder:validation:Enum=Default;ClusterFirst;ClusterFirstWithHostNet;None
	DNSPolicy corev1.DNSPolicy `json:"dnsPolicy,omitempty"`
	// Affinity specifies the affinity to use on the created Deployment.
	Affinity *corev1.Affinity `json:"affinity,omitempty"`
}

GatewayClassDeploymentConfig specifies the desired state of the Deployment created from the GatewayClassConfig.

func (*GatewayClassDeploymentConfig) DeepCopy

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

func (*GatewayClassDeploymentConfig) DeepCopyInto

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

type GatewayClassInitContainerConfig

type GatewayClassInitContainerConfig struct {
	// Consul specifies configuration for the consul-k8s-control-plane init container
	Consul GatewayClassConsulConfig `json:"consul,omitempty"`
	// Resources specifies the resource requirements for the created Deployment's init container
	Resources *corev1.ResourceRequirements `json:"resources,omitempty"`
}

func (*GatewayClassInitContainerConfig) DeepCopy

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

func (*GatewayClassInitContainerConfig) DeepCopyInto

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

type GatewayClassList

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

GatewayClassList contains a list of GatewayClass.

func (*GatewayClassList) DeepCopy

func (in *GatewayClassList) DeepCopy() *GatewayClassList

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

func (*GatewayClassList) DeepCopyInto

func (in *GatewayClassList) DeepCopyInto(out *GatewayClassList)

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

func (*GatewayClassList) DeepCopyObject

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

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

type GatewayClassReplicasConfig

type GatewayClassReplicasConfig struct {
	// Default is the number of replicas assigned to the Deployment when created
	Default *int32 `json:"default,omitempty"`
	// Min is the minimum number of replicas allowed for a gateway with this class.
	// If the replica count drops below this value due to manual or automated scaling,
	// the replica count will be restored to this value.
	Min *int32 `json:"min,omitempty"`
	// Max is the maximum number of replicas allowed for a gateway with this class.
	// If the replica count exceeds this value due to manual or automated scaling,
	// the replica count will be restored to this value.
	Max *int32 `json:"max,omitempty"`
}

func (*GatewayClassReplicasConfig) DeepCopy

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

func (*GatewayClassReplicasConfig) DeepCopyInto

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

type GatewayClassRoleBindingConfig

type GatewayClassRoleBindingConfig struct {
	GatewayClassAnnotationsAndLabels `json:",inline"`
}

func (*GatewayClassRoleBindingConfig) DeepCopy

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

func (*GatewayClassRoleBindingConfig) DeepCopyInto

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

type GatewayClassRoleConfig

type GatewayClassRoleConfig struct {
	GatewayClassAnnotationsAndLabels `json:",inline"`
}

func (*GatewayClassRoleConfig) DeepCopy

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

func (*GatewayClassRoleConfig) DeepCopyInto

func (in *GatewayClassRoleConfig) DeepCopyInto(out *GatewayClassRoleConfig)

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

type GatewayClassServiceAccountConfig

type GatewayClassServiceAccountConfig struct {
	GatewayClassAnnotationsAndLabels `json:",inline"`
}

func (*GatewayClassServiceAccountConfig) DeepCopy

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

func (*GatewayClassServiceAccountConfig) DeepCopyInto

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

type GatewayClassServiceConfig

type GatewayClassServiceConfig struct {
	GatewayClassAnnotationsAndLabels `json:",inline"`

	// Type specifies the type of Service to use (LoadBalancer, ClusterIP, etc.)
	// +kubebuilder:validation:Enum=ClusterIP;NodePort;LoadBalancer
	Type *corev1.ServiceType `json:"type,omitempty"`
}

func (*GatewayClassServiceConfig) DeepCopy

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

func (*GatewayClassServiceConfig) DeepCopyInto

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

type GatewayClassSpec

type GatewayClassSpec struct {
	// ControllerName is the name of the Kubernetes controller
	// that manages Gateways of this class
	ControllerName string `json:"controllerName"`

	// ParametersRef refers to a resource responsible for configuring
	// the behavior of the GatewayClass.
	ParametersRef *ParametersReference `json:"parametersRef"`

	// Description of GatewayClass
	Description string `json:"description,omitempty"`
}

func (*GatewayClassSpec) DeepCopy

func (in *GatewayClassSpec) DeepCopy() *GatewayClassSpec

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

func (*GatewayClassSpec) DeepCopyInto

func (in *GatewayClassSpec) DeepCopyInto(out *GatewayClassSpec)

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

type HTTPRoute

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

	Spec   pbmesh.HTTPRoute `json:"spec,omitempty"`
	Status `json:"status,omitempty"`
}

HTTPRoute is the Schema for the HTTP Route API +kubebuilder:printcolumn:name="Synced",type="string",JSONPath=".status.conditions[?(@.type==\"Synced\")].status",description="The sync status of the resource with Consul" +kubebuilder:printcolumn:name="Last Synced",type="date",JSONPath=".status.lastSyncedTime",description="The last successful synced time of the resource with Consul" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description="The age of the resource" +kubebuilder:resource:shortName="http-route"

func (*HTTPRoute) AddFinalizer

func (in *HTTPRoute) AddFinalizer(f string)

func (*HTTPRoute) DeepCopy

func (in *HTTPRoute) DeepCopy() *HTTPRoute

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

func (*HTTPRoute) DeepCopyInto

func (in *HTTPRoute) DeepCopyInto(out *HTTPRoute)

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

func (*HTTPRoute) DeepCopyObject

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

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

func (*HTTPRoute) DefaultNamespaceFields

func (in *HTTPRoute) DefaultNamespaceFields(tenancy common.ConsulTenancyConfig)

DefaultNamespaceFields is required as part of the common.MeshConfig interface.

func (*HTTPRoute) Finalizers

func (in *HTTPRoute) Finalizers() []string

func (*HTTPRoute) KubeKind

func (in *HTTPRoute) KubeKind() string

func (*HTTPRoute) KubernetesName

func (in *HTTPRoute) KubernetesName() string

func (*HTTPRoute) MatchesConsul

func (in *HTTPRoute) MatchesConsul(candidate *pbresource.Resource, namespace, partition string) bool

func (*HTTPRoute) RemoveFinalizer

func (in *HTTPRoute) RemoveFinalizer(f string)

func (*HTTPRoute) Resource

func (in *HTTPRoute) Resource(namespace, partition string) *pbresource.Resource

func (*HTTPRoute) ResourceID

func (in *HTTPRoute) ResourceID(namespace, partition string) *pbresource.ID

func (*HTTPRoute) SetLastSyncedTime

func (in *HTTPRoute) SetLastSyncedTime(time *metav1.Time)

func (*HTTPRoute) SetSyncedCondition

func (in *HTTPRoute) SetSyncedCondition(status corev1.ConditionStatus, reason, message string)

func (*HTTPRoute) SyncedCondition

func (in *HTTPRoute) SyncedCondition() (status corev1.ConditionStatus, reason, message string)

func (*HTTPRoute) SyncedConditionStatus

func (in *HTTPRoute) SyncedConditionStatus() corev1.ConditionStatus

func (*HTTPRoute) Validate

func (in *HTTPRoute) Validate(tenancy common.ConsulTenancyConfig) error

type HTTPRouteList

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

HTTPRouteList contains a list of HTTPRoute.

func (*HTTPRouteList) DeepCopy

func (in *HTTPRouteList) DeepCopy() *HTTPRouteList

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

func (*HTTPRouteList) DeepCopyInto

func (in *HTTPRouteList) DeepCopyInto(out *HTTPRouteList)

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

func (*HTTPRouteList) DeepCopyObject

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

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

type HTTPRouteWebhook

type HTTPRouteWebhook struct {
	Logger logr.Logger

	// ConsulTenancyConfig contains the injector's namespace and partition configuration.
	ConsulTenancyConfig common.ConsulTenancyConfig

	client.Client
	// contains filtered or unexported fields
}

func (*HTTPRouteWebhook) Handle

func (*HTTPRouteWebhook) InjectDecoder

func (v *HTTPRouteWebhook) InjectDecoder(d *admission.Decoder) error

func (*HTTPRouteWebhook) List

type ListenerStatus

type ListenerStatus struct {
	Status         `json:"status,omitempty"`
	Name           string `json:"name"`
	AttachedRoutes int32  `json:"attachedRoutes"`
}

func (*ListenerStatus) DeepCopy

func (in *ListenerStatus) DeepCopy() *ListenerStatus

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

func (*ListenerStatus) DeepCopyInto

func (in *ListenerStatus) DeepCopyInto(out *ListenerStatus)

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

type MeshConfiguration

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

	Spec   pbmesh.MeshConfiguration `json:"spec,omitempty"`
	Status `json:"status,omitempty"`
}

MeshConfiguration is the Schema for the Mesh Configuration +kubebuilder:printcolumn:name="Synced",type="string",JSONPath=".status.conditions[?(@.type==\"Synced\")].status",description="The sync status of the resource with Consul" +kubebuilder:printcolumn:name="Last Synced",type="date",JSONPath=".status.lastSyncedTime",description="The last successful synced time of the resource with Consul" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description="The age of the resource" +kubebuilder:resource:scope=Cluster

func (*MeshConfiguration) AddFinalizer

func (in *MeshConfiguration) AddFinalizer(f string)

func (*MeshConfiguration) DeepCopy

func (in *MeshConfiguration) DeepCopy() *MeshConfiguration

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

func (*MeshConfiguration) DeepCopyInto

func (in *MeshConfiguration) DeepCopyInto(out *MeshConfiguration)

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

func (*MeshConfiguration) DeepCopyObject

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

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

func (*MeshConfiguration) DefaultNamespaceFields

func (in *MeshConfiguration) DefaultNamespaceFields(tenancy common.ConsulTenancyConfig)

DefaultNamespaceFields is required as part of the common.MeshConfig interface.

func (*MeshConfiguration) Finalizers

func (in *MeshConfiguration) Finalizers() []string

func (*MeshConfiguration) KubeKind

func (in *MeshConfiguration) KubeKind() string

func (*MeshConfiguration) KubernetesName

func (in *MeshConfiguration) KubernetesName() string

func (*MeshConfiguration) MatchesConsul

func (in *MeshConfiguration) MatchesConsul(candidate *pbresource.Resource, _, partition string) bool

func (*MeshConfiguration) RemoveFinalizer

func (in *MeshConfiguration) RemoveFinalizer(f string)

func (*MeshConfiguration) Resource

func (in *MeshConfiguration) Resource(_, partition string) *pbresource.Resource

func (*MeshConfiguration) ResourceID

func (in *MeshConfiguration) ResourceID(_, partition string) *pbresource.ID

func (*MeshConfiguration) SetLastSyncedTime

func (in *MeshConfiguration) SetLastSyncedTime(time *metav1.Time)

func (*MeshConfiguration) SetSyncedCondition

func (in *MeshConfiguration) SetSyncedCondition(status corev1.ConditionStatus, reason, message string)

func (*MeshConfiguration) SyncedCondition

func (in *MeshConfiguration) SyncedCondition() (status corev1.ConditionStatus, reason, message string)

func (*MeshConfiguration) SyncedConditionStatus

func (in *MeshConfiguration) SyncedConditionStatus() corev1.ConditionStatus

func (*MeshConfiguration) Validate

func (in *MeshConfiguration) Validate(tenancy common.ConsulTenancyConfig) error

type MeshConfigurationList

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

MeshConfigurationList contains a list of MeshConfiguration.

func (*MeshConfigurationList) DeepCopy

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

func (*MeshConfigurationList) DeepCopyInto

func (in *MeshConfigurationList) DeepCopyInto(out *MeshConfigurationList)

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

func (*MeshConfigurationList) DeepCopyObject

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

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

type MeshGateway

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

	Spec   pbmesh.MeshGateway `json:"spec,omitempty"`
	Status `json:"status,omitempty"`
}

MeshGateway is the Schema for the Mesh Gateway API +kubebuilder:printcolumn:name="Synced",type="string",JSONPath=".status.conditions[?(@.type==\"Synced\")].status",description="The sync status of the resource with Consul" +kubebuilder:printcolumn:name="Last Synced",type="date",JSONPath=".status.lastSyncedTime",description="The last successful synced time of the resource with Consul" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description="The age of the resource" +kubebuilder:resource:scope="Namespaced"

func (*MeshGateway) AddFinalizer

func (in *MeshGateway) AddFinalizer(f string)

func (*MeshGateway) DeepCopy

func (in *MeshGateway) DeepCopy() *MeshGateway

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

func (*MeshGateway) DeepCopyInto

func (in *MeshGateway) DeepCopyInto(out *MeshGateway)

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

func (*MeshGateway) DeepCopyObject

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

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

func (*MeshGateway) DefaultNamespaceFields

func (in *MeshGateway) DefaultNamespaceFields(tenancy common.ConsulTenancyConfig)

DefaultNamespaceFields is required as part of the common.MeshConfig interface.

func (*MeshGateway) Finalizers

func (in *MeshGateway) Finalizers() []string

func (*MeshGateway) KubeKind

func (in *MeshGateway) KubeKind() string

func (*MeshGateway) KubernetesName

func (in *MeshGateway) KubernetesName() string

func (*MeshGateway) ListenersToContainerPorts

func (in *MeshGateway) ListenersToContainerPorts(portModifier int32, hostPort int32) []corev1.ContainerPort

func (*MeshGateway) ListenersToServicePorts

func (in *MeshGateway) ListenersToServicePorts(portModifier int32) []corev1.ServicePort

ListenersToServicePorts converts the MeshGateway listeners to ServicePorts.

func (*MeshGateway) MatchesConsul

func (in *MeshGateway) MatchesConsul(candidate *pbresource.Resource, namespace, partition string) bool

func (*MeshGateway) RemoveFinalizer

func (in *MeshGateway) RemoveFinalizer(f string)

func (*MeshGateway) Resource

func (in *MeshGateway) Resource(namespace, partition string) *pbresource.Resource

func (*MeshGateway) ResourceID

func (in *MeshGateway) ResourceID(_, partition string) *pbresource.ID

func (*MeshGateway) SetLastSyncedTime

func (in *MeshGateway) SetLastSyncedTime(time *metav1.Time)

func (*MeshGateway) SetSyncedCondition

func (in *MeshGateway) SetSyncedCondition(status corev1.ConditionStatus, reason, message string)

func (*MeshGateway) SyncedCondition

func (in *MeshGateway) SyncedCondition() (status corev1.ConditionStatus, reason, message string)

func (*MeshGateway) SyncedConditionStatus

func (in *MeshGateway) SyncedConditionStatus() corev1.ConditionStatus

func (*MeshGateway) Validate

func (in *MeshGateway) Validate(tenancy common.ConsulTenancyConfig) error

type MeshGatewayList

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

MeshGatewayList contains a list of MeshGateway.

func (*MeshGatewayList) DeepCopy

func (in *MeshGatewayList) DeepCopy() *MeshGatewayList

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

func (*MeshGatewayList) DeepCopyInto

func (in *MeshGatewayList) DeepCopyInto(out *MeshGatewayList)

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

func (*MeshGatewayList) DeepCopyObject

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

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

func (*MeshGatewayList) ReconcileRequests

func (in *MeshGatewayList) ReconcileRequests() []reconcile.Request

type ParametersReference

type ParametersReference struct {
	// The Kubernetes Group that the referred object belongs to
	Group string `json:"group,omitempty"`

	// The Kubernetes Kind that the referred object is
	Kind string `json:"kind,omitempty"`

	// The Name of the referred object
	Name string `json:"name"`

	// The kubernetes namespace that the referred object is in
	Namespace *string `json:"namespace,omitempty"`
}

func (*ParametersReference) DeepCopy

func (in *ParametersReference) DeepCopy() *ParametersReference

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

func (*ParametersReference) DeepCopyInto

func (in *ParametersReference) DeepCopyInto(out *ParametersReference)

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

type ProxyConfiguration

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

	Spec   pbmesh.ProxyConfiguration `json:"spec,omitempty"`
	Status `json:"status,omitempty"`
}

ProxyConfiguration is the Schema for the TCP Routes API +kubebuilder:printcolumn:name="Synced",type="string",JSONPath=".status.conditions[?(@.type==\"Synced\")].status",description="The sync status of the resource with Consul" +kubebuilder:printcolumn:name="Last Synced",type="date",JSONPath=".status.lastSyncedTime",description="The last successful synced time of the resource with Consul" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description="The age of the resource" +kubebuilder:resource:shortName="proxy-configuration"

func (*ProxyConfiguration) AddFinalizer

func (in *ProxyConfiguration) AddFinalizer(f string)

func (*ProxyConfiguration) DeepCopy

func (in *ProxyConfiguration) DeepCopy() *ProxyConfiguration

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

func (*ProxyConfiguration) DeepCopyInto

func (in *ProxyConfiguration) DeepCopyInto(out *ProxyConfiguration)

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

func (*ProxyConfiguration) DeepCopyObject

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

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

func (*ProxyConfiguration) DefaultNamespaceFields

func (in *ProxyConfiguration) DefaultNamespaceFields(tenancy common.ConsulTenancyConfig)

DefaultNamespaceFields is required as part of the common.MeshConfig interface.

func (*ProxyConfiguration) Finalizers

func (in *ProxyConfiguration) Finalizers() []string

func (*ProxyConfiguration) KubeKind

func (in *ProxyConfiguration) KubeKind() string

func (*ProxyConfiguration) KubernetesName

func (in *ProxyConfiguration) KubernetesName() string

func (*ProxyConfiguration) MatchesConsul

func (in *ProxyConfiguration) MatchesConsul(candidate *pbresource.Resource, namespace, partition string) bool

func (*ProxyConfiguration) RemoveFinalizer

func (in *ProxyConfiguration) RemoveFinalizer(f string)

func (*ProxyConfiguration) Resource

func (in *ProxyConfiguration) Resource(namespace, partition string) *pbresource.Resource

func (*ProxyConfiguration) ResourceID

func (in *ProxyConfiguration) ResourceID(namespace, partition string) *pbresource.ID

func (*ProxyConfiguration) SetLastSyncedTime

func (in *ProxyConfiguration) SetLastSyncedTime(time *metav1.Time)

func (*ProxyConfiguration) SetSyncedCondition

func (in *ProxyConfiguration) SetSyncedCondition(status corev1.ConditionStatus, reason, message string)

func (*ProxyConfiguration) SyncedCondition

func (in *ProxyConfiguration) SyncedCondition() (status corev1.ConditionStatus, reason, message string)

func (*ProxyConfiguration) SyncedConditionStatus

func (in *ProxyConfiguration) SyncedConditionStatus() corev1.ConditionStatus

func (*ProxyConfiguration) Validate

type ProxyConfigurationList

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

ProxyConfigurationList contains a list of ProxyConfiguration.

func (*ProxyConfigurationList) DeepCopy

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

func (*ProxyConfigurationList) DeepCopyInto

func (in *ProxyConfigurationList) DeepCopyInto(out *ProxyConfigurationList)

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

func (*ProxyConfigurationList) DeepCopyObject

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

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

type ProxyConfigurationWebhook

type ProxyConfigurationWebhook struct {
	Logger logr.Logger

	// ConsulTenancyConfig contains the injector's namespace and partition configuration.
	ConsulTenancyConfig common.ConsulTenancyConfig

	client.Client
	// contains filtered or unexported fields
}

func (*ProxyConfigurationWebhook) Handle

func (*ProxyConfigurationWebhook) InjectDecoder

func (v *ProxyConfigurationWebhook) InjectDecoder(d *admission.Decoder) error

func (*ProxyConfigurationWebhook) List

type Status

type Status struct {
	// Conditions indicate the latest available observations of a resource's current state.
	// +optional
	// +patchMergeKey=type
	// +patchStrategy=merge
	Conditions Conditions `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`

	// LastSyncedTime is the last time the resource successfully synced with Consul.
	// +optional
	LastSyncedTime *metav1.Time `json:"lastSyncedTime,omitempty" description:"last time the condition transitioned from one status to another"`
}

+k8s:deepcopy-gen=true +k8s:openapi-gen=true

func (*Status) DeepCopy

func (in *Status) DeepCopy() *Status

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

func (*Status) DeepCopyInto

func (in *Status) DeepCopyInto(out *Status)

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

func (*Status) GetCondition

func (s *Status) GetCondition(t ConditionType) *Condition

type TCPRoute

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

	Spec   pbmesh.TCPRoute `json:"spec,omitempty"`
	Status `json:"status,omitempty"`
}

TCPRoute is the Schema for the TCP Route API +kubebuilder:printcolumn:name="Synced",type="string",JSONPath=".status.conditions[?(@.type==\"Synced\")].status",description="The sync status of the resource with Consul" +kubebuilder:printcolumn:name="Last Synced",type="date",JSONPath=".status.lastSyncedTime",description="The last successful synced time of the resource with Consul" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description="The age of the resource" +kubebuilder:resource:shortName="tcp-route"

func (*TCPRoute) AddFinalizer

func (in *TCPRoute) AddFinalizer(f string)

func (*TCPRoute) DeepCopy

func (in *TCPRoute) DeepCopy() *TCPRoute

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

func (*TCPRoute) DeepCopyInto

func (in *TCPRoute) DeepCopyInto(out *TCPRoute)

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

func (*TCPRoute) DeepCopyObject

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

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

func (*TCPRoute) DefaultNamespaceFields

func (in *TCPRoute) DefaultNamespaceFields(tenancy common.ConsulTenancyConfig)

DefaultNamespaceFields is required as part of the common.MeshConfig interface.

func (*TCPRoute) Finalizers

func (in *TCPRoute) Finalizers() []string

func (*TCPRoute) KubeKind

func (in *TCPRoute) KubeKind() string

func (*TCPRoute) KubernetesName

func (in *TCPRoute) KubernetesName() string

func (*TCPRoute) MatchesConsul

func (in *TCPRoute) MatchesConsul(candidate *pbresource.Resource, namespace, partition string) bool

func (*TCPRoute) RemoveFinalizer

func (in *TCPRoute) RemoveFinalizer(f string)

func (*TCPRoute) Resource

func (in *TCPRoute) Resource(namespace, partition string) *pbresource.Resource

func (*TCPRoute) ResourceID

func (in *TCPRoute) ResourceID(namespace, partition string) *pbresource.ID

func (*TCPRoute) SetLastSyncedTime

func (in *TCPRoute) SetLastSyncedTime(time *metav1.Time)

func (*TCPRoute) SetSyncedCondition

func (in *TCPRoute) SetSyncedCondition(status corev1.ConditionStatus, reason, message string)

func (*TCPRoute) SyncedCondition

func (in *TCPRoute) SyncedCondition() (status corev1.ConditionStatus, reason, message string)

func (*TCPRoute) SyncedConditionStatus

func (in *TCPRoute) SyncedConditionStatus() corev1.ConditionStatus

func (*TCPRoute) Validate

func (in *TCPRoute) Validate(tenancy common.ConsulTenancyConfig) error

type TCPRouteList

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

TCPRouteList contains a list of TCPRoute.

func (*TCPRouteList) DeepCopy

func (in *TCPRouteList) DeepCopy() *TCPRouteList

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

func (*TCPRouteList) DeepCopyInto

func (in *TCPRouteList) DeepCopyInto(out *TCPRouteList)

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

func (*TCPRouteList) DeepCopyObject

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

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

type TCPRouteWebhook

type TCPRouteWebhook struct {
	Logger logr.Logger

	// ConsulTenancyConfig contains the injector's namespace and partition configuration.
	ConsulTenancyConfig common.ConsulTenancyConfig

	client.Client
	// contains filtered or unexported fields
}

func (*TCPRouteWebhook) Handle

func (*TCPRouteWebhook) InjectDecoder

func (v *TCPRouteWebhook) InjectDecoder(d *admission.Decoder) error

func (*TCPRouteWebhook) List

Jump to

Keyboard shortcuts

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