Skip to content

Commit

Permalink
Rollback CRDs validation
Browse files Browse the repository at this point in the history
  • Loading branch information
angelbarrera92 committed Mar 8, 2020
1 parent b6ea417 commit 18f4a5d
Showing 1 changed file with 93 additions and 2 deletions.
95 changes: 93 additions & 2 deletions deploy/crds.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: apiextensions.k8s.io/v1beta1
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: organizations.grafana.k8spin.cloud
Expand All @@ -9,6 +9,58 @@ spec:
- name: v1
served: true
storage: true
schema:
openAPIV3Schema:
type: object
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
x-kubernetes-preserve-unknown-fields: true
status:
type: object
x-kubernetes-preserve-unknown-fields: true
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 @@ -17,7 +69,7 @@ spec:
- orgs
- org
---
apiVersion: apiextensions.k8s.io/v1beta1
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: users.grafana.k8spin.cloud
Expand All @@ -28,6 +80,45 @@ spec:
- name: v1
served: true
storage: true
schema:
openAPIV3Schema:
type: object
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
x-kubernetes-preserve-unknown-fields: true
status:
type: object
x-kubernetes-preserve-unknown-fields: true
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 18f4a5d

Please sign in to comment.