Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
240 changes: 240 additions & 0 deletions charts/consul/templates/crd-apigateways.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,240 @@
{{- if .Values.connectInject.enabled }}
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.12.1
labels:
app: {{ template "consul.name" . }}
chart: {{ template "consul.chart" . }}
heritage: {{ .Release.Service }}
release: {{ .Release.Name }}
component: crd
name: apigateways.mesh.consul.hashicorp.com
spec:
group: mesh.consul.hashicorp.com
names:
kind: APIGateway
listKind: APIGatewayList
plural: apigateways
singular: apigateway
scope: Cluster
versions:
- additionalPrinterColumns:
- description: The sync status of the resource with Consul
jsonPath: .status.conditions[?(@.type=="Synced")].status
name: Synced
type: string
- description: The last successful synced time of the resource with Consul
jsonPath: .status.lastSyncedTime
name: Last Synced
type: date
- description: The age of the resource
jsonPath: .metadata.creationTimestamp
name: Age
type: date
name: v2beta1
schema:
openAPIV3Schema:
description: APIGateway is the Schema for the API Gateway
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
properties:
gatewayClassName:
description: GatewayClassName is the name of the GatewayClass used
by the APIGateway
type: string
listeners:
items:
properties:
hostname:
description: Hostname is the host name that a listener should
be bound to, if unspecified, the listener accepts requests
for all hostnames.
type: string
name:
description: Name is the name of the listener in a given gateway.
This must be unique within a gateway.
type: string
port:
format: int32
maximum: 65535
minimum: 0
type: integer
protocol:
description: Protocol is the protocol that a listener should
use, it must either be "http" or "tcp"
type: string
tls:
description: TLS is the TLS settings for the listener.
properties:
certificates:
description: Certificates is a set of references to certificates
that a gateway listener uses for TLS termination.
items:
description: Reference identifies which resource a condition
relates to, when it is not the core resource itself.
properties:
name:
description: Name is the user-given name of the resource
(e.g. the "billing" service).
type: string
section:
description: Section identifies which part of the
resource the condition relates to.
type: string
tenancy:
description: Tenancy identifies the tenancy units
(i.e. partition, namespace) in which the resource
resides.
properties:
namespace:
description: "Namespace further isolates resources
within a partition. https://developer.hashicorp.com/consul/docs/enterprise/namespaces
\n When using the List and WatchList endpoints,
provide the wildcard value \"*\" to list resources
across all namespaces."
type: string
partition:
description: "Partition is the topmost administrative
boundary within a cluster. https://developer.hashicorp.com/consul/docs/enterprise/admin-partitions
\n When using the List and WatchList endpoints,
provide the wildcard value \"*\" to list resources
across all partitions."
type: string
peerName:
description: "PeerName identifies which peer the
resource is imported from. https://developer.hashicorp.com/consul/docs/connect/cluster-peering
\n When using the List and WatchList endpoints,
provide the wildcard value \"*\" to list resources
across all peers."
type: string
type: object
type:
description: Type identifies the resource's type.
properties:
group:
description: Group describes the area of functionality
to which this resource type relates (e.g. "catalog",
"authorization").
type: string
groupVersion:
description: GroupVersion is incremented when
sweeping or backward-incompatible changes are
made to the group's resource types.
type: string
kind:
description: Kind identifies the specific resource
type within the group.
type: string
type: object
type: object
type: array
tlsParameters:
description: TLSParameters contains optional configuration
for running TLS termination.
properties:
cipherSuites:
items:
enum:
- TLS_CIPHER_SUITE_ECDHE_ECDSA_AES128_GCM_SHA256
- TLS_CIPHER_SUITE_AES256_SHA
- TLS_CIPHER_SUITE_ECDHE_ECDSA_CHACHA20_POLY1305
- TLS_CIPHER_SUITE_ECDHE_RSA_AES128_GCM_SHA256
- TLS_CIPHER_SUITE_ECDHE_RSA_CHACHA20_POLY1305
- TLS_CIPHER_SUITE_ECDHE_ECDSA_AES128_SHA
- TLS_CIPHER_SUITE_ECDHE_RSA_AES128_SHA
- TLS_CIPHER_SUITE_AES128_GCM_SHA256
- TLS_CIPHER_SUITE_AES128_SHA
- TLS_CIPHER_SUITE_ECDHE_ECDSA_AES256_GCM_SHA384
- TLS_CIPHER_SUITE_ECDHE_RSA_AES256_GCM_SHA384
- TLS_CIPHER_SUITE_ECDHE_ECDSA_AES256_SHA
- TLS_CIPHER_SUITE_ECDHE_RSA_AES256_SHA
- TLS_CIPHER_SUITE_AES256_GCM_SHA384
format: int32
type: string
type: array
maxVersion:
enum:
- TLS_VERSION_AUTO
- TLS_VERSION_1_0
- TLS_VERSION_1_1
- TLS_VERSION_1_2
- TLS_VERSION_1_3
- TLS_VERSION_INVALID
- TLS_VERSION_UNSPECIFIED
format: int32
type: string
minVersion:
enum:
- TLS_VERSION_AUTO
- TLS_VERSION_1_0
- TLS_VERSION_1_1
- TLS_VERSION_1_2
- TLS_VERSION_1_3
- TLS_VERSION_INVALID
- TLS_VERSION_UNSPECIFIED
format: int32
type: string
type: object
type: object
type: object
minItems: 1
type: array
type: object
status:
properties:
conditions:
description: Conditions indicate the latest available observations
of a resource's current state.
items:
description: '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'
properties:
lastTransitionTime:
description: LastTransitionTime is the last time the condition
transitioned from one status to another.
format: date-time
type: string
message:
description: A human readable message indicating details about
the transition.
type: string
reason:
description: The reason for the condition's last transition.
type: string
status:
description: Status of the condition, one of True, False, Unknown.
type: string
type:
description: Type of condition.
type: string
required:
- status
- type
type: object
type: array
lastSyncedTime:
description: LastSyncedTime is the last time the resource successfully
synced with Consul.
format: date-time
type: string
type: object
type: object
served: true
storage: true
subresources:
status: {}
{{- end }}
Loading