Skip to content

Commit

Permalink
Prepare for 0.1.0
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Scholz <www@scholzj.com>
  • Loading branch information
scholzj committed Sep 27, 2024
1 parent 6f8be82 commit cbf693f
Show file tree
Hide file tree
Showing 16 changed files with 249 additions and 6 deletions.
2 changes: 1 addition & 1 deletion api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>io.strimzi.kafka.access</groupId>
<artifactId>kafka-access-operator</artifactId>
<version>0.0.1-SNAPSHOT</version>
<version>0.1.0</version>
</parent>

<artifactId>api</artifactId>
Expand Down
20 changes: 20 additions & 0 deletions examples/kafka-access-with-user.yaml
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
12 changes: 12 additions & 0 deletions examples/kafka-access.yaml
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
6 changes: 6 additions & 0 deletions install/000-Namespace.yaml
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
7 changes: 7 additions & 0 deletions install/010-ServiceAccount.yaml
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
41 changes: 41 additions & 0 deletions install/020-ClusterRole.yaml
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
14 changes: 14 additions & 0 deletions install/030-ClusterRoleBinding.yaml
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
86 changes: 86 additions & 0 deletions install/040-Crd-kafkaaccess.yaml
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: {}
57 changes: 57 additions & 0 deletions install/050-Deployment.yaml
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
2 changes: 1 addition & 1 deletion operator/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.strimzi.kafka.access</groupId>
<artifactId>kafka-access-operator</artifactId>
<version>0.0.1-SNAPSHOT</version>
<version>0.1.0</version>
</parent>

<artifactId>operator</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion packaging/install/050-Deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
sizeLimit: 1Mi
containers:
- name: access-operator
image: quay.io/strimzi/access-operator:latest
image: quay.io/strimzi/access-operator:0.1.0
ports:
- containerPort: 8080
name: http
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>io.strimzi.kafka.access</groupId>
<artifactId>kafka-access-operator</artifactId>
<version>0.0.1-SNAPSHOT</version>
<version>0.1.0</version>
<packaging>pom</packaging>

<licenses>
Expand Down
2 changes: 1 addition & 1 deletion release.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.1-SNAPSHOT
0.1.0
Binary file added strimzi-access-operator-0.1.0.tar.gz
Binary file not shown.
Binary file added strimzi-access-operator-0.1.0.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion systemtest/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.strimzi.kafka.access</groupId>
<artifactId>kafka-access-operator</artifactId>
<version>0.0.1-SNAPSHOT</version>
<version>0.1.0</version>
</parent>

<artifactId>systemtest</artifactId>
Expand Down

0 comments on commit cbf693f

Please sign in to comment.