Skip to content

Commit

Permalink
Revert "Revert "Revert "Revert "Update to stable CRD v1 release""""
Browse files Browse the repository at this point in the history
This reverts commit 7a24919.
  • Loading branch information
gmrodgers committed Jun 18, 2020
1 parent 2d70a71 commit 457a6d0
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 75 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Produce CRDs that work back to Kubernetes 1.11 (no version conversion)
CRD_OPTIONS ?= "crd:trivialVersions=true"
CRD_OPTIONS ?= "crd:crdVersions=v1"
GINKGO_ARGS = -r -p -randomizeSuites -randomizeAllSpecs

# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

---
apiVersion: apiextensions.k8s.io/v1beta1
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
Expand All @@ -15,37 +15,36 @@ spec:
plural: projectaccesses
singular: projectaccess
scope: Cluster
validation:
openAPIV3Schema:
description: ProjectAccess is the Schema for the projectaccesses API
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
spec:
description: ProjectAccessSpec defines the desired state of ProjectAccess
type: object
status:
description: ProjectAccessStatus defines the observed state of ProjectAccess
properties:
projects:
items:
type: string
type: array
type: object
type: object
version: v1alpha1
versions:
- name: v1alpha1
schema:
openAPIV3Schema:
description: ProjectAccess is the Schema for the projectaccesses API
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
spec:
description: ProjectAccessSpec defines the desired state of ProjectAccess
type: object
status:
description: ProjectAccessStatus defines the observed state of ProjectAccess
properties:
projects:
items:
type: string
type: array
type: object
type: object
served: true
storage: true
status:
Expand Down
87 changes: 43 additions & 44 deletions helm/projects-operator/crds/projects.vmware.com_projects.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

---
apiVersion: apiextensions.k8s.io/v1beta1
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
Expand All @@ -15,51 +15,50 @@ spec:
plural: projects
singular: project
scope: Cluster
validation:
openAPIV3Schema:
description: Project is the Schema for the projects API
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
spec:
description: ProjectSpec defines the desired state of Project
properties:
access:
items:
properties:
kind:
enum:
- ServiceAccount
- User
- Group
type: string
name:
type: string
namespace:
type: string
required:
- kind
- name
type: object
type: array
type: object
status:
description: ProjectStatus defines the observed state of Project
type: object
type: object
version: v1alpha1
versions:
- name: v1alpha1
schema:
openAPIV3Schema:
description: Project is the Schema for the projects API
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
spec:
description: ProjectSpec defines the desired state of Project
properties:
access:
items:
properties:
kind:
enum:
- ServiceAccount
- User
- Group
type: string
name:
type: string
namespace:
type: string
required:
- kind
- name
type: object
type: array
type: object
status:
description: ProjectStatus defines the observed state of Project
type: object
type: object
served: true
storage: true
status:
Expand Down

0 comments on commit 457a6d0

Please sign in to comment.