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
- Variables
- type APIGateway
- func (in *APIGateway) AddFinalizer(f string)
- func (in *APIGateway) DeepCopy() *APIGateway
- func (in *APIGateway) DeepCopyInto(out *APIGateway)
- func (in *APIGateway) DeepCopyObject() runtime.Object
- func (in *APIGateway) DefaultNamespaceFields(tenancy common.ConsulTenancyConfig)
- func (in *APIGateway) Finalizers() []string
- func (in *APIGateway) KubeKind() string
- func (in *APIGateway) KubernetesName() string
- func (in *APIGateway) ListenersToContainerPorts(_ int32, _ int32) []corev1.ContainerPort
- func (in *APIGateway) ListenersToServicePorts(portModifier int32) []corev1.ServicePort
- func (in *APIGateway) MatchesConsul(candidate *pbresource.Resource, namespace, partition string) bool
- func (in *APIGateway) RemoveFinalizer(f string)
- func (in *APIGateway) Resource(namespace, partition string) *pbresource.Resource
- func (in *APIGateway) ResourceID(namespace, partition string) *pbresource.ID
- func (in *APIGateway) SetLastSyncedTime(time *metav1.Time)
- func (in *APIGateway) SetSyncedCondition(status corev1.ConditionStatus, reason, message string)
- func (in *APIGateway) SyncedCondition() (status corev1.ConditionStatus, reason, message string)
- func (in *APIGateway) SyncedConditionStatus() corev1.ConditionStatus
- func (in *APIGateway) Validate(tenancy common.ConsulTenancyConfig) error
- type APIGatewayList
- type APIGatewayStatus
- type Condition
- type ConditionType
- type Conditions
- type GRPCRoute
- func (in *GRPCRoute) AddFinalizer(f string)
- func (in *GRPCRoute) DeepCopy() *GRPCRoute
- func (in *GRPCRoute) DeepCopyInto(out *GRPCRoute)
- func (in *GRPCRoute) DeepCopyObject() runtime.Object
- func (in *GRPCRoute) DefaultNamespaceFields(tenancy common.ConsulTenancyConfig)
- func (in *GRPCRoute) Finalizers() []string
- func (in *GRPCRoute) KubeKind() string
- func (in *GRPCRoute) KubernetesName() string
- func (in *GRPCRoute) MatchesConsul(candidate *pbresource.Resource, namespace, partition string) bool
- func (in *GRPCRoute) RemoveFinalizer(f string)
- func (in *GRPCRoute) Resource(namespace, partition string) *pbresource.Resource
- func (in *GRPCRoute) ResourceID(namespace, partition string) *pbresource.ID
- func (in *GRPCRoute) SetLastSyncedTime(time *metav1.Time)
- func (in *GRPCRoute) SetSyncedCondition(status corev1.ConditionStatus, reason, message string)
- func (in *GRPCRoute) SyncedCondition() (status corev1.ConditionStatus, reason, message string)
- func (in *GRPCRoute) SyncedConditionStatus() corev1.ConditionStatus
- func (in *GRPCRoute) Validate(tenancy common.ConsulTenancyConfig) error
- type GRPCRouteList
- type GRPCRouteWebhook
- type GatewayAddress
- type GatewayClass
- type GatewayClassAnnotationsAndLabels
- type GatewayClassAnnotationsLabelsConfig
- type GatewayClassConfig
- type GatewayClassConfigList
- type GatewayClassConfigSpec
- type GatewayClassConsulConfig
- type GatewayClassConsulLoggingConfig
- type GatewayClassContainerConfig
- type GatewayClassDeploymentConfig
- type GatewayClassInitContainerConfig
- type GatewayClassList
- type GatewayClassReplicasConfig
- type GatewayClassRoleBindingConfig
- type GatewayClassRoleConfig
- type GatewayClassServiceAccountConfig
- type GatewayClassServiceConfig
- type GatewayClassSpec
- type HTTPRoute
- func (in *HTTPRoute) AddFinalizer(f string)
- func (in *HTTPRoute) DeepCopy() *HTTPRoute
- func (in *HTTPRoute) DeepCopyInto(out *HTTPRoute)
- func (in *HTTPRoute) DeepCopyObject() runtime.Object
- func (in *HTTPRoute) DefaultNamespaceFields(tenancy common.ConsulTenancyConfig)
- func (in *HTTPRoute) Finalizers() []string
- func (in *HTTPRoute) KubeKind() string
- func (in *HTTPRoute) KubernetesName() string
- func (in *HTTPRoute) MatchesConsul(candidate *pbresource.Resource, namespace, partition string) bool
- func (in *HTTPRoute) RemoveFinalizer(f string)
- func (in *HTTPRoute) Resource(namespace, partition string) *pbresource.Resource
- func (in *HTTPRoute) ResourceID(namespace, partition string) *pbresource.ID
- func (in *HTTPRoute) SetLastSyncedTime(time *metav1.Time)
- func (in *HTTPRoute) SetSyncedCondition(status corev1.ConditionStatus, reason, message string)
- func (in *HTTPRoute) SyncedCondition() (status corev1.ConditionStatus, reason, message string)
- func (in *HTTPRoute) SyncedConditionStatus() corev1.ConditionStatus
- func (in *HTTPRoute) Validate(tenancy common.ConsulTenancyConfig) error
- type HTTPRouteList
- type HTTPRouteWebhook
- type ListenerStatus
- type MeshConfiguration
- func (in *MeshConfiguration) AddFinalizer(f string)
- func (in *MeshConfiguration) DeepCopy() *MeshConfiguration
- func (in *MeshConfiguration) DeepCopyInto(out *MeshConfiguration)
- func (in *MeshConfiguration) DeepCopyObject() runtime.Object
- func (in *MeshConfiguration) DefaultNamespaceFields(tenancy common.ConsulTenancyConfig)
- func (in *MeshConfiguration) Finalizers() []string
- func (in *MeshConfiguration) KubeKind() string
- func (in *MeshConfiguration) KubernetesName() string
- func (in *MeshConfiguration) MatchesConsul(candidate *pbresource.Resource, _, partition string) bool
- func (in *MeshConfiguration) RemoveFinalizer(f string)
- func (in *MeshConfiguration) Resource(_, partition string) *pbresource.Resource
- func (in *MeshConfiguration) ResourceID(_, partition string) *pbresource.ID
- func (in *MeshConfiguration) SetLastSyncedTime(time *metav1.Time)
- func (in *MeshConfiguration) SetSyncedCondition(status corev1.ConditionStatus, reason, message string)
- func (in *MeshConfiguration) SyncedCondition() (status corev1.ConditionStatus, reason, message string)
- func (in *MeshConfiguration) SyncedConditionStatus() corev1.ConditionStatus
- func (in *MeshConfiguration) Validate(tenancy common.ConsulTenancyConfig) error
- type MeshConfigurationList
- type MeshGateway
- func (in *MeshGateway) AddFinalizer(f string)
- func (in *MeshGateway) DeepCopy() *MeshGateway
- func (in *MeshGateway) DeepCopyInto(out *MeshGateway)
- func (in *MeshGateway) DeepCopyObject() runtime.Object
- func (in *MeshGateway) DefaultNamespaceFields(tenancy common.ConsulTenancyConfig)
- func (in *MeshGateway) Finalizers() []string
- func (in *MeshGateway) KubeKind() string
- func (in *MeshGateway) KubernetesName() string
- func (in *MeshGateway) ListenersToContainerPorts(portModifier int32, hostPort int32) []corev1.ContainerPort
- func (in *MeshGateway) ListenersToServicePorts(portModifier int32) []corev1.ServicePort
- func (in *MeshGateway) MatchesConsul(candidate *pbresource.Resource, namespace, partition string) bool
- func (in *MeshGateway) RemoveFinalizer(f string)
- func (in *MeshGateway) Resource(namespace, partition string) *pbresource.Resource
- func (in *MeshGateway) ResourceID(_, partition string) *pbresource.ID
- func (in *MeshGateway) SetLastSyncedTime(time *metav1.Time)
- func (in *MeshGateway) SetSyncedCondition(status corev1.ConditionStatus, reason, message string)
- func (in *MeshGateway) SyncedCondition() (status corev1.ConditionStatus, reason, message string)
- func (in *MeshGateway) SyncedConditionStatus() corev1.ConditionStatus
- func (in *MeshGateway) Validate(tenancy common.ConsulTenancyConfig) error
- type MeshGatewayList
- type ParametersReference
- type ProxyConfiguration
- func (in *ProxyConfiguration) AddFinalizer(f string)
- func (in *ProxyConfiguration) DeepCopy() *ProxyConfiguration
- func (in *ProxyConfiguration) DeepCopyInto(out *ProxyConfiguration)
- func (in *ProxyConfiguration) DeepCopyObject() runtime.Object
- func (in *ProxyConfiguration) DefaultNamespaceFields(tenancy common.ConsulTenancyConfig)
- func (in *ProxyConfiguration) Finalizers() []string
- func (in *ProxyConfiguration) KubeKind() string
- func (in *ProxyConfiguration) KubernetesName() string
- func (in *ProxyConfiguration) MatchesConsul(candidate *pbresource.Resource, namespace, partition string) bool
- func (in *ProxyConfiguration) RemoveFinalizer(f string)
- func (in *ProxyConfiguration) Resource(namespace, partition string) *pbresource.Resource
- func (in *ProxyConfiguration) ResourceID(namespace, partition string) *pbresource.ID
- func (in *ProxyConfiguration) SetLastSyncedTime(time *metav1.Time)
- func (in *ProxyConfiguration) SetSyncedCondition(status corev1.ConditionStatus, reason, message string)
- func (in *ProxyConfiguration) SyncedCondition() (status corev1.ConditionStatus, reason, message string)
- func (in *ProxyConfiguration) SyncedConditionStatus() corev1.ConditionStatus
- func (in *ProxyConfiguration) Validate(_ common.ConsulTenancyConfig) error
- type ProxyConfigurationList
- type ProxyConfigurationWebhook
- type Status
- type TCPRoute
- func (in *TCPRoute) AddFinalizer(f string)
- func (in *TCPRoute) DeepCopy() *TCPRoute
- func (in *TCPRoute) DeepCopyInto(out *TCPRoute)
- func (in *TCPRoute) DeepCopyObject() runtime.Object
- func (in *TCPRoute) DefaultNamespaceFields(tenancy common.ConsulTenancyConfig)
- func (in *TCPRoute) Finalizers() []string
- func (in *TCPRoute) KubeKind() string
- func (in *TCPRoute) KubernetesName() string
- func (in *TCPRoute) MatchesConsul(candidate *pbresource.Resource, namespace, partition string) bool
- func (in *TCPRoute) RemoveFinalizer(f string)
- func (in *TCPRoute) Resource(namespace, partition string) *pbresource.Resource
- func (in *TCPRoute) ResourceID(namespace, partition string) *pbresource.ID
- func (in *TCPRoute) SetLastSyncedTime(time *metav1.Time)
- func (in *TCPRoute) SetSyncedCondition(status corev1.ConditionStatus, reason, message string)
- func (in *TCPRoute) SyncedCondition() (status corev1.ConditionStatus, reason, message string)
- func (in *TCPRoute) SyncedConditionStatus() corev1.ConditionStatus
- func (in *TCPRoute) Validate(tenancy common.ConsulTenancyConfig) error
- type TCPRouteList
- type TCPRouteWebhook
Constants ¶
const KindGatewayClass = "GatewayClass"
const KindGatewayClassConfig = "GatewayClassConfig"
Variables ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Condition.
func (*Condition) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
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 (*GRPCRoute) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GRPCRoute.
func (*GRPCRoute) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GRPCRoute) DeepCopyObject ¶
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 (*GRPCRoute) KubernetesName ¶
func (*GRPCRoute) MatchesConsul ¶
func (in *GRPCRoute) MatchesConsul(candidate *pbresource.Resource, namespace, partition string) bool
func (*GRPCRoute) RemoveFinalizer ¶
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 (*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
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) InjectDecoder ¶
func (v *GRPCRouteWebhook) InjectDecoder(d *admission.Decoder) error
func (*GRPCRouteWebhook) List ¶
func (v *GRPCRouteWebhook) List(ctx context.Context) ([]common.ConsulResource, error)
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 ¶
func (in *GatewayClassAnnotationsAndLabels) DeepCopy() *GatewayClassAnnotationsAndLabels
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GatewayClassAnnotationsAndLabels.
func (*GatewayClassAnnotationsAndLabels) DeepCopyInto ¶
func (in *GatewayClassAnnotationsAndLabels) DeepCopyInto(out *GatewayClassAnnotationsAndLabels)
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 ¶
func (in *GatewayClassAnnotationsLabelsConfig) DeepCopy() *GatewayClassAnnotationsLabelsConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GatewayClassAnnotationsLabelsConfig.
func (*GatewayClassAnnotationsLabelsConfig) DeepCopyInto ¶
func (in *GatewayClassAnnotationsLabelsConfig) DeepCopyInto(out *GatewayClassAnnotationsLabelsConfig)
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 ¶
func (in *GatewayClassConfigList) DeepCopy() *GatewayClassConfigList
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 ¶
func (in *GatewayClassConfigSpec) DeepCopy() *GatewayClassConfigSpec
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 ¶
func (in *GatewayClassConsulConfig) DeepCopy() *GatewayClassConsulConfig
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 ¶
func (in *GatewayClassConsulLoggingConfig) DeepCopy() *GatewayClassConsulLoggingConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GatewayClassConsulLoggingConfig.
func (*GatewayClassConsulLoggingConfig) DeepCopyInto ¶
func (in *GatewayClassConsulLoggingConfig) DeepCopyInto(out *GatewayClassConsulLoggingConfig)
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 ¶
func (in *GatewayClassContainerConfig) DeepCopy() *GatewayClassContainerConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GatewayClassContainerConfig.
func (*GatewayClassContainerConfig) DeepCopyInto ¶
func (in *GatewayClassContainerConfig) DeepCopyInto(out *GatewayClassContainerConfig)
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 ¶
func (in *GatewayClassDeploymentConfig) DeepCopy() *GatewayClassDeploymentConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GatewayClassDeploymentConfig.
func (*GatewayClassDeploymentConfig) DeepCopyInto ¶
func (in *GatewayClassDeploymentConfig) DeepCopyInto(out *GatewayClassDeploymentConfig)
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 ¶
func (in *GatewayClassInitContainerConfig) DeepCopy() *GatewayClassInitContainerConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GatewayClassInitContainerConfig.
func (*GatewayClassInitContainerConfig) DeepCopyInto ¶
func (in *GatewayClassInitContainerConfig) DeepCopyInto(out *GatewayClassInitContainerConfig)
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 ¶
func (in *GatewayClassReplicasConfig) DeepCopy() *GatewayClassReplicasConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GatewayClassReplicasConfig.
func (*GatewayClassReplicasConfig) DeepCopyInto ¶
func (in *GatewayClassReplicasConfig) DeepCopyInto(out *GatewayClassReplicasConfig)
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 ¶
func (in *GatewayClassRoleBindingConfig) DeepCopy() *GatewayClassRoleBindingConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GatewayClassRoleBindingConfig.
func (*GatewayClassRoleBindingConfig) DeepCopyInto ¶
func (in *GatewayClassRoleBindingConfig) DeepCopyInto(out *GatewayClassRoleBindingConfig)
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 ¶
func (in *GatewayClassRoleConfig) DeepCopy() *GatewayClassRoleConfig
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 ¶
func (in *GatewayClassServiceAccountConfig) DeepCopy() *GatewayClassServiceAccountConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GatewayClassServiceAccountConfig.
func (*GatewayClassServiceAccountConfig) DeepCopyInto ¶
func (in *GatewayClassServiceAccountConfig) DeepCopyInto(out *GatewayClassServiceAccountConfig)
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 ¶
func (in *GatewayClassServiceConfig) DeepCopy() *GatewayClassServiceConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GatewayClassServiceConfig.
func (*GatewayClassServiceConfig) DeepCopyInto ¶
func (in *GatewayClassServiceConfig) DeepCopyInto(out *GatewayClassServiceConfig)
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 (*HTTPRoute) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPRoute.
func (*HTTPRoute) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*HTTPRoute) DeepCopyObject ¶
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 (*HTTPRoute) KubernetesName ¶
func (*HTTPRoute) MatchesConsul ¶
func (in *HTTPRoute) MatchesConsul(candidate *pbresource.Resource, namespace, partition string) bool
func (*HTTPRoute) RemoveFinalizer ¶
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 (*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
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) InjectDecoder ¶
func (v *HTTPRouteWebhook) InjectDecoder(d *admission.Decoder) error
func (*HTTPRouteWebhook) List ¶
func (v *HTTPRouteWebhook) List(ctx context.Context) ([]common.ConsulResource, error)
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 ¶
func (in *MeshConfigurationList) DeepCopy() *MeshConfigurationList
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 ¶
func (in *ProxyConfiguration) Validate(_ common.ConsulTenancyConfig) error
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 ¶
func (in *ProxyConfigurationList) DeepCopy() *ProxyConfigurationList
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) InjectDecoder ¶
func (v *ProxyConfigurationWebhook) InjectDecoder(d *admission.Decoder) error
func (*ProxyConfigurationWebhook) List ¶
func (v *ProxyConfigurationWebhook) List(ctx context.Context) ([]common.ConsulResource, error)
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Status.
func (*Status) DeepCopyInto ¶
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 (*TCPRoute) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TCPRoute.
func (*TCPRoute) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TCPRoute) DeepCopyObject ¶
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 (*TCPRoute) KubernetesName ¶
func (*TCPRoute) MatchesConsul ¶
func (in *TCPRoute) MatchesConsul(candidate *pbresource.Resource, namespace, partition string) bool
func (*TCPRoute) RemoveFinalizer ¶
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 (*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
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) InjectDecoder ¶
func (v *TCPRouteWebhook) InjectDecoder(d *admission.Decoder) error
func (*TCPRouteWebhook) List ¶
func (v *TCPRouteWebhook) List(ctx context.Context) ([]common.ConsulResource, error)
Source Files ¶
- api_gateway_types.go
- gateway_class_config_types.go
- gateway_class_types.go
- grpc_route_types.go
- grpc_route_webhook.go
- http_route_types.go
- http_route_webhook.go
- mesh_configuration_types.go
- mesh_gateway_types.go
- mesh_groupversion_info.go
- proxy_configuration_route_webhook.go
- proxy_configuration_types.go
- shared_types.go
- status.go
- tcp_route_types.go
- tcp_route_webhook.go
- zz_generated.deepcopy.go