فهرست منبع

Update OLM CRDs to latest

Evan Cordell 6 سال پیش
والد
کامیت
c08508d679
2فایلهای تغییر یافته به همراه34 افزوده شده و 4 حذف شده
  1. 7 4
      roles/olm/files/catalogsource.crd.yaml
  2. 27 0
      roles/olm/files/clusterserviceversion.crd.yaml

+ 7 - 4
roles/olm/files/catalogsource.crd.yaml

@@ -37,15 +37,18 @@ spec:
   - name: Age
     type: date
     JSONPath: .metadata.creationTimestamp
+  subresources:
+  # status enables the status subresource.
+    status: {}
   validation:
     openAPIV3Schema:
-      type: object
-      description: Represents a subscription to a source and channel
-      required:
-      - spec
       properties:
         spec:
           type: object
+          description: Represents a subscription to a source and channel
+          required:
+          - spec
+          type: object
           description: Spec for a catalog source.
           required:
           - sourceType

+ 27 - 0
roles/olm/files/clusterserviceversion.crd.yaml

@@ -282,6 +282,33 @@ spec:
                             value:
                               type: object
                               description: If present, the value of this spec is the same for all instances of the CRD and can be found here instead of on the CR.
+                      actionDescriptors:
+                        type: array
+                        items:
+                          type: object
+                          description: A spec for actions that can be performed on instances of the CRD
+                          required:
+                            - path
+                            - displayName
+                            - description
+                          properties:
+                            path:
+                              type: string
+                              description: A jsonpath indexing into the spec object on the CR where the the spec value can be found.
+                            displayName:
+                              type: string
+                              description: A human-readable name for the action.
+                            description:
+                              type: string
+                              description: A description of the action.
+                            x-descriptors:
+                              type: array
+                              description: A list of descriptors for the action that indicate the meaning of the action.
+                              items:
+                                type: string
+                            value:
+                              type: object
+                              description: If present, the value of this action is the same for all instances of the CRD and can be found here instead of on the CR.
                 required:
                   type: array
                   description: What resources this operator is responsible for managing. No two running operators should manage the same resource.