This repository has been archived by the owner on Aug 25, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 385
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add a CRD for the cluster resource. This additionally adds a webhook for the same as well. This is a CRD that supports the Transparent Proxy feature. - Only support the mutating webhook version v1, as v1beta1 is deprecated in the newer Kubernetes versions and v1 is supported in Kubernetes 1.16+ which are the versions we support
- Loading branch information
Ashwin Venkatesh
committed
Apr 15, 2021
1 parent
6c3b2f6
commit 0bc8ba9
Showing
7 changed files
with
278 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
{{- if .Values.controller.enabled }} | ||
--- | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
annotations: | ||
controller-gen.kubebuilder.io/version: v0.5.0 | ||
creationTimestamp: null | ||
name: clusters.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: Cluster | ||
listKind: ClusterList | ||
plural: clusters | ||
singular: cluster | ||
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: Cluster is the Schema for the clusters 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: ClusterSpec defines the desired state of Cluster | ||
properties: | ||
transparentProxy: | ||
properties: | ||
catalogDestinationsOnly: | ||
type: boolean | ||
type: object | ||
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: {} | ||
status: | ||
acceptedNames: | ||
kind: "" | ||
plural: "" | ||
conditions: [] | ||
storedVersions: [] | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.