-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Manifest Kubernetes resources for
reset
command (#563)
Closes #556
- Loading branch information
Showing
8 changed files
with
446 additions
and
12 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
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
107 changes: 107 additions & 0 deletions
107
tests/pipeline/snapshots/test_manifest/test_manifest_reset_argo_mode/manifest.yaml
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,107 @@ | ||
--- | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
labels: | ||
app: resources-manifest-pipeline-my-streams-app-clean | ||
chart: streams-app-cleanup-job-3.0.3 | ||
release: resources-manifest-pipeline-my-streams-app-clean | ||
name: resources-manifest-pipeline-my-streams-app-clean | ||
spec: | ||
backoffLimit: 6 | ||
template: | ||
metadata: | ||
labels: | ||
app: resources-manifest-pipeline-my-streams-app-clean | ||
release: resources-manifest-pipeline-my-streams-app-clean | ||
spec: | ||
containers: | ||
- args: | ||
- reset | ||
env: | ||
- name: ENV_PREFIX | ||
value: APP_ | ||
- name: APP_BOOTSTRAP_SERVERS | ||
value: http://k8kafka-cp-kafka-headless.kpops.svc.cluster.local:9092 | ||
- name: APP_SCHEMA_REGISTRY_URL | ||
value: http://localhost:8081/ | ||
- name: APP_INPUT_TOPICS | ||
value: my-input-topic | ||
- name: APP_INPUT_PATTERN | ||
value: my-input-pattern | ||
- name: APP_OUTPUT_TOPIC | ||
value: my-output-topic | ||
- name: APP_ERROR_TOPIC | ||
value: resources-manifest-pipeline-my-streams-app-error | ||
- name: APP_LABELED_OUTPUT_TOPICS | ||
value: my-output-topic-label=my-labeled-topic-output, | ||
- name: APP_LABELED_INPUT_TOPICS | ||
value: my-input-topic-label=my-labeled-input-topic, | ||
- name: APP_LABELED_INPUT_PATTERNS | ||
value: my-input-topic-labeled-pattern=my-labeled-input-pattern, | ||
- name: APP_APPLICATION_ID | ||
value: my-streams-app-id | ||
- name: JAVA_TOOL_OPTIONS | ||
value: '-XX:MaxRAMPercentage=75.0 ' | ||
image: my-registry/my-streams-app-image:1.0.0 | ||
imagePullPolicy: Always | ||
name: resources-manifest-pipeline-my-streams-app-clean | ||
resources: | ||
limits: | ||
cpu: 500m | ||
memory: 2G | ||
requests: | ||
cpu: 200m | ||
memory: 300Mi | ||
restartPolicy: OnFailure | ||
ttlSecondsAfterFinished: 30 | ||
|
||
--- | ||
apiVersion: kafka.strimzi.io/v1beta2 | ||
kind: KafkaTopic | ||
metadata: | ||
labels: | ||
strimzi.io/cluster: my-cluster | ||
name: my-output-topic | ||
spec: | ||
config: {} | ||
partitions: 1 | ||
replicas: 1 | ||
|
||
--- | ||
apiVersion: kafka.strimzi.io/v1beta2 | ||
kind: KafkaTopic | ||
metadata: | ||
labels: | ||
strimzi.io/cluster: my-cluster | ||
name: my-error-topic | ||
spec: | ||
config: {} | ||
partitions: 1 | ||
replicas: 1 | ||
|
||
--- | ||
apiVersion: kafka.strimzi.io/v1beta2 | ||
kind: KafkaTopic | ||
metadata: | ||
labels: | ||
strimzi.io/cluster: my-cluster | ||
name: my-labeled-topic-output | ||
spec: | ||
config: {} | ||
partitions: 1 | ||
replicas: 1 | ||
|
||
--- | ||
apiVersion: kafka.strimzi.io/v1beta2 | ||
kind: KafkaTopic | ||
metadata: | ||
labels: | ||
strimzi.io/cluster: my-cluster | ||
name: resources-manifest-pipeline-my-streams-app-error | ||
spec: | ||
config: | ||
cleanup.policy: compact,delete | ||
partitions: 1 | ||
replicas: 1 | ||
|
107 changes: 107 additions & 0 deletions
107
tests/pipeline/snapshots/test_manifest/test_manifest_reset_manifest_mode/manifest.yaml
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,107 @@ | ||
--- | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
labels: | ||
app: resources-manifest-pipeline-my-streams-app-clean | ||
chart: streams-app-cleanup-job-3.0.3 | ||
release: resources-manifest-pipeline-my-streams-app-clean | ||
name: resources-manifest-pipeline-my-streams-app-clean | ||
spec: | ||
backoffLimit: 6 | ||
template: | ||
metadata: | ||
labels: | ||
app: resources-manifest-pipeline-my-streams-app-clean | ||
release: resources-manifest-pipeline-my-streams-app-clean | ||
spec: | ||
containers: | ||
- args: | ||
- reset | ||
env: | ||
- name: ENV_PREFIX | ||
value: APP_ | ||
- name: APP_BOOTSTRAP_SERVERS | ||
value: http://k8kafka-cp-kafka-headless.kpops.svc.cluster.local:9092 | ||
- name: APP_SCHEMA_REGISTRY_URL | ||
value: http://localhost:8081/ | ||
- name: APP_INPUT_TOPICS | ||
value: my-input-topic | ||
- name: APP_INPUT_PATTERN | ||
value: my-input-pattern | ||
- name: APP_OUTPUT_TOPIC | ||
value: my-output-topic | ||
- name: APP_ERROR_TOPIC | ||
value: resources-manifest-pipeline-my-streams-app-error | ||
- name: APP_LABELED_OUTPUT_TOPICS | ||
value: my-output-topic-label=my-labeled-topic-output, | ||
- name: APP_LABELED_INPUT_TOPICS | ||
value: my-input-topic-label=my-labeled-input-topic, | ||
- name: APP_LABELED_INPUT_PATTERNS | ||
value: my-input-topic-labeled-pattern=my-labeled-input-pattern, | ||
- name: APP_APPLICATION_ID | ||
value: my-streams-app-id | ||
- name: JAVA_TOOL_OPTIONS | ||
value: '-XX:MaxRAMPercentage=75.0 ' | ||
image: my-registry/my-streams-app-image:1.0.0 | ||
imagePullPolicy: Always | ||
name: resources-manifest-pipeline-my-streams-app-clean | ||
resources: | ||
limits: | ||
cpu: 500m | ||
memory: 2G | ||
requests: | ||
cpu: 200m | ||
memory: 300Mi | ||
restartPolicy: OnFailure | ||
ttlSecondsAfterFinished: 30 | ||
|
||
--- | ||
apiVersion: kafka.strimzi.io/v1beta2 | ||
kind: KafkaTopic | ||
metadata: | ||
labels: | ||
strimzi.io/cluster: my-cluster | ||
name: my-output-topic | ||
spec: | ||
config: {} | ||
partitions: 1 | ||
replicas: 1 | ||
|
||
--- | ||
apiVersion: kafka.strimzi.io/v1beta2 | ||
kind: KafkaTopic | ||
metadata: | ||
labels: | ||
strimzi.io/cluster: my-cluster | ||
name: my-error-topic | ||
spec: | ||
config: {} | ||
partitions: 1 | ||
replicas: 1 | ||
|
||
--- | ||
apiVersion: kafka.strimzi.io/v1beta2 | ||
kind: KafkaTopic | ||
metadata: | ||
labels: | ||
strimzi.io/cluster: my-cluster | ||
name: my-labeled-topic-output | ||
spec: | ||
config: {} | ||
partitions: 1 | ||
replicas: 1 | ||
|
||
--- | ||
apiVersion: kafka.strimzi.io/v1beta2 | ||
kind: KafkaTopic | ||
metadata: | ||
labels: | ||
strimzi.io/cluster: my-cluster | ||
name: resources-manifest-pipeline-my-streams-app-error | ||
spec: | ||
config: | ||
cleanup.policy: compact,delete | ||
partitions: 1 | ||
replicas: 1 | ||
|
Oops, something went wrong.