-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jakub Scholz <[email protected]>
- Loading branch information
Showing
16 changed files
with
249 additions
and
6 deletions.
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
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,20 @@ | ||
# The operator will look up the Kafka instance specified and | ||
# create a secret with the details to connect to the listener specified. | ||
# It will also look up the KafkaUser specified and check it has the correct | ||
# authentication mechanism to connect to the listener. If so it will add the | ||
# user credentials to the secret it creates. | ||
# If no listener is specified it will choose one based on the user authentication. | ||
apiVersion: access.strimzi.io/v1alpha1 | ||
kind: KafkaAccess | ||
metadata: | ||
name: my-kafka-access | ||
spec: | ||
kafka: | ||
name: my-cluster | ||
namespace: kafka | ||
listener: tls | ||
user: | ||
kind: KafkaUser | ||
apiGroup: kafka.strimzi.io | ||
name: my-user | ||
namespace: kafka |
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,12 @@ | ||
# The operator will look up the Kafka instance specified and | ||
# create a secret with the details to connect to the listener specified. | ||
# If no listener is specified it will choose one, preferring an internal listener. | ||
apiVersion: access.strimzi.io/v1alpha1 | ||
kind: KafkaAccess | ||
metadata: | ||
name: my-kafka-access | ||
spec: | ||
kafka: | ||
name: my-cluster | ||
namespace: kafka | ||
listener: plain |
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,6 @@ | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: strimzi-access-operator | ||
labels: | ||
app: strimzi-access-operator |
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,7 @@ | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: strimzi-access-operator | ||
labels: | ||
app: strimzi-access-operator | ||
namespace: strimzi-access-operator |
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,41 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: strimzi-access-operator | ||
labels: | ||
app: strimzi-access-operator | ||
rules: | ||
- apiGroups: | ||
- "access.strimzi.io" | ||
resources: | ||
- kafkaaccesses | ||
- kafkaaccesses/status | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- create | ||
- delete | ||
- patch | ||
- update | ||
- apiGroups: | ||
- "kafka.strimzi.io" | ||
resources: | ||
- kafkas | ||
- kafkausers | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- secrets | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- create | ||
- delete | ||
- patch | ||
- update |
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,14 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: strimzi-access-operator | ||
labels: | ||
app: strimzi-access-operator | ||
subjects: | ||
- kind: ServiceAccount | ||
name: strimzi-access-operator | ||
namespace: strimzi-access-operator | ||
roleRef: | ||
kind: ClusterRole | ||
name: strimzi-access-operator | ||
apiGroup: rbac.authorization.k8s.io |
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,86 @@ | ||
# Generated by Fabric8 CRDGenerator, manual edits might get overwritten! | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: kafkaaccesses.access.strimzi.io | ||
labels: | ||
servicebinding.io/provisioned-service: "true" | ||
spec: | ||
group: access.strimzi.io | ||
names: | ||
kind: KafkaAccess | ||
plural: kafkaaccesses | ||
shortNames: | ||
- ka | ||
singular: kafkaaccess | ||
scope: Namespaced | ||
versions: | ||
- name: v1alpha1 | ||
schema: | ||
openAPIV3Schema: | ||
properties: | ||
spec: | ||
properties: | ||
kafka: | ||
properties: | ||
listener: | ||
type: string | ||
name: | ||
type: string | ||
namespace: | ||
type: string | ||
required: | ||
- name | ||
type: object | ||
user: | ||
properties: | ||
apiGroup: | ||
type: string | ||
kind: | ||
type: string | ||
name: | ||
type: string | ||
namespace: | ||
type: string | ||
required: | ||
- apiGroup | ||
- kind | ||
- name | ||
type: object | ||
required: | ||
- kafka | ||
type: object | ||
status: | ||
properties: | ||
binding: | ||
properties: | ||
name: | ||
type: string | ||
type: object | ||
conditions: | ||
items: | ||
properties: | ||
additionalProperties: | ||
additionalProperties: | ||
type: object | ||
type: object | ||
lastTransitionTime: | ||
type: string | ||
message: | ||
type: string | ||
reason: | ||
type: string | ||
status: | ||
type: string | ||
type: | ||
type: string | ||
type: object | ||
type: array | ||
observedGeneration: | ||
type: integer | ||
type: object | ||
type: object | ||
served: true | ||
storage: true | ||
subresources: | ||
status: {} |
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,57 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: strimzi-access-operator | ||
labels: | ||
app: strimzi-access-operator | ||
namespace: strimzi-access-operator | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: strimzi-access-operator | ||
strimzi.io/kind: access-operator | ||
template: | ||
metadata: | ||
labels: | ||
app: strimzi-access-operator | ||
strimzi.io/kind: access-operator | ||
spec: | ||
serviceAccountName: strimzi-access-operator | ||
volumes: | ||
- name: strimzi-tmp | ||
emptyDir: | ||
medium: Memory | ||
sizeLimit: 1Mi | ||
containers: | ||
- name: access-operator | ||
image: quay.io/strimzi/access-operator:0.1.0 | ||
ports: | ||
- containerPort: 8080 | ||
name: http | ||
args: | ||
- /opt/strimzi/bin/access_operator_run.sh | ||
volumeMounts: | ||
- name: strimzi-tmp | ||
mountPath: /tmp | ||
resources: | ||
limits: | ||
memory: 256Mi | ||
cpu: 500m | ||
requests: | ||
memory: 256Mi | ||
cpu: 100m | ||
livenessProbe: | ||
httpGet: | ||
path: /healthy | ||
port: http | ||
initialDelaySeconds: 10 | ||
periodSeconds: 30 | ||
readinessProbe: | ||
httpGet: | ||
path: /ready | ||
port: http | ||
initialDelaySeconds: 10 | ||
periodSeconds: 30 | ||
strategy: | ||
type: Recreate |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.0.1-SNAPSHOT | ||
0.1.0 |
Binary file not shown.
Binary file not shown.
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