Skip to content

Commit

Permalink
feat: added support for redis cluster (#1270)
Browse files Browse the repository at this point in the history
refs https://jsw.ibm.com/browse/INSTA-9475

- does not contain cluster support for ioredis!
  • Loading branch information
kirrg001 authored Aug 28, 2024
1 parent e2990c1 commit 4d1dc72
Show file tree
Hide file tree
Showing 37 changed files with 1,439 additions and 1,059 deletions.
8 changes: 7 additions & 1 deletion .tekton/tasks/test-groups/test-ci-autoprofile-task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,12 @@ spec:
valueFrom:
secretKeyRef:
name: $(params.continuous-delivery-context-secret)
key: "AWS_SECRET_ACCESS_KEY"
key: "AWS_SECRET_ACCESS_KEY"
- name: AZURE_REDIS_CLUSTER_PWD
valueFrom:
secretKeyRef:
name: $(params.continuous-delivery-context-secret)
key: "AZURE_REDIS_CLUSTER_PWD"
- name: DB2_CONNECTION_STR
valueFrom:
secretKeyRef:
Expand Down Expand Up @@ -88,6 +93,7 @@ spec:
export GCP_PROJECT="k8s-brewery"
export AZURE_SQL_USERNAME="admin@instana@nodejs-team-db-server"
export AZURE_SQL_SERVER="nodejs-team-db-server.database.windows.net"
export AZURE_REDIS_CLUSTER="team-nodejs-redis-cluster-tekton.redis.cache.windows.net:6380"
export AZURE_SQL_DATABASE="azure-nodejs-test"
export AZURE_STORAGE_ACCOUNT_NAME="nodejstracerteam"
if [ "$(params.esm)" == "true" ]; then
Expand Down
8 changes: 7 additions & 1 deletion .tekton/tasks/test-groups/test-ci-aws-fargate-task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,12 @@ spec:
valueFrom:
secretKeyRef:
name: $(params.continuous-delivery-context-secret)
key: "AWS_SECRET_ACCESS_KEY"
key: "AWS_SECRET_ACCESS_KEY"
- name: AZURE_REDIS_CLUSTER_PWD
valueFrom:
secretKeyRef:
name: $(params.continuous-delivery-context-secret)
key: "AZURE_REDIS_CLUSTER_PWD"
- name: DB2_CONNECTION_STR
valueFrom:
secretKeyRef:
Expand Down Expand Up @@ -88,6 +93,7 @@ spec:
export GCP_PROJECT="k8s-brewery"
export AZURE_SQL_USERNAME="admin@instana@nodejs-team-db-server"
export AZURE_SQL_SERVER="nodejs-team-db-server.database.windows.net"
export AZURE_REDIS_CLUSTER="team-nodejs-redis-cluster-tekton.redis.cache.windows.net:6380"
export AZURE_SQL_DATABASE="azure-nodejs-test"
export AZURE_STORAGE_ACCOUNT_NAME="nodejstracerteam"
if [ "$(params.esm)" == "true" ]; then
Expand Down
8 changes: 7 additions & 1 deletion .tekton/tasks/test-groups/test-ci-aws-lambda-task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,12 @@ spec:
valueFrom:
secretKeyRef:
name: $(params.continuous-delivery-context-secret)
key: "AWS_SECRET_ACCESS_KEY"
key: "AWS_SECRET_ACCESS_KEY"
- name: AZURE_REDIS_CLUSTER_PWD
valueFrom:
secretKeyRef:
name: $(params.continuous-delivery-context-secret)
key: "AZURE_REDIS_CLUSTER_PWD"
- name: DB2_CONNECTION_STR
valueFrom:
secretKeyRef:
Expand Down Expand Up @@ -88,6 +93,7 @@ spec:
export GCP_PROJECT="k8s-brewery"
export AZURE_SQL_USERNAME="admin@instana@nodejs-team-db-server"
export AZURE_SQL_SERVER="nodejs-team-db-server.database.windows.net"
export AZURE_REDIS_CLUSTER="team-nodejs-redis-cluster-tekton.redis.cache.windows.net:6380"
export AZURE_SQL_DATABASE="azure-nodejs-test"
export AZURE_STORAGE_ACCOUNT_NAME="nodejstracerteam"
if [ "$(params.esm)" == "true" ]; then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,12 @@ spec:
valueFrom:
secretKeyRef:
name: $(params.continuous-delivery-context-secret)
key: "AWS_SECRET_ACCESS_KEY"
key: "AWS_SECRET_ACCESS_KEY"
- name: AZURE_REDIS_CLUSTER_PWD
valueFrom:
secretKeyRef:
name: $(params.continuous-delivery-context-secret)
key: "AZURE_REDIS_CLUSTER_PWD"
- name: DB2_CONNECTION_STR
valueFrom:
secretKeyRef:
Expand Down Expand Up @@ -88,6 +93,7 @@ spec:
export GCP_PROJECT="k8s-brewery"
export AZURE_SQL_USERNAME="admin@instana@nodejs-team-db-server"
export AZURE_SQL_SERVER="nodejs-team-db-server.database.windows.net"
export AZURE_REDIS_CLUSTER="team-nodejs-redis-cluster-tekton.redis.cache.windows.net:6380"
export AZURE_SQL_DATABASE="azure-nodejs-test"
export AZURE_STORAGE_ACCOUNT_NAME="nodejstracerteam"
if [ "$(params.esm)" == "true" ]; then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,12 @@ spec:
valueFrom:
secretKeyRef:
name: $(params.continuous-delivery-context-secret)
key: "AWS_SECRET_ACCESS_KEY"
key: "AWS_SECRET_ACCESS_KEY"
- name: AZURE_REDIS_CLUSTER_PWD
valueFrom:
secretKeyRef:
name: $(params.continuous-delivery-context-secret)
key: "AZURE_REDIS_CLUSTER_PWD"
- name: DB2_CONNECTION_STR
valueFrom:
secretKeyRef:
Expand Down Expand Up @@ -110,6 +115,7 @@ spec:
export GCP_PROJECT="k8s-brewery"
export AZURE_SQL_USERNAME="admin@instana@nodejs-team-db-server"
export AZURE_SQL_SERVER="nodejs-team-db-server.database.windows.net"
export AZURE_REDIS_CLUSTER="team-nodejs-redis-cluster-tekton.redis.cache.windows.net:6380"
export AZURE_SQL_DATABASE="azure-nodejs-test"
export AZURE_STORAGE_ACCOUNT_NAME="nodejstracerteam"
if [ "$(params.esm)" == "true" ]; then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,12 @@ spec:
valueFrom:
secretKeyRef:
name: $(params.continuous-delivery-context-secret)
key: "AWS_SECRET_ACCESS_KEY"
key: "AWS_SECRET_ACCESS_KEY"
- name: AZURE_REDIS_CLUSTER_PWD
valueFrom:
secretKeyRef:
name: $(params.continuous-delivery-context-secret)
key: "AZURE_REDIS_CLUSTER_PWD"
- name: DB2_CONNECTION_STR
valueFrom:
secretKeyRef:
Expand Down Expand Up @@ -88,6 +93,7 @@ spec:
export GCP_PROJECT="k8s-brewery"
export AZURE_SQL_USERNAME="admin@instana@nodejs-team-db-server"
export AZURE_SQL_SERVER="nodejs-team-db-server.database.windows.net"
export AZURE_REDIS_CLUSTER="team-nodejs-redis-cluster-tekton.redis.cache.windows.net:6380"
export AZURE_SQL_DATABASE="azure-nodejs-test"
export AZURE_STORAGE_ACCOUNT_NAME="nodejstracerteam"
if [ "$(params.esm)" == "true" ]; then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,12 @@ spec:
valueFrom:
secretKeyRef:
name: $(params.continuous-delivery-context-secret)
key: "AWS_SECRET_ACCESS_KEY"
key: "AWS_SECRET_ACCESS_KEY"
- name: AZURE_REDIS_CLUSTER_PWD
valueFrom:
secretKeyRef:
name: $(params.continuous-delivery-context-secret)
key: "AZURE_REDIS_CLUSTER_PWD"
- name: DB2_CONNECTION_STR
valueFrom:
secretKeyRef:
Expand Down Expand Up @@ -90,6 +95,7 @@ spec:
export GCP_PROJECT="k8s-brewery"
export AZURE_SQL_USERNAME="admin@instana@nodejs-team-db-server"
export AZURE_SQL_SERVER="nodejs-team-db-server.database.windows.net"
export AZURE_REDIS_CLUSTER="team-nodejs-redis-cluster-tekton.redis.cache.windows.net:6380"
export AZURE_SQL_DATABASE="azure-nodejs-test"
export AZURE_STORAGE_ACCOUNT_NAME="nodejstracerteam"
if [ "$(params.esm)" == "true" ]; then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,12 @@ spec:
valueFrom:
secretKeyRef:
name: $(params.continuous-delivery-context-secret)
key: "AWS_SECRET_ACCESS_KEY"
key: "AWS_SECRET_ACCESS_KEY"
- name: AZURE_REDIS_CLUSTER_PWD
valueFrom:
secretKeyRef:
name: $(params.continuous-delivery-context-secret)
key: "AZURE_REDIS_CLUSTER_PWD"
- name: DB2_CONNECTION_STR
valueFrom:
secretKeyRef:
Expand Down Expand Up @@ -88,6 +93,7 @@ spec:
export GCP_PROJECT="k8s-brewery"
export AZURE_SQL_USERNAME="admin@instana@nodejs-team-db-server"
export AZURE_SQL_SERVER="nodejs-team-db-server.database.windows.net"
export AZURE_REDIS_CLUSTER="team-nodejs-redis-cluster-tekton.redis.cache.windows.net:6380"
export AZURE_SQL_DATABASE="azure-nodejs-test"
export AZURE_STORAGE_ACCOUNT_NAME="nodejstracerteam"
if [ "$(params.esm)" == "true" ]; then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,12 @@ spec:
valueFrom:
secretKeyRef:
name: $(params.continuous-delivery-context-secret)
key: "AWS_SECRET_ACCESS_KEY"
key: "AWS_SECRET_ACCESS_KEY"
- name: AZURE_REDIS_CLUSTER_PWD
valueFrom:
secretKeyRef:
name: $(params.continuous-delivery-context-secret)
key: "AZURE_REDIS_CLUSTER_PWD"
- name: DB2_CONNECTION_STR
valueFrom:
secretKeyRef:
Expand Down Expand Up @@ -88,6 +93,7 @@ spec:
export GCP_PROJECT="k8s-brewery"
export AZURE_SQL_USERNAME="admin@instana@nodejs-team-db-server"
export AZURE_SQL_SERVER="nodejs-team-db-server.database.windows.net"
export AZURE_REDIS_CLUSTER="team-nodejs-redis-cluster-tekton.redis.cache.windows.net:6380"
export AZURE_SQL_DATABASE="azure-nodejs-test"
export AZURE_STORAGE_ACCOUNT_NAME="nodejstracerteam"
if [ "$(params.esm)" == "true" ]; then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,12 @@ spec:
valueFrom:
secretKeyRef:
name: $(params.continuous-delivery-context-secret)
key: "AWS_SECRET_ACCESS_KEY"
key: "AWS_SECRET_ACCESS_KEY"
- name: AZURE_REDIS_CLUSTER_PWD
valueFrom:
secretKeyRef:
name: $(params.continuous-delivery-context-secret)
key: "AZURE_REDIS_CLUSTER_PWD"
- name: DB2_CONNECTION_STR
valueFrom:
secretKeyRef:
Expand Down Expand Up @@ -161,6 +166,7 @@ spec:
export GCP_PROJECT="k8s-brewery"
export AZURE_SQL_USERNAME="admin@instana@nodejs-team-db-server"
export AZURE_SQL_SERVER="nodejs-team-db-server.database.windows.net"
export AZURE_REDIS_CLUSTER="team-nodejs-redis-cluster-tekton.redis.cache.windows.net:6380"
export AZURE_SQL_DATABASE="azure-nodejs-test"
export AZURE_STORAGE_ACCOUNT_NAME="nodejstracerteam"
if [ "$(params.esm)" == "true" ]; then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,12 @@ spec:
valueFrom:
secretKeyRef:
name: $(params.continuous-delivery-context-secret)
key: "AWS_SECRET_ACCESS_KEY"
key: "AWS_SECRET_ACCESS_KEY"
- name: AZURE_REDIS_CLUSTER_PWD
valueFrom:
secretKeyRef:
name: $(params.continuous-delivery-context-secret)
key: "AZURE_REDIS_CLUSTER_PWD"
- name: DB2_CONNECTION_STR
valueFrom:
secretKeyRef:
Expand Down Expand Up @@ -106,6 +111,7 @@ spec:
export GCP_PROJECT="k8s-brewery"
export AZURE_SQL_USERNAME="admin@instana@nodejs-team-db-server"
export AZURE_SQL_SERVER="nodejs-team-db-server.database.windows.net"
export AZURE_REDIS_CLUSTER="team-nodejs-redis-cluster-tekton.redis.cache.windows.net:6380"
export AZURE_SQL_DATABASE="azure-nodejs-test"
export AZURE_STORAGE_ACCOUNT_NAME="nodejstracerteam"
if [ "$(params.esm)" == "true" ]; then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,12 @@ spec:
valueFrom:
secretKeyRef:
name: $(params.continuous-delivery-context-secret)
key: "AWS_SECRET_ACCESS_KEY"
key: "AWS_SECRET_ACCESS_KEY"
- name: AZURE_REDIS_CLUSTER_PWD
valueFrom:
secretKeyRef:
name: $(params.continuous-delivery-context-secret)
key: "AZURE_REDIS_CLUSTER_PWD"
- name: DB2_CONNECTION_STR
valueFrom:
secretKeyRef:
Expand Down Expand Up @@ -106,6 +111,7 @@ spec:
export GCP_PROJECT="k8s-brewery"
export AZURE_SQL_USERNAME="admin@instana@nodejs-team-db-server"
export AZURE_SQL_SERVER="nodejs-team-db-server.database.windows.net"
export AZURE_REDIS_CLUSTER="team-nodejs-redis-cluster-tekton.redis.cache.windows.net:6380"
export AZURE_SQL_DATABASE="azure-nodejs-test"
export AZURE_STORAGE_ACCOUNT_NAME="nodejstracerteam"
if [ "$(params.esm)" == "true" ]; then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,12 @@ spec:
valueFrom:
secretKeyRef:
name: $(params.continuous-delivery-context-secret)
key: "AWS_SECRET_ACCESS_KEY"
key: "AWS_SECRET_ACCESS_KEY"
- name: AZURE_REDIS_CLUSTER_PWD
valueFrom:
secretKeyRef:
name: $(params.continuous-delivery-context-secret)
key: "AZURE_REDIS_CLUSTER_PWD"
- name: DB2_CONNECTION_STR
valueFrom:
secretKeyRef:
Expand Down Expand Up @@ -88,6 +93,7 @@ spec:
export GCP_PROJECT="k8s-brewery"
export AZURE_SQL_USERNAME="admin@instana@nodejs-team-db-server"
export AZURE_SQL_SERVER="nodejs-team-db-server.database.windows.net"
export AZURE_REDIS_CLUSTER="team-nodejs-redis-cluster-tekton.redis.cache.windows.net:6380"
export AZURE_SQL_DATABASE="azure-nodejs-test"
export AZURE_STORAGE_ACCOUNT_NAME="nodejstracerteam"
if [ "$(params.esm)" == "true" ]; then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,12 @@ spec:
valueFrom:
secretKeyRef:
name: $(params.continuous-delivery-context-secret)
key: "AWS_SECRET_ACCESS_KEY"
key: "AWS_SECRET_ACCESS_KEY"
- name: AZURE_REDIS_CLUSTER_PWD
valueFrom:
secretKeyRef:
name: $(params.continuous-delivery-context-secret)
key: "AZURE_REDIS_CLUSTER_PWD"
- name: DB2_CONNECTION_STR
valueFrom:
secretKeyRef:
Expand Down Expand Up @@ -175,6 +180,7 @@ spec:
export GCP_PROJECT="k8s-brewery"
export AZURE_SQL_USERNAME="admin@instana@nodejs-team-db-server"
export AZURE_SQL_SERVER="nodejs-team-db-server.database.windows.net"
export AZURE_REDIS_CLUSTER="team-nodejs-redis-cluster-tekton.redis.cache.windows.net:6380"
export AZURE_SQL_DATABASE="azure-nodejs-test"
export AZURE_STORAGE_ACCOUNT_NAME="nodejstracerteam"
if [ "$(params.esm)" == "true" ]; then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,12 @@ spec:
valueFrom:
secretKeyRef:
name: $(params.continuous-delivery-context-secret)
key: "AWS_SECRET_ACCESS_KEY"
key: "AWS_SECRET_ACCESS_KEY"
- name: AZURE_REDIS_CLUSTER_PWD
valueFrom:
secretKeyRef:
name: $(params.continuous-delivery-context-secret)
key: "AZURE_REDIS_CLUSTER_PWD"
- name: DB2_CONNECTION_STR
valueFrom:
secretKeyRef:
Expand Down Expand Up @@ -90,6 +95,7 @@ spec:
export GCP_PROJECT="k8s-brewery"
export AZURE_SQL_USERNAME="admin@instana@nodejs-team-db-server"
export AZURE_SQL_SERVER="nodejs-team-db-server.database.windows.net"
export AZURE_REDIS_CLUSTER="team-nodejs-redis-cluster-tekton.redis.cache.windows.net:6380"
export AZURE_SQL_DATABASE="azure-nodejs-test"
export AZURE_STORAGE_ACCOUNT_NAME="nodejstracerteam"
if [ "$(params.esm)" == "true" ]; then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,12 @@ spec:
valueFrom:
secretKeyRef:
name: $(params.continuous-delivery-context-secret)
key: "AWS_SECRET_ACCESS_KEY"
key: "AWS_SECRET_ACCESS_KEY"
- name: AZURE_REDIS_CLUSTER_PWD
valueFrom:
secretKeyRef:
name: $(params.continuous-delivery-context-secret)
key: "AZURE_REDIS_CLUSTER_PWD"
- name: DB2_CONNECTION_STR
valueFrom:
secretKeyRef:
Expand Down Expand Up @@ -96,6 +101,7 @@ spec:
export GCP_PROJECT="k8s-brewery"
export AZURE_SQL_USERNAME="admin@instana@nodejs-team-db-server"
export AZURE_SQL_SERVER="nodejs-team-db-server.database.windows.net"
export AZURE_REDIS_CLUSTER="team-nodejs-redis-cluster-tekton.redis.cache.windows.net:6380"
export AZURE_SQL_DATABASE="azure-nodejs-test"
export AZURE_STORAGE_ACCOUNT_NAME="nodejstracerteam"
if [ "$(params.esm)" == "true" ]; then
Expand Down
8 changes: 7 additions & 1 deletion .tekton/tasks/test-groups/test-ci-core-task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,12 @@ spec:
valueFrom:
secretKeyRef:
name: $(params.continuous-delivery-context-secret)
key: "AWS_SECRET_ACCESS_KEY"
key: "AWS_SECRET_ACCESS_KEY"
- name: AZURE_REDIS_CLUSTER_PWD
valueFrom:
secretKeyRef:
name: $(params.continuous-delivery-context-secret)
key: "AZURE_REDIS_CLUSTER_PWD"
- name: DB2_CONNECTION_STR
valueFrom:
secretKeyRef:
Expand Down Expand Up @@ -88,6 +93,7 @@ spec:
export GCP_PROJECT="k8s-brewery"
export AZURE_SQL_USERNAME="admin@instana@nodejs-team-db-server"
export AZURE_SQL_SERVER="nodejs-team-db-server.database.windows.net"
export AZURE_REDIS_CLUSTER="team-nodejs-redis-cluster-tekton.redis.cache.windows.net:6380"
export AZURE_SQL_DATABASE="azure-nodejs-test"
export AZURE_STORAGE_ACCOUNT_NAME="nodejstracerteam"
if [ "$(params.esm)" == "true" ]; then
Expand Down
8 changes: 7 additions & 1 deletion .tekton/tasks/test-groups/test-ci-google-cloud-run-task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,12 @@ spec:
valueFrom:
secretKeyRef:
name: $(params.continuous-delivery-context-secret)
key: "AWS_SECRET_ACCESS_KEY"
key: "AWS_SECRET_ACCESS_KEY"
- name: AZURE_REDIS_CLUSTER_PWD
valueFrom:
secretKeyRef:
name: $(params.continuous-delivery-context-secret)
key: "AZURE_REDIS_CLUSTER_PWD"
- name: DB2_CONNECTION_STR
valueFrom:
secretKeyRef:
Expand Down Expand Up @@ -88,6 +93,7 @@ spec:
export GCP_PROJECT="k8s-brewery"
export AZURE_SQL_USERNAME="admin@instana@nodejs-team-db-server"
export AZURE_SQL_SERVER="nodejs-team-db-server.database.windows.net"
export AZURE_REDIS_CLUSTER="team-nodejs-redis-cluster-tekton.redis.cache.windows.net:6380"
export AZURE_SQL_DATABASE="azure-nodejs-test"
export AZURE_STORAGE_ACCOUNT_NAME="nodejstracerteam"
if [ "$(params.esm)" == "true" ]; then
Expand Down
Loading

0 comments on commit 4d1dc72

Please sign in to comment.