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/v1beta2 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.ExecuteYAML(yaml, images, cfg) if err != nil { panic(err) } manifest.OutputYAML(os.Stdout, files)
Output: apiVersion: kafka.strimzi.io/v1beta2 kind: KafkaTopic metadata: name: foo namespace: there labels: strimzi.io/cluster: my-cluster spec: partitions: 10 replicas: 1
Index ¶
- func GVR() schema.GroupVersionResource
- func Install(name string, opts ...manifest.CfgFn) feature.StepFn
- func IsReady(name string, timings ...time.Duration) feature.StepFn
- func WithClusterName(name string) manifest.CfgFn
- func WithClusterNamespace(namespace string) manifest.CfgFn
- func WithPartitions(partitions string) manifest.CfgFn
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GVR ¶
func GVR() schema.GroupVersionResource
func Install ¶
Install will create a Kafka Topic via the Strimzi topic CRD,, augmented with the config fn options.
func WithClusterName ¶
WithClusterName overrides the Kafka cluster names where to create the topic (default: my-cluster)
func WithClusterNamespace ¶
WithClusterNamespace overrides the Kafka cluster namespace where to create the topic (default: kafka)
func WithPartitions ¶
WithPartitions overrides the number of partitions (default: 10).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.