Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
e4ced45
EFS CSI Driver operator changes
dpdifferent1 Dec 9, 2025
97ad4db
updated task list
dpdifferent1 Dec 11, 2025
2861846
updated role arn variable name
dpdifferent1 Dec 13, 2025
3dc37de
removed unused param from task
dpdifferent1 Dec 26, 2025
ef7dcfd
blank commit to trigger build
dpdifferent1 Dec 26, 2025
80e7aee
Merge branch 'master' into efs-csi-driver-operator
Hardik-Prajapati-10 Dec 26, 2025
770ddd9
Removed install plan param for testing
dpdifferent1 Jan 5, 2026
3aa742a
Registered MAS CLI function gitops-efs-csi-driver-operator
dpdifferent1 Jan 5, 2026
0d1efab
Updated task step
dpdifferent1 Jan 5, 2026
a7e43c3
added hypervisor param & conditioned mas-cluster task
dpdifferent1 Feb 5, 2026
786d552
Merge master branch into eps-csi-driver-operator (#2048)
dpdifferent1 Feb 9, 2026
fca0236
modified condition to invoke gitops-efs-csi-driver task in mas-cluste…
dpdifferent1 Feb 10, 2026
4781176
changed condition value for gitops-efs-csi-driver task
dpdifferent1 Feb 10, 2026
c592514
Modified condition in gitops-mas-cluster pipeline task
dpdifferent1 Feb 10, 2026
87347b4
added hypervisor in ibm-mas-cluster-base.yaml.j2
Feb 11, 2026
d927fb8
modified secrets.baseline
Feb 11, 2026
38b6459
Merge branch 'master' into efs-csi-driver-operator
Feb 11, 2026
423cc20
modified secrets.baseline
Feb 11, 2026
6dd9fe9
modified cluster base template & gitops_cluster function
dpdifferent1 Feb 11, 2026
ad7919e
updated secrets.baseline
dpdifferent1 Feb 11, 2026
6f808ba
updated gitops_cluster task & function
dpdifferent1 Feb 11, 2026
700814a
merging master into efs-csi-driver-operator (#2059)
dpdifferent1 Feb 11, 2026
3ded91b
updated .secrets.baseline
dpdifferent1 Feb 11, 2026
5f65d4e
passed hypervisor param into the function
dpdifferent1 Feb 11, 2026
ea1239f
Merge branch 'master' into efs-csi-driver-operator
dpdifferent1 Feb 13, 2026
43ce4a4
changed docker buildx version due to failing build
dpdifferent1 Feb 13, 2026
83a0c6c
gitops-mas-apps.yml.j2 changes for rds
Feb 13, 2026
3a6e801
Merge branch 'master' into efs-csi-driver-operator
dpdifferent1 Feb 13, 2026
9b3fd26
added subscription_source_namespace in efs-csi-driver template
dpdifferent1 Feb 17, 2026
5b831b2
Merge branch 'efs-csi-driver-operator' of github.com:ibm-mas/cli into…
dpdifferent1 Feb 17, 2026
82be2a3
Adding jdbc instance name
amitpandey0217 Feb 17, 2026
6281ca3
Fix for jdbc instande name
amitpandey0217 Feb 17, 2026
1ec290d
Changed catalog_source_namespace for EFS
dpdifferent1 Feb 17, 2026
f4aa7d6
Fix for jdbc instande name
amitpandey0217 Feb 17, 2026
d595f00
Fix for jdbc instande name
amitpandey0217 Feb 18, 2026
650cd3d
Fix for jdbc instande name
amitpandey0217 Feb 18, 2026
446f8bc
Fix for jdbc instande name
amitpandey0217 Feb 18, 2026
7b1fc53
Fix for jdbc instande name
amitpandey0217 Feb 18, 2026
562b7bc
rds-db2 connect
Feb 19, 2026
6f6ab92
Merge remote-tracking branch 'origin/efs-csi-driver-operator' into ef…
Feb 19, 2026
f1a06a1
Added static params to pipeline task & function
dpdifferent1 Feb 19, 2026
60b7929
Merge branch 'efs-csi-driver-operator' of github.com:ibm-mas/cli into…
dpdifferent1 Feb 19, 2026
3bc5b81
corrected file
dpdifferent1 Feb 20, 2026
2891640
rds and efs updates
Feb 23, 2026
2066ef7
Merge remote-tracking branch 'origin/efs-csi-driver-operator' into ef…
Feb 23, 2026
e7663de
rds and efs updates
Feb 23, 2026
ff3d3a3
corrected indentation
Feb 25, 2026
6de895a
Merge branch 'master' into efs-csi-driver-operator
amitpandey0217 Feb 26, 2026
efdb3df
Review comment
amitpandey0217 Feb 26, 2026
bf0f1d4
Review comment
amitpandey0217 Feb 26, 2026
bad0f27
Review comment
amitpandey0217 Feb 26, 2026
fb2db6f
Review comment
amitpandey0217 Feb 26, 2026
98c1500
Merge branch 'master' into efs-csi-driver-operator
amitpandey0217 Feb 26, 2026
c3cba7e
Removed new function & merged into gitops_efs_csi_driver
dpdifferent1 Feb 27, 2026
e86b6a3
Setting defaults in gitops-cluster
dpdifferent1 Feb 27, 2026
a39a520
Review comment fix for jdbc instance name
amitpandey0217 Feb 27, 2026
48cf5ce
Removed validaion for hypervisor param
dpdifferent1 Feb 27, 2026
f2aa5a8
removed hypervisor from gitops-cluster task
dpdifferent1 Feb 27, 2026
b36efbe
Review comment fix for jdbc instance name
amitpandey0217 Feb 27, 2026
7afd5d7
Review comment fix for jdbc instance name
amitpandey0217 Feb 27, 2026
040dcf7
Merge branch 'master' into efs-csi-driver-operator
amitpandey0217 Feb 27, 2026
8344a9e
Added defaults inside the function
dpdifferent1 Feb 28, 2026
f9c00dc
Review comment fix for jdbc instance name
amitpandey0217 Mar 2, 2026
bfa570d
Merge branch 'master' into efs-csi-driver-operator
amitpandey0217 Mar 2, 2026
bcea4a0
Merge branch 'master' into efs-csi-driver-operator
dpdifferent1 Mar 2, 2026
c01d354
Revmoved hypervisor param from gitops_cluster function
dpdifferent1 Mar 2, 2026
3593648
scanned for secrets
dpdifferent1 Mar 2, 2026
9d543f9
Removed unused params & added efs_install_action in gitops-mas-cluste…
dpdifferent1 Mar 2, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .secrets.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"files": "build/bin/config/oscap/ssg-rhel9-ds.xml|^.secrets.baseline$",
"lines": null
},
"generated_at": "2026-03-02T06:45:07Z",
"generated_at": "2026-03-02T12:58:50Z",
"plugins_used": [
{
"name": "AWSKeyDetector"
Expand Down Expand Up @@ -564,7 +564,7 @@
"hashed_secret": "146abac680841f15b3e7b5259e1dfcdd9de49fdd",
"is_secret": false,
"is_verified": false,
"line_number": 13,
"line_number": 17,
"type": "Secret Keyword",
"verified_result": null
}
Expand Down
32 changes: 28 additions & 4 deletions image/cli/mascli/functions/gitops_efs_csi_driver
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ Basic Configuration:
-a, --account-id ${COLOR_YELLOW}ACCOUNT_ID${TEXT_RESET} Account name that the cluster belongs to
-c, --cluster-id ${COLOR_YELLOW}CLUSTER_ID${TEXT_RESET} Cluster ID

--efs-csi-driver-role-arn ${COLOR_YELLOW}EFS_CSI_DRIVER_ROLE_ARN${TEXT_RESET} ARN of the IAM Role to assign to the EFS CSI driver
-r, --efs-csi-driver-role-arn ${COLOR_YELLOW}EFS_CSI_DRIVER_ROLE_ARN${TEXT_RESET} ARN of the IAM Role to assign to the EFS CSI driver
--efs-catalog-source ${COLOR_YELLOW}EFS_CATALOG_SOURCE${TEXT_RESET} EFS catalog source
--efs-catalog-source-namespace ${COLOR_YELLOW}EFS_CATALOG_SOURCE_NAMESPACE${TEXT_RESET} EFS catalog source namespace
--efs-channel ${COLOR_YELLOW}EFS_CHANNEL${TEXT_RESET} EFS channel
--efs-subscription-source-namespace ${COLOR_YELLOW}EFS_SUBSCRIPTION_SOURCE_NAMESPACE${TEXT_RESET} EFS subscription source namespace

Automatic GitHub Push (Optional):
-P, --github-push ${COLOR_YELLOW}GITHUB_PUSH${TEXT_RESET} Enable automatic push to GitHub
Expand Down Expand Up @@ -51,10 +55,21 @@ function gitops_efs_csi_driver_noninteractive() {
-c|--cluster-id)
export CLUSTER_ID=$1 && shift
;;

--efs-csi-driver-role-arn)
-r|--efs-csi-driver-role-arn)
export EFS_CSI_DRIVER_ROLE_ARN=$1 && shift
;;
--efs-catalog-source)
export EFS_CATALOG_SOURCE=$1 && shift
;;
--efs-catalog-source-namespace)
export EFS_CATALOG_SOURCE_NAMESPACE=$1 && shift
;;
--efs-channel)
export EFS_CHANNEL=$1 && shift
;;
--efs-subscription-source-namespace)
export EFS_SUBSCRIPTION_SOURCE_NAMESPACE=$1 && shift
;;
Comment thread
whitfiea marked this conversation as resolved.


