Skip to content

Commit

Permalink
HOTFIX: Possible bug in CRDs (openAPIV3Schema) in Kubernetes Upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
angelbarrera92 committed Mar 7, 2020
1 parent bc98868 commit b6ea417
Showing 1 changed file with 2 additions and 61 deletions.
63 changes: 2 additions & 61 deletions deploy/crds.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: apiextensions.k8s.io/v1
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: organizations.grafana.k8spin.cloud
Expand All @@ -9,42 +9,6 @@ spec:
- name: v1
served: true
storage: true
schema:
openAPIV3Schema:
type: object
properties:
spec:
type: object
properties:
datasources:
description: Grafana datasources
type: array
items:
type: object
required: [name, data]
properties:
name:
type: string
data:
type: string
dashboards:
description: Grafana dashboards
type: array
items:
type: object
required: [name, data]
properties:
name:
type: string
data:
type: string
additionalPrinterColumns:
- jsonPath: .spec.datasources[*].name
name: Datasources
type: string
- jsonPath: .spec.dashboards[*].name
name: Dashboards
type: string
names:
kind: Organization
plural: organizations
Expand All @@ -53,7 +17,7 @@ spec:
- orgs
- org
---
apiVersion: apiextensions.k8s.io/v1
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: users.grafana.k8spin.cloud
Expand All @@ -64,29 +28,6 @@ spec:
- name: v1
served: true
storage: true
schema:
openAPIV3Schema:
type: object
properties:
spec:
type: object
required: [email]
properties:
email:
description: User's email to access Grafana
type: string
organizations:
description: Organizations where the user belongs
type: array
items:
type: string
additionalPrinterColumns:
- jsonPath: .spec.email
name: Email
type: string
- jsonPath: .spec.organizations
name: Organizations
type: string
names:
kind: User
plural: users
Expand Down

0 comments on commit b6ea417

Please sign in to comment.