This repository has been archived by the owner on Jul 31, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add special exception for CRDs generated by kubebuilder
See kubernetes-sigs/controller-tools#402 According to the schema the generated CRDs are invalid, but kubernetes seems not to care.
- Loading branch information
Showing
3 changed files
with
79 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
|
||
--- | ||
apiVersion: apiextensions.k8s.io/v1beta1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
annotations: | ||
controller-gen.kubebuilder.io/version: v0.2.5 | ||
creationTimestamp: null | ||
name: things.example.com | ||
spec: | ||
additionalPrinterColumns: | ||
- JSONPath: .metadata.creationTimestamp | ||
name: Age | ||
type: date | ||
- JSONPath: .status.state | ||
description: Status of the Thing. | ||
name: State | ||
type: string | ||
group: environment.sapcloud.io | ||
names: | ||
categories: | ||
- all | ||
kind: Thing | ||
listKind: ThingList | ||
plural: things | ||
singular: thing | ||
scope: Namespaced | ||
subresources: | ||
status: {} | ||
validation: | ||
openAPIV3Schema: | ||
description: Thing is a thing | ||
properties: | ||
apiVersion: | ||
type: string | ||
kind: | ||
type: string | ||
metadata: | ||
type: object | ||
spec: | ||
description: ThingSpec defines the desired state of the Thing | ||
properties: | ||
color: | ||
description: Color of the thing | ||
enum: | ||
- red | ||
- green | ||
- blue | ||
type: string | ||
category: | ||
description: Category of the thing | ||
type: string | ||
type: object | ||
status: | ||
description: ThingStatus is the things status | ||
properties: | ||
state: | ||
description: State of the thing | ||
type: string | ||
required: | ||
- state | ||
type: object | ||
type: object | ||
version: v1alpha1 | ||
versions: | ||
- name: v1alpha1 | ||
served: true | ||
storage: true | ||
status: | ||
acceptedNames: | ||
kind: "" | ||
plural: "" | ||
conditions: [] | ||
storedVersions: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters