run few crd version on one k8s
@@ -16,8 +16,10 @@ spec:
versions:
- name: v1
storage: true
+ served: true
- name: v1alpha1
storage: false
+ served: true
additionalPrinterColumns:
- name: Endpoint
type: string
@@ -54,7 +56,10 @@ spec:
- pxc-backup
- pxc-backups
scope: Namespaced
- version: v1
+ versions:
+ - name: v1
+ storage: true
+ served: true
additionalPrinterColumns:
- name: Cluster
type: string
@@ -97,7 +102,10 @@ spec:
- pxc-restore
- pxc-restores
scope: Namespaced
- version: v1
+ versions:
+ - name: v1
+ storage: true
+ served: true
additionalPrinterColumns:
- name: Cluster
type: string
@@ -116,3 +124,45 @@ spec:
JSONPath: .metadata.creationTimestamp
subresources:
status: {}
+---
+apiVersion: apiextensions.k8s.io/v1beta1
+kind: CustomResourceDefinition
+metadata:
+ name: perconaxtradbbackups.pxc.percona.com
+spec:
+ group: pxc.percona.com
+ names:
+ kind: PerconaXtraDBBackup
+ listKind: PerconaXtraDBBackupList
+ plural: perconaxtradbbackups
+ singular: perconaxtradbbackup
+ shortNames: []
+ scope: Namespaced
+ versions:
+ - name: v1alpha1
+ storage: true
+ served: true
+ additionalPrinterColumns:
+ - name: Cluster
+ type: string
+ description: Cluster name
+ JSONPath: .spec.pxcCluster
+ - name: Storage
+ type: string
+ description: Storage name from pxc spec
+ JSONPath: .status.storageName
+ - name: Destination
+ type: string
+ description: Backup destination
+ JSONPath: .status.destination
+ - name: Status
+ type: string
+ description: Job status
+ JSONPath: .status.state
+ - name: Completed
+ description: Completed time
+ type: date
+ JSONPath: .status.completed
+ - name: Age
+ type: date
+ JSONPath: .metadata.creationTimestamp
