generated from cloud-native-toolkit/template-terraform-gitops
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Once DB2 warehouse has been provisioned we need the connection information for the instance. There are five pieces of information required:
- host
- port
- database name
- username
- password
The way to store/pass this information in the cluster is via a secret.
-
Create a secret that contains the required information (ideally this secret already exists but if not a job is needed to create it). The host can be the internal service DNS name (
{service name}.{namespace}.svc) -
Add the following outputs to the module
secret_name- the name of the secret that contains the connectivity informationhost_key- the key in the secret that contains the host information (e.g. "host")port_key- the key in the secret that contains the port informationdatabase_key- the key in the secret that contains the database name informationusername_key- the key in the secret that contains the username informationpassword_key- the key in the secret that contains the password information
-
Add the interface definition to the module metadata
name: gitops-cp-db2wh type: terraform interfaces: - github.com/cloud-native-toolkit/automation-modules#database-secret
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request