Skip to content

Commit

Permalink
Merge pull request #290 from mbaldessari/quick-fixes
Browse files Browse the repository at this point in the history
Switch to traits for kafka integrations
  • Loading branch information
mbaldessari authored Nov 6, 2024
2 parents fa2c231 + 6e0b912 commit f33a9e3
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ metadata:
annotations:
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
spec:
configuration:
- type: configmap
value: kafka-to-s3-config
- type: secret
value: s3-anomaly
traits:
mount:
configs:
- configmap:kafka-to-s3-config
- secret:s3-anomaly
profile: OpenShift
sources:
- content: |
// dependency=camel:camel-endpointdsl
// dependency=camel:camel-endpointdsl
package com.redhat.manuela.routes;
import java.io.ByteArrayInputStream;
import java.util.Iterator;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,20 @@ spec:
name: s3-anomaly
template:
type: Opaque
dataFrom:
- extract:
engineVersion: v2
data:
application.properties: |
AWS_SECRET_ACCESS_KEY: {{ `{{ .aws_secret_access_key }}` }}
AWS_ACCESS_KEY_ID: {{ `{{ .aws_access_key_id }}` }}
data:
- secretKey: aws_secret_access_key
remoteRef:
key: "pushsecrets/s3-anomaly"
property: "AWS_SECRET_ACCESS_KEY"

- secretKey: aws_access_key_id
remoteRef:
key: "pushsecrets/s3-anomaly"
property: "AWS_ACCESS_KEY_ID"
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ metadata:
annotations:
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
spec:
configuration:
- type: configmap
value: kafka-to-s3-config
- type: secret
value: s3-anomaly
traits:
mount:
configs:
- configmap:kafka-to-s3-config
- secret:s3-anomaly
profile: OpenShift
sources:
- content: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,21 @@ spec:
name: s3-anomaly
template:
type: Opaque
dataFrom:
- extract:
engineVersion: v2
data:
application.properties: |
AWS_SECRET_ACCESS_KEY: {{ `{{ .aws_secret_access_key }}` }}
AWS_ACCESS_KEY_ID: {{ `{{ .aws_access_key_id }}` }}
data:
- secretKey: aws_secret_access_key
remoteRef:
key: "pushsecrets/s3-anomaly"
property: "AWS_SECRET_ACCESS_KEY"

- secretKey: aws_access_key_id
remoteRef:
key: "pushsecrets/s3-anomaly"
property: "AWS_ACCESS_KEY_ID"
{{- end }}
{{- end }}

0 comments on commit f33a9e3

Please sign in to comment.