Documentation
¶
Overview ¶
Example (Full) ¶
images := map[string]string{} cfg := map[string]interface{}{ "name": "foo", } WithClusterName("other-cluster")(cfg) WithClusterNamespace("here")(cfg) WithPartitions("100")(cfg) files, err := manifest.ExecuteLocalYAML(images, cfg) if err != nil { panic(err) } manifest.OutputYAML(os.Stdout, files)
Output: apiVersion: kafka.strimzi.io/v1beta1 kind: KafkaTopic metadata: name: foo namespace: here labels: strimzi.io/cluster: other-cluster spec: partitions: 100 replicas: 1
Example (Min) ¶
images := map[string]string{} cfg := map[string]interface{}{ "name": "foo", "partitions": 10, "clusterName": "my-cluster", "clusterNamespace": "there", } files, err := manifest.ExecuteLocalYAML(images, cfg) if err != nil { panic(err) } manifest.OutputYAML(os.Stdout, files)
Output: apiVersion: kafka.strimzi.io/v1beta1 kind: KafkaTopic metadata: name: foo namespace: there labels: strimzi.io/cluster: my-cluster spec: partitions: 10 replicas: 1
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GVR ¶
func GVR() schema.GroupVersionResource
Types ¶
type CfgFn ¶
type CfgFn func(map[string]interface{})
func WithClusterName ¶
WithClusterName overrides the Kakfa cluster names where to create the topic (default: my-cluster)
func WithClusterNamespace ¶
WithClusterName overrides the Kakfa cluster namespace where to create the topic (default: kafka)
func WithPartitions ¶
WithPartitions overrides the number of partitions (default: 10).
Click to show internal directories.
Click to hide internal directories.