Skip to content

Commit

Permalink
Merge pull request #51 from catenax-ng/hot-fix-for-3.01
Browse files Browse the repository at this point in the history
change for sde backend postgres chart
  • Loading branch information
adkumar1 authored Mar 18, 2023
2 parents aa1973e + de56153 commit fe1da25
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,6 @@ public Map<String, String> managePackage(Customer customerDetails, AppActions ac

String packageName = tool.getLabel();

String dftDb = "jdbc:postgresql://" + packageName + "-dftbackend-dftpostgresql:5432/postgres";
inputData.put("dftdatabaseurl", dftDb);

if (AppActions.CREATE.equals(action))
appManagement.createPackage(DFT_BACKEND, packageName, inputData);
else
Expand Down
8 changes: 1 addition & 7 deletions src/main/resources/flyway/V1__auto-setup-table.sql
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,6 @@ spring.datasource.driver-class-name=org.postgresql.Driver
spring.jpa.open-in-view=false
spring.datasource.url=$\{dftdatabaseurl\}
spring.datasource.username=$\{username\}
spring.datasource.password=$\{appdbpass\}
digital-twins.hostname=$\{sde.digital-twins.hostname\}
digital-twins.authentication.url=$\{sde.digital-twins.authentication.url\}
Expand Down Expand Up @@ -118,7 +112,7 @@ connector.discovery.token-url=$\{sde.connector.discovery.token-url\}
connector.discovery.clientId=$\{sde.connector.discovery.clientId\}
connector.discovery.clientSecret=$\{sde.connector.discovery.clientSecret\}', NULL, 'sde-backend/dftbackend', '1.9.0', 'helm.packages', 'v1alpha1', '{"dftpostgresql": {"enabled": true, "auth" : {"postgresPassword":"$\{postgresPassword\}","username":"$\{username\}","password":"$\{appdbpass\}","database":"$\{database\}"}},"ingresses":[{"enabled": true, "hostname":"$\{dnsName\}", "annotations": {}, "className": "nginx", "endpoints":["default"], "tls":{"enabled":true, "secretName":"dftbackend"}, "certManager":{"clusterIssuer":"letsencrypt-prod"}}], "configuration": {"properties": "$\{yamlValues\}"}}', 'PROPERTY');
connector.discovery.clientSecret=$\{sde.connector.discovery.clientSecret\}', NULL, 'sde-backend/dftbackend', '1.9.0', 'helm.packages', 'v1alpha1', '{"dftpostgresql": {"enabled": true, "auth" : {"secretKeys":{"password":"$\{postgresPassword}"\},"username":"$\{username\}","database":"$\{database\}"}},"ingresses":[{"enabled": true, "hostname":"$\{dnsName\}", "annotations": {}, "className": "nginx", "endpoints":["default"], "tls":{"enabled":true, "secretName":"dftbackend"}, "certManager":{"clusterIssuer":"letsencrypt-prod"}}], "configuration": {"properties": "$\{yamlValues\}"}}', 'PROPERTY');
INSERT INTO app_tbl
(app_name, context_cluster, context_namespace, expected_input_data, output_data, package_identifier, package_version, plugin_name, plugin_version, required_yaml_configuration, yaml_value_field_type)
VALUES('DFT_FRONTEND', 'default', 'kubeapps', 'REACT_APP_API_URL=$\{dftBackEndUrl\}
Expand Down

0 comments on commit fe1da25

Please sign in to comment.