Skip to content

Commit

Permalink
parameterize values
Browse files Browse the repository at this point in the history
  • Loading branch information
adkumar1 committed Feb 29, 2024
1 parent 8a333ea commit 9d04f95
Show file tree
Hide file tree
Showing 3 changed files with 159 additions and 74 deletions.
33 changes: 30 additions & 3 deletions charts/orchestrator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,39 @@ spec:
value: "3"
- name: RETRY_BACKOFFDELAY
value: "500"
- name: KEYCLOAKBEARERONLY
value: "{{ .Values.properties.keycloakBearerOnly }}"
- name: KEYCLOAKUSERESOURCEROLEMAPPINGS
value: "{{ .Values.properties.keycloakUseResourceRoleMappings }}"
- name: KEYCLOAKSSLREQUIRED
value: "{{ .Values.properties.keycloakSslRequired }}"
- name: MANUAL-CONNECTOR-REGISTRATION
value: "{{ .Values.properties.manual_connector_registration }}"
- name: MANUALUPDATE
value: "{{ .Values.properties.manualupdate }}"
- name: SMTP_AUTH
value: "{{ .Values.properties.smtp_auth }}"
- name: SMTP_TLS_ENABLE
value: "{{ .Values.properties.smtp_tls_enable }}"
- name: SPRING_DATASOURCE_USERNAME
value: {{ .Values.postgresql.auth.username | required ".Values.sdepostgresql.auth.username is required" | quote }}
{{- if .Values.postgresql.fullnameOverride }}
- name: SPRING_DATASOURCE_URL
value: "jdbc:postgresql://{{ .Values.postgresql.fullnameOverride }}:{{ .Values.postgresql.auth.port }}/{{ .Values.postgresql.auth.database }}"
- name: SPRING_DATASOURCE_USERNAME
value: {{ .Values.postgresql.auth.username | required ".Values.postgresql.auth.username is required" | quote }}
- name: SPRING_DATASOURCE_PASSWORD
value: {{ .Values.postgresql.auth.password | required ".Values.postgresql.auth.password is required" | quote}}
valueFrom:
secretKeyRef:
name: {{ .Values.postgresql.fullnameOverride }}
key: "password"
{{- else }}
- name: SPRING_DATASOURCE_URL
value: "jdbc:postgresql://{{ include "managed-service-orchestrator.fullname" . }}-postgresql:{{ .Values.postgresql.auth.port }}/{{ .Values.postgresql.auth.database }}"
- name: SPRING_DATASOURCE_PASSWORD
valueFrom:
secretKeyRef:
name: {{ include "sde.fullname" . }}-postgresql
key: "password"
{{- end }}

resources:
{{- toYaml .Values.resources | nindent 12 }}
Expand Down
130 changes: 59 additions & 71 deletions charts/orchestrator/templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,74 +24,62 @@ type: Opaque
metadata:
name: {{ .Values.secretRef }}
stringData:
connectorTestServiceUrl: default
connectorregisterUrl: default
connectorregisterkeycloakclientId: default
connectorregisterkeycloakclientSecret: default
connectorregisterkeycloaktokenURI: default
dapsJksUrl: default
dapsTokenUrl: default
dapsUrl: default
#dbUrl: jdbc:postgresql://postgresql:5432/postgres
#dbpassword: default
#dbuser: postgres
dnsname: default
dnsnameProtocol: default
edc_miwUrl: default
edc_ssi_authorityId: default
emailpassword: default
emailuser: default
keycloakAuthserverUrl: default
keycloakBearerOnly: "true"
keycloakClientid: default
keycloakRealm: default
keycloakResource: default
keycloakSslRequired: external
keycloakUseResourceRoleMappings: "true"
kubeappsToken: default
kubeappsUrl: default
mail_from: default
mail_to: default
manual-connector-registration: "false"
manualupdate: "true"
password: default
portalclientid: default
portalclientsecret: default
portalemail: default
portaltokenurl: default
portalurl: default
postgres-password: default
resourceServerIssuer: default
sde_bpndiscovery-hostname: default
sde_connector-discovery-clientId: default
sde_connector-discovery-clientSecret: default
sde_connector-discovery-token-url: default
sde_digital-twins-authentication-url: default
sde_digital-twins-hostname: default
sde_discovery-authentication-url: default
sde_discovery-clientId: default
sde_discovery-clientSecret: default
sde_discovery-grantType: default
sde_dtregistry-url-prefix: default
sde_dtregistryidp-client-id: default
sde_dtregistrytenant-id: default
sde_keycloak-auth: default
sde_keycloak-realm: default
sde_keycloak-tokenUrl: default
sde_partner-pool-clientId: default
sde_partner-pool-clientSecret: default
sde_partner-pool-hostname: default
sde_portal-backend-authentication-url: default
sde_portal-backend-clientId: default
sde_portal-backend-clientSecret: default
sde_portal-backend-hostname: default
sde_resource-server-issuer: default
smtp_auth: "true"
smtp_host: default
smtp_port: default
smtp_tls_enable: "true"
targetCluster: default
targetNamesapce: default
vaultToken: default
vaultUrl: default

