This repository has been archived by the owner on Sep 14, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade CRDs from v1beta1 to v1 for K8s 1.16+; keep remarks for K8s 1.15
- Loading branch information
Showing
4 changed files
with
136 additions
and
31 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,39 @@ | ||
# A demo CRD for the Kopf example operators. | ||
# Use it with Kubernetes 1.15 and below. | ||
# For Kubernetes 1.16 and above, use crd.yaml. | ||
apiVersion: apiextensions.k8s.io/v1beta1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: kopfexamples.zalando.org | ||
spec: | ||
scope: Namespaced | ||
group: zalando.org | ||
versions: | ||
- name: v1 | ||
served: true | ||
storage: true | ||
names: | ||
kind: KopfExample | ||
plural: kopfexamples | ||
singular: kopfexample | ||
shortNames: | ||
- kopfexes | ||
- kopfex | ||
- kexes | ||
- kex | ||
additionalPrinterColumns: | ||
- name: Duration | ||
type: string | ||
priority: 0 | ||
JSONPath: .spec.duration | ||
description: For how long the pod should sleep. | ||
- name: Children | ||
type: string | ||
priority: 0 | ||
JSONPath: .status.create_fn.children | ||
description: The children pods created. | ||
- name: Message | ||
type: string | ||
priority: 0 | ||
JSONPath: .status.create_fn.message | ||
description: As returned from the handler (sometimes). |
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