Last active
October 31, 2019 08:21
-
-
Save orcunuso/90e9b1eda7af8f2d12fa4805b6298687 to your computer and use it in GitHub Desktop.
CustomResourceDefinition CKA
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
apiVersion: apiextensions.k8s.io/v1beta1 | |
kind: CustomResourceDefinition | |
metadata: | |
name: certifications.k8s.orcunuso.io | |
spec: | |
additionalPrinterColumns: | |
- name: Owner | |
description: Owner of the certification | |
JSONPath: .spec.owner | |
type: string | |
- name: Type | |
JSONPath: .spec.type | |
type: string | |
- name: Score | |
JSONPath: .spec.score | |
type: integer | |
- name: ExpireDate | |
JSONPath: .spec.expireDate | |
type: string | |
- name: Age | |
JSONPath: .metadata.creationTimestamp | |
type: date | |
group: k8s.orcunuso.io | |
names: | |
kind: Certification | |
listKind: CertificationList | |
plural: certifications | |
singular: certification | |
shortNames: | |
- cka | |
scope: Cluster | |
version: v1alpha1 | |
versions: | |
- name: v1alpha1 | |
served: true | |
storage: true | |
validation: | |
openAPIV3Schema: | |
properties: | |
spec: | |
description: Spec for Certifications | |
required: ["owner","type","score"] | |
type: object | |
properties: | |
owner: | |
description: Owner of the certification | |
type: string | |
type: | |
description: Certification type, CKA or CKAD | |
type: string | |
pattern: 'CKA$|CKAD$' | |
score: | |
description: The exam score of the certificate owner | |
type: integer | |
minimum: 74 | |
maximum: 100 | |
expireDate: | |
description: The expiration date of the certification | |
type: string | |
fooBar: | |
description: Just an array example | |
type: array | |
items: | |
type: string |
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
apiVersion: k8s.orcunuso.io/v1alpha1 | |
kind: Certification | |
metadata: | |
name: orcunuso-cka | |
spec: | |
owner: 'Ozan Orcunus' | |
type: 'CKA' | |
score: 92 | |
expireDate: '26/09/2022' | |
fooBar: ['string-foo','string-bar'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment