diff --git a/docs/example/config/crd/upgrade.openeuler.org_os.yaml b/docs/example/config/crd/upgrade.openeuler.org_os.yaml index 3bb1333d6973ce2f6a0513ffb5ff76b03bae1ceb..2dd822e98c1e3854be10bb1dd624b3b032a3c087 100644 --- a/docs/example/config/crd/upgrade.openeuler.org_os.yaml +++ b/docs/example/config/crd/upgrade.openeuler.org_os.yaml @@ -17,6 +17,19 @@ spec: scope: Namespaced versions: - name: v1alpha1 + additionalPrinterColumns: + - name: OS VERSION + jsonPath: .spec.osversion + type: string + description: The version of OS + - name: SYSCONFIG VERSION + type: string + jsonPath: .spec.sysconfigs.version + description: The version of sysconfig + - name: UPGRADECONFIG VERSION + type: string + jsonPath: .spec.upgradeconfigs.version + description: The version of upgradeconfig schema: openAPIV3Schema: description: OS is a specification for OS in the cluster diff --git a/docs/example/config/crd/upgrade.openeuler.org_osinstances.yaml b/docs/example/config/crd/upgrade.openeuler.org_osinstances.yaml index 3fa70c072da573635c1abc963799aa03026087b0..df9119b45633d30c6b44ae3b4bc87a6181400358 100644 --- a/docs/example/config/crd/upgrade.openeuler.org_osinstances.yaml +++ b/docs/example/config/crd/upgrade.openeuler.org_osinstances.yaml @@ -17,6 +17,27 @@ spec: scope: Namespaced versions: - name: v1alpha1 + additionalPrinterColumns: + - name: NODESTATUS + type: string + jsonPath: .spec.nodestatus + description: The status of node + - name: SYSCONFIG-VERSION-CURRENT + type: string + jsonPath: .status.sysconfigs.version + description: The current status of sysconfig + - name: SYSCONFIG-VERSION-DESIRED + type: string + jsonPath: .spec.sysconfigs.version + description: The expected version of sysconfig + - name: UPGRADECONFIG-VERSION-CURRENT + type: string + jsonPath: .status.upgradeconfigs.version + description: The current version of upgradeconfig + - name: UPGRADECONFIG-VERSION-DESIRED + type: string + jsonPath: .spec.upgradeconfigs.version + description: The expected version of upgradeconfig schema: openAPIV3Schema: description: OSInstance defines some infomation of a node