155 lines
6.1 KiB
YAML
155 lines
6.1 KiB
YAML
{{- if and .Values.connectInject.enabled .Values.global.peering.enabled }}
|
|
---
|
|
apiVersion: apiextensions.k8s.io/v1
|
|
kind: CustomResourceDefinition
|
|
metadata:
|
|
annotations:
|
|
controller-gen.kubebuilder.io/version: v0.8.0
|
|
creationTimestamp: null
|
|
name: peeringacceptors.consul.hashicorp.com
|
|
labels:
|
|
app: {{ template "consul.name" . }}
|
|
chart: {{ template "consul.chart" . }}
|
|
heritage: {{ .Release.Service }}
|
|
release: {{ .Release.Name }}
|
|
component: crd
|
|
spec:
|
|
group: consul.hashicorp.com
|
|
names:
|
|
kind: PeeringAcceptor
|
|
listKind: PeeringAcceptorList
|
|
plural: peeringacceptors
|
|
shortNames:
|
|
- peering-acceptor
|
|
singular: peeringacceptor
|
|
scope: Namespaced
|
|
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: v1alpha1
|
|
schema:
|
|
openAPIV3Schema:
|
|
description: PeeringAcceptor is the Schema for the peeringacceptors API.
|
|
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:
|
|
description: PeeringAcceptorSpec defines the desired state of PeeringAcceptor.
|
|
properties:
|
|
peer:
|
|
description: Peer describes the information needed to create a peering.
|
|
properties:
|
|
secret:
|
|
description: Secret describes how to store the generated peering
|
|
token.
|
|
properties:
|
|
backend:
|
|
description: 'Backend is where the generated secret is stored.
|
|
Currently supports the value: "kubernetes".'
|
|
type: string
|
|
key:
|
|
description: Key is the key of the secret generated.
|
|
type: string
|
|
name:
|
|
description: Name is the name of the secret generated.
|
|
type: string
|
|
type: object
|
|
type: object
|
|
required:
|
|
- peer
|
|
type: object
|
|
status:
|
|
description: PeeringAcceptorStatus defines the observed state of PeeringAcceptor.
|
|
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
|
|
latestPeeringVersion:
|
|
description: LatestPeeringVersion is the latest version of the resource
|
|
that was reconciled.
|
|
format: int64
|
|
type: integer
|
|
secret:
|
|
description: SecretRef shows the status of the secret.
|
|
properties:
|
|
backend:
|
|
description: 'Backend is where the generated secret is stored.
|
|
Currently supports the value: "kubernetes".'
|
|
type: string
|
|
key:
|
|
description: Key is the key of the secret generated.
|
|
type: string
|
|
name:
|
|
description: Name is the name of the secret generated.
|
|
type: string
|
|
resourceVersion:
|
|
description: ResourceVersion is the resource version for the secret.
|
|
type: string
|
|
type: object
|
|
type: object
|
|
type: object
|
|
served: true
|
|
storage: true
|
|
subresources:
|
|
status: {}
|
|
status:
|
|
acceptedNames:
|
|
kind: ""
|
|
plural: ""
|
|
conditions: []
|
|
storedVersions: []
|
|
{{- end }}
|