# Automatic GitHub Push
Expand Down Expand Up @@ -91,6 +106,11 @@ function gitops_efs_csi_driver_noninteractive() {
esac
done

[[ -z "$EFS_CATALOG_SOURCE" ]] && export EFS_CATALOG_SOURCE="redhat-operators"
[[ -z "$EFS_CATALOG_SOURCE_NAMESPACE" ]] && export EFS_CATALOG_SOURCE_NAMESPACE="openshift-marketplace"
[[ -z "$EFS_CHANNEL" ]] && export EFS_CHANNEL="stable"
[[ -z "$EFS_SUBSCRIPTION_SOURCE_NAMESPACE" ]] && export EFS_SUBSCRIPTION_SOURCE_NAMESPACE="openshift-cluster-csi-drivers"

[[ -z "$GITOPS_WORKING_DIR" ]] && gitops_efs_csi_driver_help "GITOPS_WORKING_DIR is not set"
[[ -z "$ACCOUNT_ID" ]] && gitops_efs_csi_driver_help "ACCOUNT_ID is not set"
[[ -z "$CLUSTER_ID" ]] && gitops_efs_csi_driver_help "CLUSTER_ID is not set"
Expand Down Expand Up @@ -154,7 +174,11 @@ function gitops_efs_csi_driver() {

echo "${TEXT_DIM}"
echo_h2 "EFS CSI Driver" " "
echo_reset_dim "EFS_CSI_DRIVER_ROLE_ARN .......................... ${COLOR_MAGENTA}${EFS_CSI_DRIVER_ROLE_ARN}"
echo_reset_dim "Role ARN ............................... ${COLOR_MAGENTA}${EFS_CSI_DRIVER_ROLE_ARN}"
echo_reset_dim "Catalog Source ......................... ${COLOR_MAGENTA}${EFS_CATALOG_SOURCE}"
echo_reset_dim "Catalog Source Namespace ............... ${COLOR_MAGENTA}${EFS_CATALOG_SOURCE_NAMESPACE}"
echo_reset_dim "Channel ................................ ${COLOR_MAGENTA}${EFS_CHANNEL}"
echo_reset_dim "Subscription Source Namespace .......... ${COLOR_MAGENTA}${EFS_SUBSCRIPTION_SOURCE_NAMESPACE}"
reset_colors


Expand Down
51 changes: 47 additions & 4 deletions image/cli/mascli/functions/gitops_iac
Original file line number Diff line number Diff line change
Expand Up @@ -1236,17 +1236,19 @@ function gitops_iac_provision_rdsdb2(){
echo RDS_DB2_CONFIG_FACILITIES
fi
APP_PARAMS=(
"manage $RDS_MANAGE_DB2_INSTANCE_CLASS $RDS_MANAGE_DB2_STORAGE_TYPE $RDS_MANAGE_ALLOCATED_STORAGE"
"iot $RDS_IOT_DB2_INSTANCE_CLASS $RDS_IOT_DB2_STORAGE_TYPE $RDS_IOT_ALLOCATED_STORAGE"
"facilities $RDS_FACILITIES_DB2_INSTANCE_CLASS $RDS_FACILITIES_DB2_STORAGE_TYPE $RDS_FACILITIES_ALLOCATED_STORAGE"
"manage $RDS_MANAGE_DB2_INSTANCE_CLASS $RDS_MANAGE_DB2_STORAGE_TYPE $RDS_MANAGE_ALLOCATED_STORAGE $RDS_MANAGE_JDBC_CONNECTION_URL_ADDITIONAL_PARAMS"
"iot $RDS_IOT_DB2_INSTANCE_CLASS $RDS_IOT_DB2_STORAGE_TYPE $RDS_IOT_ALLOCATED_STORAGE $RDS_IOT_JDBC_CONNECTION_URL_ADDITIONAL_PARAMS"
"facilities $RDS_FACILITIES_DB2_INSTANCE_CLASS $RDS_FACILITIES_DB2_STORAGE_TYPE $RDS_FACILITIES_ALLOCATED_STORAGE $RDS_FACILITIES_JDBC_CONNECTION_URL_ADDITIONAL_PARAMS"
)

for row in "${APP_PARAMS[@]}"; do
read -r app instance storage allocated <<< "$row"
read -r app instance storage allocated additional_params<<< "$row"

if check_params "$app" "$instance" "$storage" "$allocated"; then
export RDS_APP="$app"
export RDS_S3_APP_NAME="$app"
export RDS_JDBC_CONNECTION_URL_ADDITIONAL_PARAMS=$(set_ssl_params "$additional_params")
echo "Additional params for $app - ${RDS_JDBC_CONNECTION_URL_ADDITIONAL_PARAMS}"
echo "Generating rds-db2-$app.tf file ${GITOPS_CLUSTER_DIR}/rds-db2-$app.tf"
jinjanate_commmon $CLI_DIR/templates/gitops/appset-configs/cluster/instance/ibm-iac-rdsdb2.tf.j2 ${GITOPS_CLUSTER_DIR}/db2rds-$app.tf

Expand Down Expand Up @@ -1693,3 +1695,44 @@ function check_params() {
echo "$app_name"
return 0
}


# Function to set or append SSL connection parameters
# Usage: set_ssl_params "$ADDITIONAL_PARAMS"
# Returns: SSL connection string with default or appended values
# Example: set_ssl_params "" returns "sslConnection=true;sslVersion=TLSv1.2"
# set_ssl_params "param1=value1" returns "param1=value1;sslConnection=true;sslVersion=TLSv1.2"
# set_ssl_params "sslConnection=true" returns "sslConnection=true;sslVersion=TLSv1.2"
# set_ssl_params "sslVersion=TLSv1.2" returns "sslVersion=TLSv1.2;sslConnection=true"
# set_ssl_params "sslConnection=true;sslVersion=TLSv1.2" returns "sslConnection=true;sslVersion=TLSv1.2"
function set_ssl_params() {
local additional_params="$1"
local result="$additional_params"

# If additional_params is empty, return default SSL settings
if [[ -z "$additional_params" ]]; then
echo "sslConnection=true;sslVersion=TLSv1.2"
return 0
fi

# Check if sslConnection is missing and append it
if [[ "$additional_params" != *"sslConnection="* ]]; then
if [[ -n "$result" ]]; then
result="${result};sslConnection=true"
else
result="sslConnection=true"
fi
fi

# Check if sslVersion is missing and append it
if [[ "$additional_params" != *"sslVersion="* ]]; then
if [[ -n "$result" ]]; then
result="${result};sslVersion=TLSv1.2"
else
result="sslVersion=TLSv1.2"
fi
fi

echo "$result"
return 0
}
15 changes: 10 additions & 5 deletions image/cli/mascli/functions/gitops_mas_config
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ JDBC Configuration (required if MAS_CONFIG_TYPE is "jdbc"):
--jdbc-type ${COLOR_YELLOW}JDBC_TYPE${TEXT_RESET} Set to 'incluster-db2' when wanting to use the gitops configured, via gitops-db2u-database, db2u cluster (defaults to incluster-db2)
--jdbc-instance-name ${COLOR_YELLOW}JDBC_INSTANCE_NAME${TEXT_RESET} The JDBC instance name to use. Required for all JDBC_TYPE's
--jdbc-connection-url ${COLOR_YELLOW}JDBC_CONNECTION_URL${TEXT_RESET} The JDBC connection URL. Required when JDBC_TYPE is not incluster-db2 and rds-db2
--jdbc-certificate-file ${COLOR_YELLOW}JDBC_CERTIFICATE_FILE${TEXT_RESET} Path to file containing CA Certificate for JDBC server. Required when JDBC_TYPE is not incluster-db2
--jdbc-certificate-file ${COLOR_YELLOW}JDBC_CERTIFICATE_FILE${TEXT_RESET} Path to file containing CA Certificate for JDBC server. Required when JDBC_TYPE is not incluster-db2 and rds-db2
--jdbc-route ${COLOR_YELLOW}JDBC_ROUTE${TEXT_RESET} By default routes are not exposed to public. To expose route, set this to public.

SMTP Configuration (required if MAS_CONFIG_TYPE is "smtp"):
Expand Down Expand Up @@ -902,9 +902,14 @@ function gitops_mas_config() {
export JDBC_CONFIG_SECRET_ID=${ACCOUNT_ID}${SECRETS_KEY_SEPERATOR}${CLUSTER_ID}${SECRETS_KEY_SEPERATOR}${MAS_INSTANCE_ID}${SECRETS_KEY_SEPERATOR}jdbc${SECRETS_KEY_SEPERATOR}${JDBC_INSTANCE_NAME}${SECRETS_KEY_SEPERATOR}config
export SECRET_KEY_DB2_DBNAME=${JDBC_CONFIG_SECRET_ID}#db2_dbname
export SECRET_KEY_DB2_NAMESPACE=${JDBC_CONFIG_SECRET_ID}#db2_namespace
export SECRET_KEY_JDBC_INSTANCE_NAME=${JDBC_CONFIG_SECRET_ID}#jdbc_instance_name
export SECRET_KEY_JDBC_CONNECTION_URL=${JDBC_CONFIG_SECRET_ID}#jdbc_connection_url
export SECRET_KEY_JDBC_CERTIFICATE_CONTENT=${JDBC_CONFIG_SECRET_ID}#ca_b64
elif [ "${JDBC_TYPE}" == "rds-db2" ]; then
# For rds-db2, the certificate is already stored in AWS Secrets Manager by gitops_rds_db2_database
export JDBC_CONFIG_SECRET_ID=${ACCOUNT_ID}${SECRETS_KEY_SEPERATOR}${CLUSTER_ID}${SECRETS_KEY_SEPERATOR}${MAS_INSTANCE_ID}${SECRETS_KEY_SEPERATOR}jdbc${SECRETS_KEY_SEPERATOR}${JDBC_INSTANCE_NAME}${SECRETS_KEY_SEPERATOR}config
export JDBC_CERTIFICATE_CONTENT_B64=$(cat $JDBC_CERTIFICATE_FILE | base64 -w0)
export SECRET_KEY_JDBC_CONNECTION_URL=${JDBC_CONFIG_SECRET_ID}#jdbc_connection_url
export SECRET_KEY_JDBC_CERTIFICATE_CONTENT=${JDBC_CONFIG_SECRET_ID}#ca_b64
else
# This secret we are creating here
export JDBC_CONFIG_SECRET_ID=${ACCOUNT_ID}${SECRETS_KEY_SEPERATOR}${CLUSTER_ID}${SECRETS_KEY_SEPERATOR}${MAS_INSTANCE_ID}${SECRETS_KEY_SEPERATOR}jdbc${SECRETS_KEY_SEPERATOR}${JDBC_INSTANCE_NAME}${SECRETS_KEY_SEPERATOR}config
Expand All @@ -913,10 +918,10 @@ function gitops_mas_config() {
sm_update_secret $JDBC_CONFIG_SECRET_ID "{ \"jdbc_connection_url\": \"${JDBC_CONNECTION_URL}\", \"jdbc_instance_name\": \"${JDBC_INSTANCE_NAME}\", \"ca_b64\": \"${JDBC_CERTIFICATE_CONTENT_B64}\" }" "${TAGS}"
echo_reset_dim "JDBC_INSTANCE_NAME ........................ ${COLOR_MAGENTA}$JDBC_INSTANCE_NAME"
echo_reset_dim "JDBC_CONNECTION_URL ....................... ${COLOR_MAGENTA}${JDBC_CONNECTION_URL}"
export SECRET_KEY_JDBC_CONNECTION_URL=${JDBC_CONFIG_SECRET_ID}#jdbc_connection_url
export SECRET_KEY_JDBC_CERTIFICATE_CONTENT=${JDBC_CONFIG_SECRET_ID}#ca_b64
export SECRET_KEY_JDBC_INSTANCE_NAME=${JDBC_CONFIG_SECRET_ID}#jdbc_instance_name
fi
export SECRET_KEY_JDBC_CONNECTION_URL=${JDBC_CONFIG_SECRET_ID}#jdbc_connection_url
export SECRET_KEY_JDBC_CERTIFICATE_CONTENT=${JDBC_CONFIG_SECRET_ID}#ca_b64
export SECRET_KEY_JDBC_INSTANCE_NAME=${JDBC_CONFIG_SECRET_ID}#jdbc_instance_name
Comment thread
whitfiea marked this conversation as resolved.
fi

# Source: gitops_suite_smtp_config
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
merge-key: "{{ ACCOUNT_ID }}/{{ CLUSTER_ID }}"

efs_csi_driver:
catalog_source: redhat-operators
catalog_source_namespace: openshift-marketplace
channel: stable
catalog_source: {{ EFS_CATALOG_SOURCE }}
catalog_source_namespace: {{ EFS_CATALOG_SOURCE_NAMESPACE }}
channel: {{ EFS_CHANNEL }}
subscription_source_namespace: {{ EFS_SUBSCRIPTION_SOURCE_NAMESPACE }}
role_arn: {{ EFS_CSI_DRIVER_ROLE_ARN }}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ mas_config_api_version: "config.mas.ibm.com"
use_postdelete_hooks: {{ USE_POSTDELETE_HOOKS }}

jdbc_type: {{ JDBC_TYPE }}
{% if JDBC_TYPE == "rds-db2" %}
jdbc_instance_name: {{ JDBC_INSTANCE_NAME }}
{% else %}
jdbc_instance_name: <path:{{ SECRETS_PATH }}:{{ SECRET_KEY_JDBC_INSTANCE_NAME }}>
{% endif %}
jdbc_instance_username: <path:{{ SECRETS_PATH }}:{{ SECRET_KEY_JDBC_USERNAME }}>
jdbc_instance_password: <path:{{ SECRETS_PATH }}:{{ SECRET_KEY_JDBC_PASSWORD }}>
mas_config_dir: {{ MAS_CONFIG_DIR }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{%- if RDS_APP | upper == "MANAGE" -%}
{{RDS_DB2_CONFIG_MANAGE}}
{%- endif -%}
{% endif -%}
{%- if RDS_APP | upper == "IOT" -%}
{{RDS_DB2_CONFIG_IOT}}
{%- endif -%}
{% endif -%}
{%- if RDS_APP | upper == "FACILITIES" -%}
{{RDS_DB2_CONFIG_FACILITIES}}
{%- endif -%}
{% endif -%}
db2comm: "SSL"
ssl_svcename: "50001"
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ module "efs" {

}

throughput_mode = each.value.throughput_mode
efs_mount_ingress_subnet_ids = local.cluster.internal_subnet_ids
efs_mount_egress_subnet_ids = local.cluster.external_subnet_ids
efs_worker_subnet_id_list = local.cluster.internal_subnet_ids
throughput_mode = each.value.throughput_mode
efs_mount_ingress_subnet_ids = local.cluster.external_subnet_ids
efs_mount_egress_subnet_ids = local.cluster.external_subnet_ids
efs_worker_subnet_id_list = local.cluster.internal_subnet_ids
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ locals {
mas-saas-license-db2-json-{{RDS_APP}} = jsondecode(data.aws_secretsmanager_secret_version.mas-saas-license-db2-{{RDS_APP}}.secret_string)
ibm_customer_id_{{RDS_APP}} = local.mas-saas-license-db2-json-{{RDS_APP}}["ibm_customer_id"]
ibm_site_id_{{RDS_APP}} = local.mas-saas-license-db2-json-{{RDS_APP}}["ibm_site_id"]
secret_suffix_{{RDS_APP}} = join("-", ["rds", var.instance_name, "{{RDS_APP}}"])
}

module "db2rds-{{RDS_APP}}" {
Expand All @@ -25,8 +24,8 @@ module "db2rds-{{RDS_APP}}" {
username = "db2admin"
subnet_grp_id_list = local.cluster.internal_subnet_ids
db2_egress_subnet_ids = local.cluster.external_subnet_ids
db2_ingress_subnet_ids = local.cluster.internal_subnet_ids
db2_additional_ingress_cidrs = local.cluster.cidrs.workload_internal
db2_ingress_subnet_ids = local.cluster.external_subnet_ids
db2_additional_ingress_cidrs = local.cluster.cidrs.workload_external
db2_additional_egress_cidrs = local.cluster.cidrs.workload_external
db2_instance_class = "{{RDS_MANAGE_DB2_INSTANCE_CLASS}}"
db2_storage_type = "gp3"
Expand All @@ -45,7 +44,9 @@ module "db2rds-{{RDS_APP}}" {
backup_retention_period = 30
monitoring_interval = 30
db2_preferred_backup_window = "01:00-02:00"
db2_port = "50001"
db2_port = "50000"
db2_ssl_port = "50001"
connection_url_additional_params = "{{RDS_JDBC_CONNECTION_URL_ADDITIONAL_PARAMS}}"
db2_parameters_file_path = "./db2_parameters-{{RDS_APP}}.yaml"
major_engine_version = "11.5"
s3_bucket_name_for_audit_log = join("-", [var.cluster_name, var.instance_name, "rds", "auditlog", "{{RDS_APP}}"])
Expand Down
1 change: 1 addition & 0 deletions tekton/generate-tekton-tasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@
- gitops-deprovision-suite
- gitops-dro
- gitops-efs
- gitops-efs-csi-driver
- gitops-jdbc-config
- gitops-kafka
- gitops-kafka-config
Expand Down
9 changes: 0 additions & 9 deletions tekton/src/pipelines/gitops/gitops-mas-apps.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -889,9 +889,6 @@ spec:
kind: Task
name: gitops-rds-db2-database
when:
- input: "$(params.db2_action_iot)"
operator: notin
values: [""]
- input: "$(params.jdbc_type_iot)"
operator: in
values: ["rds-db2"]
Expand Down Expand Up @@ -1100,9 +1097,6 @@ spec:
kind: Task
name: gitops-rds-db2-database
when:
- input: "$(params.db2_action_manage)"
operator: notin
values: [""]
- input: "$(params.jdbc_type_manage)"
operator: in
values: ["rds-db2"]
Expand Down Expand Up @@ -1448,9 +1442,6 @@ spec:
kind: Task
name: gitops-rds-db2-database
when:
- input: "$(params.db2_action_facilities)"
operator: notin
values: [""]
- input: "$(params.jdbc_type_facilities)"
operator: in
values: ["rds-db2"]
Expand Down
58 changes: 58 additions & 0 deletions tekton/src/pipelines/gitops/gitops-mas-cluster.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,24 @@ spec:
- name: mas_catalog_image
type: string

- name: role_arn
type: string
- name: efs_catalog_source
type: string
default: "redhat-operators"
- name: efs_catalog_source_namespace
type: string
default: "openshift-marketplace"
- name: efs_channel
type: string
default: "stable"
- name: efs_subscription_source_namespace
type: string
default: "openshift-cluster-csi-drivers"
- name: efs_install_action
type: string
default: ""

- name: dro_namespace
type: string
default: "ibm-software-central"
Expand Down Expand Up @@ -396,6 +414,46 @@ spec:
- name: gitops-cluster-configs
workspace: gitops-cluster-configs

- name: gitops-efs-csi-driver
runAfter:
- gitops-cluster
params:
- name: cluster_name
value: $(params.cluster_name)
- name: account
value: $(params.account)
- name: git_branch
value: $(params.git_branch)
- name: github_org
value: $(params.github_org)
- name: github_repo
value: $(params.github_repo)
- name: github_host
value: $(params.github_host)
- name: git_commit_msg
value: $(params.git_commit_msg)
- name: role_arn
value: $(params.role_arn)
- name: efs_catalog_source
value: $(params.efs_catalog_source)
- name: efs_catalog_source_namespace
value: $(params.efs_catalog_source_namespace)
- name: efs_channel
value: $(params.efs_channel)
- name: efs_subscription_source_namespace
value: $(params.efs_subscription_source_namespace)
taskRef:
kind: Task
name: gitops-efs-csi-driver
when:
- input: "$(params.efs_install_action)"
operator: in
values: ["install"]
workspaces:
- name: configs
workspace: configs


- name: gitops-dro
runAfter:
- gitops-cluster
Expand Down
Loading