connectorTestServiceUrl: {{ .Values.properties.connectorTestServiceUrl }}
connectorregisterUrl: {{ .Values.properties.connectorregisterUrl }}
connectorregisterkeycloakclientId: {{ .Values.properties.connectorregisterkeycloakclientId }}
connectorregisterkeycloakclientSecret: {{ .Values.properties.connectorregisterkeycloakclientSecret }}
connectorregisterkeycloaktokenURI: {{ .Values.properties.connectorregisterkeycloaktokenURI }}
dapsJksUrl: {{ .Values.properties.dapsJksUrl }}
dapsTokenUrl: {{ .Values.properties.dapsTokenUrl }}
dapsUrl: {{ .Values.properties.dapsUrl }}
dnsname: {{ .Values.properties.dnsname }}
dnsnameProtocol: {{ .Values.properties.dnsnameProtocol }}
edc_miwUrl: {{ .Values.properties.edc_miwUrl }}
edc_ssi_authorityId: {{ .Values.properties.edc_ssi_authorityId }}
emailpassword: {{ .Values.properties.emailpassword }}
emailuser: {{ .Values.properties.emailuser }}
keycloakAuthserverUrl: {{ .Values.properties.keycloakAuthserverUrl }}
keycloakClientid: {{ .Values.properties.keycloakClientid }}
keycloakRealm: {{ .Values.properties.keycloakRealm }}
keycloakResource: {{ .Values.properties.keycloakResource }}
kubeappsToken: {{ .Values.properties.kubeappsToken }}
kubeappsUrl: {{ .Values.properties.kubeappsUrl }}
mail_from: {{ .Values.properties.mail_from }}
mail_to: {{ .Values.properties.mail_to }}
dbpassword: {{ .Values.properties.password }}
portalclientid: {{ .Values.properties.portalclientid }}
portalclientsecret: {{ .Values.properties.portalclientsecret }}
portalemail: {{ .Values.properties.portalemail }}
portaltokenurl: {{ .Values.properties.portaltokenurl }}
portalurl: {{ .Values.properties.portalurl }}
resourceServerIssuer: {{ .Values.properties.resourceServerIssuer }}
sde_bpndiscovery-hostname: {{ .Values.properties.sde_bpndiscovery_hostname }}
sde_connector-discovery-clientId: {{ .Values.properties.sde_connector_discovery_clientId }}
sde_connector-discovery-clientSecret: {{ .Values.properties.sde_connector_discovery_clientSecret }}
sde_connector-discovery-token-url: {{ .Values.properties.sde_connector_discovery_token_url }}
sde_digital-twins-authentication-url: {{ .Values.properties.sde_digital_twins_authentication_url }}
sde_digital-twins-hostname: {{ .Values.properties.sde_digital_twins_hostname }}
sde_discovery-authentication-url: {{ .Values.properties.sde_discovery_authentication_url }}
sde_discovery-clientId: {{ .Values.properties.sde_discovery_clientId }}
sde_discovery-clientSecret: {{ .Values.properties.sde_discovery_clientSecret }}
sde_discovery-grantType: {{ .Values.properties.sde_discovery_grantType }}
sde_dtregistry-url-prefix: {{ .Values.properties.sde_dtregistry_url_prefix }}
sde_dtregistryidp-client-id: {{ .Values.properties.sde_dtregistryidp_client_id }}
sde_dtregistrytenant-id: {{ .Values.properties.sde_dtregistrytenant_id }}
sde_keycloak-auth: {{ .Values.properties.sde_keycloak_auth }}
sde_keycloak-realm: {{ .Values.properties.sde_keycloak_realm }}
sde_keycloak-tokenUrl: {{ .Values.properties.sde_keycloak_tokenUrl }}
sde_partner-pool-clientId: {{ .Values.properties.sde_partner_pool_clientId }}
sde_partner-pool-clientSecret: {{ .Values.properties.sde_partner_pool_clientSecret }}
sde_partner-pool-hostname: {{ .Values.properties.sde_partner_pool_hostname }}
sde_portal-backend-authentication-url: {{ .Values.properties.sde_portal_backend_authentication_url }}
sde_portal-backend-clientId: {{ .Values.properties.sde_portal_backend_clientId }}
sde_portal-backend-clientSecret: {{ .Values.properties.sde_portal_backend_clientSecret }}
sde_portal-backend-hostname: {{ .Values.properties.sde_portal_backend_hostname }}
sde_resource-server-issuer: {{ .Values.properties.sde_resource_server_issuer }}
smtp_host: {{ .Values.properties.smtp_host }}
smtp_port: {{ .Values.properties.smtp_port }}
targetCluster: {{ .Values.properties.targetCluster }}
targetNamesapce: {{ .Values.properties.targetNamesapce }}
vaultToken: {{ .Values.properties.vaultToken }}
vaultUrl: {{ .Values.properties.vaultUrl }}
70 changes: 70 additions & 0 deletions charts/orchestrator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,76 @@ postgresql:
auth:
username: "postgres"
password: "default"
postgresPassword: "default"
database: "postgres"
port: 5432
existingSecret: ""

properties:
connectorTestServiceUrl: default
connectorregisterUrl: default
connectorregisterkeycloakclientId: default
connectorregisterkeycloakclientSecret: default
connectorregisterkeycloaktokenURI: default
dapsJksUrl: default
dapsTokenUrl: default
dapsUrl: default
dnsname: default
dnsnameProtocol: default
edc_miwUrl: default
edc_ssi_authorityId: default
emailpassword: default
emailuser: default
keycloakAuthserverUrl: default
keycloakBearerOnly: "true"
keycloakClientid: default
keycloakRealm: default
keycloakResource: default
keycloakSslRequired: external
keycloakUseResourceRoleMappings: "true"
kubeappsToken: default
kubeappsUrl: default
mail_from: default
mail_to: default
manual_connector_registration: "false"
manualupdate: "true"
password: default
portalclientid: default
portalclientsecret: default
portalemail: default
portaltokenurl: default
portalurl: default
postgres-password: default
resourceServerIssuer: default
sde_bpndiscovery_hostname: default
sde_connector_discovery_clientId: default
sde_connector_discovery_clientSecret: default
sde_connector_discovery_token_url: default
sde_digital_twins_authentication_url: default
sde_digital_twins_hostname: default
sde_discovery_authentication_url: default
sde_discovery_clientId: default
sde_discovery_clientSecret: default
sde_discovery_grantType: default
sde_dtregistry_url_prefix: default
sde_dtregistryidp_client_id: default
sde_dtregistrytenant_id: default
sde_keycloak_auth: default
sde_keycloak_realm: default
sde_keycloak_tokenUrl: default
sde_partner_pool_clientId: default
sde_partner_pool_clientSecret: default
sde_partner_pool_hostname: default
sde_portal_backend_authentication_url: default
sde_portal_backend_clientId: default
sde_portal_backend_clientSecret: default
sde_portal_backend_hostname: default
sde_resource_server_issuer: default
smtp_auth: "true"
smtp_host: default
smtp_port: default
smtp_tls_enable: "true"
targetCluster: default
targetNamesapce: default
vaultToken: default
vaultUrl: default

0 comments on commit 9d04f95

Please sign in to comment.