Skip to content
This repository was archived by the owner on Apr 18, 2024. It is now read-only.

Commit a6f1632

Browse files
authored
Merge pull request #33 from flanksource/chore/add-v1beta1-crd
chore: add v1beta1 CRD
2 parents 8d2d17a + c756443 commit a6f1632

File tree

2 files changed

+139
-0
lines changed

2 files changed

+139
-0
lines changed

Makefile

+2
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ help: ## Display this help.
9999

100100
manifests: controller-gen ## Generate WebhookConfiguration, ClusterRole and CustomResourceDefinition objects.
101101
$(CONTROLLER_GEN) $(CRD_OPTIONS) rbac:roleName=konfig-manager webhook paths="./..." output:crd:artifacts:config=config/crd/bases
102+
$(CONTROLLER_GEN) crd:crdVersions=v1beta1 rbac:roleName=konfig-manager webhook paths="./..." output:crd:artifacts:config=config/crd/bases/v1beta1
103+
102104

103105
generate: controller-gen ## Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.
104106
$(CONTROLLER_GEN) object:headerFile="hack/boilerplate.go.txt" paths="./..."
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,137 @@
1+
2+
---
3+
apiVersion: apiextensions.k8s.io/v1beta1
4+
kind: CustomResourceDefinition
5+
metadata:
6+
annotations:
7+
controller-gen.kubebuilder.io/version: v0.4.1
8+
creationTimestamp: null
9+
name: konfigs.konfigmanager.flanksource.com
10+
spec:
11+
group: konfigmanager.flanksource.com
12+
names:
13+
kind: Konfig
14+
listKind: KonfigList
15+
plural: konfigs
16+
singular: konfig
17+
scope: Namespaced
18+
subresources:
19+
status: {}
20+
validation:
21+
openAPIV3Schema:
22+
description: Konfig is the Schema for the hierarchyconfigs API
23+
properties:
24+
apiVersion:
25+
description: 'APIVersion defines the versioned schema of this representation
26+
of an object. Servers should convert recognized schemas to the latest
27+
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
28+
type: string
29+
kind:
30+
description: 'Kind is a string value representing the REST resource this
31+
object represents. Servers may infer this from the endpoint the client
32+
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
33+
type: string
34+
metadata:
35+
type: object
36+
spec:
37+
description: KonfigSpec defines the desired state of Konfig
38+
properties:
39+
hierarchy:
40+
items:
41+
properties:
42+
hierarchyName:
43+
type: string
44+
index:
45+
type: integer
46+
key:
47+
type: string
48+
kind:
49+
type: string
50+
name:
51+
type: string
52+
namespace:
53+
type: string
54+
type:
55+
type: string
56+
required:
57+
- kind
58+
- name
59+
type: object
60+
type: array
61+
output:
62+
description: Output defines where and how properties file need to be
63+
created
64+
properties:
65+
filetype:
66+
type: string
67+
key:
68+
type: string
69+
kind:
70+
type: string
71+
name:
72+
type: string
73+
namespace:
74+
type: string
75+
type:
76+
type: string
77+
type: object
78+
required:
79+
- hierarchy
80+
type: object
81+
status:
82+
description: KonfigStatus defines the observed state of Konfig
83+
properties:
84+
hierarchy:
85+
items:
86+
properties:
87+
hierarchyName:
88+
type: string
89+
index:
90+
type: integer
91+
key:
92+
type: string
93+
kind:
94+
type: string
95+
name:
96+
type: string
97+
namespace:
98+
type: string
99+
type:
100+
type: string
101+
required:
102+
- kind
103+
- name
104+
type: object
105+
type: array
106+
output:
107+
description: Output defines where and how properties file need to be
108+
created
109+
properties:
110+
filetype:
111+
type: string
112+
key:
113+
type: string
114+
kind:
115+
type: string
116+
name:
117+
type: string
118+
namespace:
119+
type: string
120+
type:
121+
type: string
122+
type: object
123+
required:
124+
- hierarchy
125+
type: object
126+
type: object
127+
version: v1
128+
versions:
129+
- name: v1
130+
served: true
131+
storage: true
132+
status:
133+
acceptedNames:
134+
kind: ""
135+
plural: ""
136+
conditions: []
137+
storedVersions: []

0 commit comments

Comments
 (0)