Skip to content

Commit 4b8ad84

Browse files
committed
Updating CFK to 2.3.0
fix
1 parent 7e393bc commit 4b8ad84

File tree

579 files changed

+213596
-2664
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

579 files changed

+213596
-2664
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,7 @@ pki-ca-root.json
2121
cert_key_list
2222
nohup.out
2323

24+
aws.credentials
25+
2426
*.pem
2527
*.csr

GETTING_STARTED.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
### Getting Started
2+
3+
#### Deploying the Operator
4+
5+
[//]: # (TODO: describe how this is a declarative adaptation of CFK's helm instructions. Also discuss the update script that we have and how version numbers of the components are also important)
6+
Before you can deploy any of the deployment examples found in `./stable` and `./incubator`, we must first deploy the CFK Operator, and it's dependent CRDs. To deploy, from the root of this repository, run:
7+
```shell
8+
kubectl apply --kustomize ./base/cfk-base/latest/crds && sleep 5 && kubectl apply --kustomize ./base/cfk-base/latest/templates
9+
```
10+
We have taken the approach to deploy the Operator at a cluster-wide level, to allow use to experiment with multi-tenant configurations
11+
12+
13+
### Deploying the example
14+
Unless otherwise started in the README.md of each example, it should be assumed that we will deploy the example by running
15+
```shell
16+
export EXAMPLE=base-rbac
17+
kubectl apply -kustomize ./stable/$EXAMPLE
18+
```
19+
20+
21+
### Tearing Down
22+
23+
[//]: # (TODO: Describe recomendation to teardown and redeploy other examples)
24+
minikube delete && minikube start --memory 24576 --cpus 12

README.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,11 @@ usage: |-
2727
* [Minikube](https://minikube.sigs.k8s.io/docs/start/)
2828
2929
# Example usage
30-
examples: |-
31-
Before you can deploy any of the deployment examples found in `./examples`, we must first deploy the Confluent-specific CRDs. To deploy, from the root of this repository, run:
32-
```shell
33-
$ kubectl apply --kustomize ./kustomize/crds
34-
```
30+
Examples: |-
3531
36-
### CFK Deployments
32+
All Examples will require the steps mentioned in [GETTING_STARTED.md](https://github.com/osodevops/confluent-kubernetes-playground/tree/main/GETTING_STARTED.md) run prior to deploying the example
33+
34+
### Stable CFK Deployments
3735
* [Vault PKI integration with dynamic SSL](https://github.com/osodevops/confluent-kubernetes-playground/tree/main/examples/basic-pki-vault)
3836
* [Basic CFK install with auto generated certificates](https://github.com/osodevops/confluent-kubernetes-playground/tree/main/examples/basic)
3937
* [Kafka Connect GCP Spanner in CFK](https://github.com/osodevops/confluent-kubernetes-playground/tree/main/examples/custom-connect-gcp-connectors)
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
3+
resources:
4+
- platform.confluent.io_confluentrolebindings.yaml
5+
- platform.confluent.io_connects.yaml
6+
- platform.confluent.io_controlcenters.yaml
7+
- platform.confluent.io_kafkarestclasses.yaml
8+
- platform.confluent.io_kafkas.yaml
9+
- platform.confluent.io_kafkatopics.yaml
10+
- platform.confluent.io_ksqldbs.yaml
11+
- platform.confluent.io_migrationjobs.yaml
12+
- platform.confluent.io_schemaregistries.yaml
13+
- platform.confluent.io_zookeepers.yaml
Lines changed: 252 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,252 @@
1+
---
2+
# Source: confluent-for-kubernetes/crds/platform.confluent.io_confluentrolebindings.yaml
3+
4+
---
5+
apiVersion: apiextensions.k8s.io/v1beta1
6+
kind: CustomResourceDefinition
7+
metadata:
8+
annotations:
9+
controller-gen.kubebuilder.io/version: v0.4.1
10+
creationTimestamp: null
11+
name: confluentrolebindings.platform.confluent.io
12+
spec:
13+
additionalPrinterColumns:
14+
- JSONPath: .status.state
15+
name: Status
16+
type: string
17+
- JSONPath: .status.kafkaClusterId
18+
name: KafkaClusterId
19+
type: string
20+
- JSONPath: .status.principal
21+
name: Principal
22+
type: string
23+
- JSONPath: .status.role
24+
name: Role
25+
type: string
26+
- JSONPath: .status.kafkaRestClass
27+
name: KafkaRestClass
28+
type: string
29+
- JSONPath: .metadata.creationTimestamp
30+
name: Age
31+
type: date
32+
- JSONPath: .status.clusterRegistryName
33+
name: ClusterRegistryName
34+
priority: 1
35+
type: string
36+
group: platform.confluent.io
37+
names:
38+
categories:
39+
- all
40+
- confluent-platform
41+
- confluent
42+
kind: ConfluentRolebinding
43+
listKind: ConfluentRolebindingList
44+
plural: confluentrolebindings
45+
shortNames:
46+
- cfrb
47+
- confluentrolebinding
48+
singular: confluentrolebinding
49+
preserveUnknownFields: false
50+
scope: Namespaced
51+
subresources:
52+
status: {}
53+
validation:
54+
openAPIV3Schema:
55+
description: ConfluentRolebinding is the Schema for the confluentrolebinding
56+
API
57+
properties:
58+
apiVersion:
59+
description: 'APIVersion defines the versioned schema of this representation
60+
of an object. Servers should convert recognized schemas to the latest
61+
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
62+
type: string
63+
kind:
64+
description: 'Kind is a string value representing the REST resource this
65+
object represents. Servers may infer this from the endpoint the client
66+
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
67+
type: string
68+
metadata:
69+
type: object
70+
spec:
71+
description: ConfluentRolebindingSpec defines the desired state of rolebinding
72+
for cp component when rbac is enabled
73+
properties:
74+
clustersScopeByIds:
75+
description: ClusterScope defines the scope of clustersId
76+
properties:
77+
connectClusterId:
78+
minLength: 1
79+
type: string
80+
kafkaClusterId:
81+
minLength: 1
82+
type: string
83+
ksqlClusterId:
84+
minLength: 1
85+
type: string
86+
schemaRegistryClusterId:
87+
minLength: 1
88+
type: string
89+
type: object
90+
clustersScopeByRegistryName:
91+
description: ClusterRegistryName defines the unique cluster name customer
92+
registered in cluster registry
93+
minLength: 1
94+
type: string
95+
kafkaRestClassRef:
96+
description: KafkaRestClassRef defines the reference for KafkaRestClass
97+
which defines Kafka Rest API
98+
properties:
99+
name:
100+
description: Name defines the name of KafkaRestClass
101+
minLength: 1
102+
type: string
103+
namespace:
104+
description: Namespace defines the namespace of the KafkaRestClass
105+
type: string
106+
required:
107+
- name
108+
type: object
109+
principal:
110+
description: Principal defines the confluent rolebinding principal name
111+
and the binding details.
112+
properties:
113+
name:
114+
description: Name defines the name of the principal(user/group)
115+
minLength: 1
116+
type: string
117+
type:
118+
enum:
119+
- user
120+
- group
121+
type: string
122+
required:
123+
- name
124+
- type
125+
type: object
126+
resourcePatterns:
127+
description: ResourcePatterns define the qualified resources associated
128+
with this rolebinding
129+
items:
130+
description: ResourcePattern define the qualified resource info associated
131+
with this rolebinding
132+
properties:
133+
name:
134+
description: Name defines the name of resource associated with
135+
this rolebinding
136+
minLength: 1
137+
type: string
138+
patternType:
139+
description: PatternType defines whether the pattern of resource
140+
is PREFIXED or LITERAL, default is LITERAL if not set
141+
enum:
142+
- PREFIXED
143+
- LITERAL
144+
type: string
145+
resourceType:
146+
description: ResourceType defines the type of resource
147+
minLength: 1
148+
type: string
149+
required:
150+
- name
151+
- resourceType
152+
type: object
153+
type: array
154+
role:
155+
description: Role defines the name of the Role
156+
minLength: 1
157+
type: string
158+
required:
159+
- principal
160+
- role
161+
type: object
162+
status:
163+
description: ConfluentRolebindingStatus defines the observed state of ConfluentRolebinding
164+
properties:
165+
clusterRegistryName:
166+
type: string
167+
conditions:
168+
items:
169+
description: Conditions represents the latest available observations
170+
of a statefulset's current state.
171+
properties:
172+
lastProbeTime:
173+
description: LastProbeTime defines a last time the condition is
174+
evaluated.
175+
format: date-time
176+
type: string
177+
lastTransitionTime:
178+
description: LastTransitionTime defines a last time the condition
179+
transitioned from one status to another.
180+
format: date-time
181+
type: string
182+
message:
183+
description: ' Message defines a human readable message indicating
184+
details about the transition.'
185+
type: string
186+
reason:
187+
description: ' Reason defines reason for the condition''s last
188+
transition.'
189+
type: string
190+
status:
191+
description: Status defines a status of the condition, one of
192+
True, False, Unknown
193+
type: string
194+
type:
195+
description: Type defines type of condition
196+
type: string
197+
type: object
198+
type: array
199+
kafkaClusterId:
200+
type: string
201+
kafkaRestClass:
202+
type: string
203+
mdsEndpoint:
204+
type: string
205+
principal:
206+
type: string
207+
resourcePatterns:
208+
items:
209+
description: ResourcePattern define the qualified resource info associated
210+
with this rolebinding
211+
properties:
212+
name:
213+
description: Name defines the name of resource associated with
214+
this rolebinding
215+
minLength: 1
216+
type: string
217+
patternType:
218+
description: PatternType defines whether the pattern of resource
219+
is PREFIXED or LITERAL, default is LITERAL if not set
220+
enum:
221+
- PREFIXED
222+
- LITERAL
223+
type: string
224+
resourceType:
225+
description: ResourceType defines the type of resource
226+
minLength: 1
227+
type: string
228+
required:
229+
- name
230+
- resourceType
231+
type: object
232+
type: array
233+
role:
234+
type: string
235+
state:
236+
type: string
237+
type: object
238+
required:
239+
- spec
240+
type: object
241+
version: v1beta1
242+
versions:
243+
- name: v1beta1
244+
served: true
245+
storage: true
246+
status:
247+
acceptedNames:
248+
kind: ""
249+
plural: ""
250+
conditions: []
251+
storedVersions: []
252+

0 commit comments

Comments
 (0)