Skip to content

Commit

Permalink
Revert applying scdf-datasource.
Browse files Browse the repository at this point in the history
  • Loading branch information
corneil committed Oct 23, 2024
1 parent fcd8efb commit 9ecc191
Show file tree
Hide file tree
Showing 4 changed files with 93 additions and 11 deletions.
8 changes: 2 additions & 6 deletions src/deploy/k8s/yaml/server-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ data:
enabled: false
maven:
remoteRepositories:
sprinklerRepo:
sprinklerRepo:
url: https://maven.pkg.github.com/corneil/sprinkler-demos
username: 'corneil'
password: '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'
Expand All @@ -32,18 +32,14 @@ data:
imagePullSecret: registry-key
containerSecurityContext:
runAsUser:
dataflow:
dataflow:
metrics.dashboard:
url: 'http://localhost:3000'
task:
platform:
kubernetes:
accounts:
default:
secretRefs:
- scdf-datasource
configMapRefs:
- scdf-datasource
environmentVariables: 'JAVA_TOOL_OPTIONS=-XX:ActiveProcessorCount=-1'
imagePullPolicy: IfNotPresent
imagePullSecret: registry-key
Expand Down
45 changes: 45 additions & 0 deletions src/deploy/k8s/yaml/server-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,51 @@ spec:
# Provide the Skipper service location
- name: SPRING_CLOUD_SKIPPER_CLIENT_SERVER_URI
value: 'http://${SKIPPER_SERVICE_HOST}:${SKIPPER_SERVICE_PORT}/api'
- name: SPRING_DATASOURCE_USERNAME
valueFrom:
secretKeyRef:
key: SPRING_DATASOURCE_USERNAME
name: scdf-datasource
- name: SPRING_DATASOURCE_PASSWORD
valueFrom:
secretKeyRef:
key: SPRING_DATASOURCE_PASSWORD
name: scdf-datasource
- name: SPRING_DATASOURCE_URL
valueFrom:
configMapKeyRef:
key: SPRING_DATASOURCE_URL
name: scdf-datasource
- name: SPRING_DATASOURCE_DRIVER_CLASS_NAME
valueFrom:
configMapKeyRef:
key: SPRING_DATASOURCE_DRIVER_CLASS_NAME
name: scdf-datasource
- name: SPRING_DATASOURCE_TEST_ON_BORROW
valueFrom:
configMapKeyRef:
key: SPRING_DATASOURCE_TEST_ON_BORROW
name: scdf-datasource
- name: SPRING_DATASOURCE_VALIDATION_QUERY
valueFrom:
configMapKeyRef:
key: SPRING_DATASOURCE_VALIDATION_QUERY
name: scdf-datasource
- name: 'SPRING_DATASOURCE_HIKARI_DATA_SOURCE_PROPERTIES_USE_UNICODE'
valueFrom:
configMapKeyRef:
key: 'SPRING_DATASOURCE_HIKARI_DATA_SOURCE_PROPERTIES_USE_UNICODE'
name: 'scdf-datasource'
- name: SPRING_DATASOURCE_HIKARI_DATA_SOURCE_PROPERTIES_CHARACTER_ENCODING
valueFrom:
configMapKeyRef:
key: SPRING_DATASOURCE_HIKARI_DATA_SOURCE_PROPERTIES_CHARACTER_ENCODING
name: scdf-datasource
- name: SPRING_JPA_DATABASE_PLATFORM
valueFrom:
configMapKeyRef:
key: SPRING_JPA_DATABASE_PLATFORM
name: scdf-datasource
- name: 'MANAGEMENT_METRICS_EXPORT_PROMETHEUS_ENABLED'
value: 'true'
- name: 'MANAGEMENT_METRICS_EXPORT_PROMETHEUS_RSOCKET_ENABLED'
Expand Down
6 changes: 1 addition & 5 deletions src/deploy/k8s/yaml/skipper-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,7 @@ data:
kubernetes:
accounts:
default:
secretRefs:
- default-binder
- scdf-datasource
configMapRefs:
- scdf-datasource
secretRefs: [ default-binder ]
imagePullPolicy: IfNotPresent
imagePullSecret:
- name: registry-key
Expand Down
45 changes: 45 additions & 0 deletions src/deploy/k8s/yaml/skipper-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,51 @@ spec:
value: 'false'
- name: SPRING_CLOUD_KUBERNETES_SECRETS_PATHS
value: /etc/secrets
- name: SPRING_DATASOURCE_USERNAME
valueFrom:
secretKeyRef:
key: SPRING_DATASOURCE_USERNAME
name: scdf-datasource
- name: SPRING_DATASOURCE_PASSWORD
valueFrom:
secretKeyRef:
key: SPRING_DATASOURCE_PASSWORD
name: scdf-datasource
- name: SPRING_DATASOURCE_URL
valueFrom:
configMapKeyRef:
key: SPRING_DATASOURCE_URL
name: scdf-datasource
- name: SPRING_DATASOURCE_DRIVER_CLASS_NAME
valueFrom:
configMapKeyRef:
key: SPRING_DATASOURCE_DRIVER_CLASS_NAME
name: scdf-datasource
- name: SPRING_DATASOURCE_TEST_ON_BORROW
valueFrom:
configMapKeyRef:
key: SPRING_DATASOURCE_TEST_ON_BORROW
name: scdf-datasource
- name: SPRING_DATASOURCE_VALIDATION_QUERY
valueFrom:
configMapKeyRef:
key: SPRING_DATASOURCE_VALIDATION_QUERY
name: scdf-datasource
- name: SPRING_DATASOURCE_HIKARI_DATA_SOURCE_PROPERTIES_USE_UNICODE
valueFrom:
configMapKeyRef:
key: SPRING_DATASOURCE_HIKARI_DATA_SOURCE_PROPERTIES_USE_UNICODE
name: scdf-datasource
- name: SPRING_DATASOURCE_HIKARI_DATA_SOURCE_PROPERTIES_CHARACTER_ENCODING
valueFrom:
configMapKeyRef:
key: SPRING_DATASOURCE_HIKARI_DATA_SOURCE_PROPERTIES_CHARACTER_ENCODING
name: scdf-datasource
- name: SPRING_JPA_DATABASE_PLATFORM
valueFrom:
configMapKeyRef:
key: SPRING_JPA_DATABASE_PLATFORM
name: scdf-datasource
- name: MANAGEMENT_METRICS_EXPORT_PROMETHEUS_ENABLED
value: 'true'
- name: MANAGEMENT_METRICS_EXPORT_PROMETHEUS_RSOCKET_ENABLED
Expand Down

0 comments on commit 9ecc191

Please sign in to comment.