Browse Source

Merge pull request #8178 from shawn-hurley/bug-1566924

Bug 1566924 - renaming CRDs
OpenShift Merge Robot 7 years ago
parent
commit
384f8d2278

+ 13 - 0
roles/ansible_service_broker/files/bundlebindings.automationbroker.io

@@ -0,0 +1,13 @@
+---
+apiVersion: apiextensions.k8s.io/v1beta1
+kind: CustomResourceDefinition
+metadata:
+  name: bundlebindings.automationbroker.io
+spec:
+  group: automationbroker.io
+  version: v1alpha1
+  scope: Namespaced
+  names:
+    plural: bundlebindings
+    singular: bundlebinding
+    kind: BundleBinding

+ 14 - 0
roles/ansible_service_broker/files/bundleinstances.automationbroker.io.yaml

@@ -0,0 +1,14 @@
+---
+apiVersion: apiextensions.k8s.io/v1beta1
+kind: CustomResourceDefinition
+metadata:
+  name: bundleinstances.automationbroker.io
+spec:
+  group: automationbroker.io
+  version: v1alpha1
+  scope: Namespaced
+  names:
+    plural: bundleinstances
+    singular: bundleinstance
+    kind: BundleInstance
+

+ 1 - 141
roles/ansible_service_broker/files/bundles.automationbroker.io.yaml

@@ -5,150 +5,10 @@ metadata:
   name: bundles.automationbroker.io
 spec:
   group: automationbroker.io
-  version: v1
+  version: v1alpha1
   scope: Namespaced
   names:
     plural: bundles
     singular: bundle
     kind: Bundle
-  validation:
-    # openAPIV3Schema is the schema for validating custom objects.
-    openAPIV3Schema:
-      properties:
-        spec:
-          properties:
-            runtime:
-              type: integer
-              minimum: 1
-              maximum: 2
-            version:
-              type: string
-              pattern: '^[\d]+.[\d*]+$'
-            fqName:
-              type: string
-            image:
-              type: string
-            tags:
-              type: array
-              items:
-                type: string
-            bindable:
-              type: boolean
-            description:
-              type: string
-            metadata:
-              type: string
-            async:
-              type: string
-              pattern: '^(optional|required|unsupported)$'
-            plans:
-              type: array
-              minItems: 1
-              items:
-                type: object
-                properties:
-                  id:
-                    type: string
-                  name:
-                    type: string
-                  description:
-                    type: string
-                  metadata:
-                    type: string
-                  free:
-                    type: boolean
-                  bindable:
-                    type: boolean
-                  updatesTo:
-                    type: array
-                    items:
-                      type: string
-                  parameters:
-                    type: array
-                    items:
-                      type: object
-                      properties:
-                        name:
-                          type: string
-                        title:
-                          type: string
-                        type:
-                          type: string
-                        description:
-                          type: string
-                        default:
-                          type: string
-                        deprecateMaxLength:
-                          type: integer
-                        maxLength:
-                          type: integer
-                        minLength:
-                          type: integer
-                        pattern:
-                          type: string
-                        multipleOf:
-                          type: float
-                        maximum:
-                          type: float
-                        exclusiveMaximum:
-                          type: float
-                        minimum:
-                          type: float
-                        exclusiveMinimum:
-                          type: float
-                        enum:
-                          type: array
-                        items:
-                          type: string
-                        required:
-                          type: boolean
-                        updatable:
-                          type: boolean
-                        displayType:
-                          type: string
-                        displayGroup:
-                          type: string
-                  bindParameters:
-                    type: array
-                    properties:
-                      name:
-                        type: string
-                      title:
-                        type: string
-                      type:
-                        type: string
-                      description:
-                        type: string
-                      default:
-                        type: string
-                      deprecateMaxLength:
-                        type: integer
-                      maxLength:
-                        type: integer
-                      minLength:
-                        type: integer
-                      pattern:
-                        type: string
-                      multipleOf:
-                        type: float
-                      maximum:
-                        type: float
-                      exclusiveMaximum:
-                        type: float
-                      minimum:
-                        type: float
-                      exclusiveMinimum:
-                        type: float
-                      enum:
-                        type: array
-                      items:
-                        type: string
-                      required:
-                        type: boolean
-                      updatable:
-                        type: boolean
-                      displayType:
-                        type: string
-                      displayGroup:
-                        type: string
 

+ 0 - 28
roles/ansible_service_broker/files/jobstates.automationbroker.io.yaml

@@ -1,28 +0,0 @@
----
-apiVersion: apiextensions.k8s.io/v1beta1
-kind: CustomResourceDefinition
-metadata:
-  name: jobstates.automationbroker.io
-spec:
-  group: automationbroker.io
-  version: v1
-  scope: Namespaced
-  names:
-    plural: jobstates
-    singular: jobstate
-    kind: JobState
-  validation:
-    # openAPIV3Schema is the schema for validating custom objects.
-    # Token is the name of the resource
-    openAPIV3Schema:
-      properties:
-        state:
-          type: string
-        podName:
-          type: string
-        method:
-          type: string
-        error:
-          type: string
-        description:
-          type: string

+ 0 - 22
roles/ansible_service_broker/files/servicebindings.automationbroker.io.yaml

@@ -1,22 +0,0 @@
----
-apiVersion: apiextensions.k8s.io/v1beta1
-kind: CustomResourceDefinition
-metadata:
-  name: servicebindings.automationbroker.io
-spec:
-  group: automationbroker.io
-  version: v1
-  scope: Namespaced
-  names:
-    plural: servicebindings
-    singular: servicebinding
-    kind: ServiceBinding
-  validation:
-    # openAPIV3Schema is the schema for validating custom objects.
-    openAPIV3Schema:
-      serviceInstanceId:
-        type: string
-      parameters:
-        type: string
-      JobToken:
-        type: string

+ 0 - 35
roles/ansible_service_broker/files/serviceinstances.automationbroker.io.yaml

@@ -1,35 +0,0 @@
----
-apiVersion: apiextensions.k8s.io/v1beta1
-kind: CustomResourceDefinition
-metadata:
-  name: serviceinstances.automationbroker.io
-spec:
-  group: automationbroker.io
-  version: v1
-  scope: Namespaced
-  names:
-    plural: serviceinstances
-    singular: serviceinstance
-    kind: ServiceInstance
-  validation:
-    # openAPIV3Schema is the schema for validating custom objects.
-    openAPIV3Schema:
-      properties:
-        spec:
-          properties:
-            specId:
-              type: string
-            context:
-              type: object
-              properties:
-                plateform:
-                  type: string
-                namespace:
-                  type: string
-            parameters:
-              type: string
-            bindingIds:
-              type: array
-              items:
-                type: string
-

+ 1 - 1
roles/ansible_service_broker/tasks/install.yml

@@ -55,7 +55,7 @@
         resources: ["networkpolicies"]
         verbs: ["create", "delete"]
       - apiGroups: ["automationbroker.io"]
-        resources: ["bundles", "jobstates", "servicebindings", "serviceinstances"]
+        resources: ["bundles", "bundlebindings", "bundleinstances"]
         verbs: ["*"]
 
 - name: Create asb-access cluster role