Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .readme/partials/main.md.j2
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ kind: KafkaCluster
metadata:
name: simple-kafka
spec:
version: 3.2.0-stackable0.2.0
image:
productVersion: 3.3.1
stackableVersion: 0.2.0
zookeeperConfigMapName: simple-kafka-znode
config:
tls: null
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ All notable changes to this project will be documented in this file.
- Updated stackable image versions ([#513]).
- operator-rs: 0.26.0 -> 0.27.1 ([#519]).
- Don't run init container as root and avoid chmod and chowning ([#524]).
- [BREAKING] Use Product image selection instead of version. `spec.version` has been replaced by `spec.image` ([#482]).

[#482]: https://github.com/stackabletech/kafka-operator/pull/482
[#513]: https://github.com/stackabletech/kafka-operator/pull/513
[#519]: https://github.com/stackabletech/kafka-operator/pull/519
[#524]: https://github.com/stackabletech/kafka-operator/pull/524
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ kind: KafkaCluster
metadata:
name: simple-kafka
spec:
version: 3.2.0-stackable0.2.0
image:
productVersion: 3.3.1
stackableVersion: 0.2.0
zookeeperConfigMapName: simple-kafka-znode
config:
tls: null
Expand Down
46 changes: 43 additions & 3 deletions deploy/crd/kafkacluster.crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,48 @@ spec:
- secretClass
type: object
type: object
image:
anyOf:
- required:
- custom
- productVersion
- required:
- productVersion
- stackableVersion
properties:
custom:
description: Overwrite the docker image. Specify the full docker image name, e.g. `docker.stackable.tech/stackable/superset:1.4.1-stackable2.1.0`
type: string
productVersion:
description: Version of the product, e.g. `1.4.1`.
type: string
pullPolicy:
default: IfNotPresent
description: '[Pull policy](https://kubernetes.io/docs/concepts/containers/images/#image-pull-policy) used when pulling the Images'
enum:
- IfNotPresent
- Always
- Never
type: string
pullSecrets:
description: '[Image pull secrets](https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod) to pull images from a private registry'
items:
description: LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.
properties:
name:
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
type: string
type: object
nullable: true
type: array
repo:
description: Name of the docker repo, e.g. `docker.stackable.tech/stackable`
nullable: true
type: string
stackableVersion:
description: Stackable version of the product, e.g. 2.1.0
type: string
type: object
log4j:
nullable: true
type: string
Expand All @@ -579,12 +621,10 @@ spec:
stopped:
nullable: true
type: boolean
version:
nullable: true
type: string
zookeeperConfigMapName:
type: string
required:
- image
- zookeeperConfigMapName
type: object
required:
Expand Down
46 changes: 43 additions & 3 deletions deploy/helm/kafka-operator/crds/crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,48 @@ spec:
- secretClass
type: object
type: object
image:
anyOf:
- required:
- custom
- productVersion
- required:
- productVersion
- stackableVersion
properties:
custom:
description: Overwrite the docker image. Specify the full docker image name, e.g. `docker.stackable.tech/stackable/superset:1.4.1-stackable2.1.0`
type: string
productVersion:
description: Version of the product, e.g. `1.4.1`.
type: string
pullPolicy:
default: IfNotPresent
description: '[Pull policy](https://kubernetes.io/docs/concepts/containers/images/#image-pull-policy) used when pulling the Images'
enum:
- IfNotPresent
- Always
- Never
type: string
pullSecrets:
description: '[Image pull secrets](https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod) to pull images from a private registry'
items:
description: LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.
properties:
name:
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
type: string
type: object
nullable: true
type: array
repo:
description: Name of the docker repo, e.g. `docker.stackable.tech/stackable`
nullable: true
type: string
stackableVersion:
description: Stackable version of the product, e.g. 2.1.0
type: string
type: object
log4j:
nullable: true
type: string
Expand All @@ -581,12 +623,10 @@ spec:
stopped:
nullable: true
type: boolean
version:
nullable: true
type: string
zookeeperConfigMapName:
type: string
required:
- image
- zookeeperConfigMapName
type: object
required:
Expand Down
46 changes: 43 additions & 3 deletions deploy/manifests/crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,48 @@ spec:
- secretClass
type: object
type: object
image:
anyOf:
- required:
- custom
- productVersion
- required:
- productVersion
- stackableVersion
properties:
custom:
description: Overwrite the docker image. Specify the full docker image name, e.g. `docker.stackable.tech/stackable/superset:1.4.1-stackable2.1.0`
type: string
productVersion:
description: Version of the product, e.g. `1.4.1`.
type: string
pullPolicy:
default: IfNotPresent
description: '[Pull policy](https://kubernetes.io/docs/concepts/containers/images/#image-pull-policy) used when pulling the Images'
enum:
- IfNotPresent
- Always
- Never
type: string
pullSecrets:
description: '[Image pull secrets](https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod) to pull images from a private registry'
items:
description: LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.
properties:
name:
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
type: string
type: object
nullable: true
type: array
repo:
description: Name of the docker repo, e.g. `docker.stackable.tech/stackable`
nullable: true
type: string
stackableVersion:
description: Stackable version of the product, e.g. 2.1.0
type: string
type: object
log4j:
nullable: true
type: string
Expand All @@ -582,12 +624,10 @@ spec:
stopped:
nullable: true
type: boolean
version:
nullable: true
type: string
zookeeperConfigMapName:
type: string
required:
- image
- zookeeperConfigMapName
type: object
required:
Expand Down
27 changes: 16 additions & 11 deletions docs/modules/ROOT/pages/config_properties.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,22 @@

The cluster can be configured via a YAML file. This custom resource specifies the amount of replicas for each role group, role group or role specific configuration like port definitions etc.

apiVersion: kafka.stackable.tech/v1alpha1
kind: KafkaCluster
metadata:
name: simple-kafka
spec:
version: 3.2.0-stackable0.2.0
zookeeperConfigMapName: simple-kafka-znode
brokers:
roleGroups:
default:
replicas: 1
[source,yaml]
----
apiVersion: kafka.stackable.tech/v1alpha1
kind: KafkaCluster
metadata:
name: simple-kafka
spec:
image:
productVersion: 3.3.1
stackableVersion: 0.2.0
zookeeperConfigMapName: simple-kafka-znode
brokers:
roleGroups:
default:
replicas: 1
----

=== Structure

Expand Down
24 changes: 18 additions & 6 deletions docs/modules/ROOT/pages/usage.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ kind: KafkaCluster
metadata:
name: simple-kafka
spec:
version: 3.2.0-stackable0.2.0
image:
productVersion: 3.2.0
stackableVersion: 0.2.0
zookeeperConfigMapName: simple-kafka-znode
brokers:
roleGroups:
Expand All @@ -40,7 +42,9 @@ kind: KafkaCluster
metadata:
name: simple-kafka
spec:
version: 3.2.0-stackable0.2.0
image:
productVersion: 3.2.0
stackableVersion: 0.2.0
zookeeperConfigMapName: simple-kafka-znode
opa:
configMapName: simple-opa
Expand All @@ -61,7 +65,9 @@ kind: KafkaCluster
metadata:
name: simple-kafka
spec:
version: 3.2.0-stackable0.2.0
image:
productVersion: 3.2.0
stackableVersion: 0.2.0
zookeeperConfigMapName: simple-kafka-znode
opa:
configMapName: simple-opa
Expand Down Expand Up @@ -96,7 +102,9 @@ kind: KafkaCluster
metadata:
name: simple-kafka
spec:
version: 3.2.0-stackable0.2.0
image:
productVersion: 3.2.0
stackableVersion: 0.2.0
zookeeperConfigMapName: simple-kafka-znode
log4j: |-
log4j.rootLogger=INFO, stdout, kafkaAppender
Expand Down Expand Up @@ -128,7 +136,9 @@ kind: KafkaCluster
metadata:
name: simple-kafka
spec:
version: 3.2.0-stackable0.2.0
image:
productVersion: 3.2.0
stackableVersion: 0.2.0
zookeeperConfigMapName: simple-kafka-znode
config:
tls:
Expand Down Expand Up @@ -198,7 +208,9 @@ kind: KafkaCluster
metadata:
name: simple-kafka
spec:
version: 3.2.0-stackable0.2.0
image:
productVersion: 3.2.0
stackableVersion: 0.2.0
zookeeperConfigMapName: simple-kafka-znode
config:
tls:
Expand Down
4 changes: 3 additions & 1 deletion docs/modules/getting_started/examples/code/kafka.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ kind: KafkaCluster
metadata:
name: simple-kafka
spec:
version: 3.3.1-stackable0.2.0
image:
productVersion: 3.3.1
stackableVersion: 0.2.0
zookeeperConfigMapName: simple-kafka-znode
config:
tls: null
Expand Down
8 changes: 6 additions & 2 deletions examples/logging/simple-kafka-cluster-opa-log4j.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ kind: OpaCluster
metadata:
name: simple-opa
spec:
version: 0.45.0-stackable0.2.0
image:
productVersion: 0.45.0
stackableVersion: 0.2.0
servers:
roleGroups:
default:
Expand All @@ -55,7 +57,9 @@ kind: KafkaCluster
metadata:
name: simple-kafka
spec:
version: 3.2.0-stackable0.2.0
image:
productVersion: 3.3.1
stackableVersion: 0.1.0
zookeeperConfigMapName: simple-kafka-znode
opa:
configMapName: simple-opa
Expand Down
8 changes: 6 additions & 2 deletions examples/opa/simple-kafka-cluster-opa-allow-all.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ kind: OpaCluster
metadata:
name: simple-opa
spec:
version: 0.45.0-stackable0.2.0
image:
productVersion: 0.45.0
stackableVersion: 0.2.0
servers:
roleGroups:
default:
Expand All @@ -55,7 +57,9 @@ kind: KafkaCluster
metadata:
name: simple-kafka
spec:
version: 3.3.1-stackable0.2.0
image:
productVersion: 3.3.1
stackableVersion: 0.1.0
zookeeperConfigMapName: simple-kafka-znode
opa:
configMapName: simple-opa
Expand Down
4 changes: 3 additions & 1 deletion examples/tls/simple-kafka-cluster-tls.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ kind: KafkaCluster
metadata:
name: simple-kafka
spec:
version: 3.3.1-stackable0.2.0
image:
productVersion: 3.3.1
stackableVersion: 0.1.0
zookeeperConfigMapName: simple-kafka-znode
config:
tls:
Expand Down
Loading