-
Notifications
You must be signed in to change notification settings - Fork 53
[major] FVT Implement Workflow for Saas AI Services #2310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
joshiricha444
wants to merge
260
commits into
master
Choose a base branch
from
gitops-fvt-aiservice
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
260 commits
Select commit
Hold shift + click to select a range
ec3aa25
code updated for mino
Hardik-Prajapati-10 02ba15a
Update gitops_odh
prajapati-yogeshkumar-ibm 1d5ec83
update for aibroker
drashtimalviya1207 f2ab4b1
cherry-pick d75748e7ff conflict
prajapati-yogeshkumar-ibm e066ca1
cherry-pick bc5c7cb4d0 conflict
drashtimalviya1207 4c9353f
update aib
drashtimalviya1207 ccd9a52
changes related to minio
Hardik-Prajapati-10 f60fdd4
Update gitops_minio
Hardik-Prajapati-10 4f7b876
update aib
drashtimalviya1207 024dafa
Update gitops_minio
Hardik-Prajapati-10 ac9ad89
Update gitops_minio
Hardik-Prajapati-10 ef780ca
Rename image/cli/mascli/functions/gitops_suite_aibroker_install to im…
Drashti-Malviya e4f5a26
update fname
drashtimalviya1207 8a33d83
correct file path
drashtimalviya1207 949a10a
Update gitops_minio
Hardik-Prajapati-10 0a7a5d3
update envs
drashtimalviya1207 ec454b2
Git ODH function path
prajapati-yogeshkumar-ibm e36d8ec
comment unused
drashtimalviya1207 c615597
cherry-pick 759c37fe2d conflict
Hardik-Prajapati-10 e4e8bc8
cherry-pick b31ea8c0c9 conflict
nikitakumble fa5acb3
code updated for aibroker tenant role
Hardik-Prajapati-10 c3394e2
Update gitops_aibroker_tenant
Hardik-Prajapati-10 f2b94d8
kmodel cli changes done
nikitakumble 48726d6
Pipeline AIBROKER and AIBROKER-Tenant
prajapati-yogeshkumar-ibm 5da9e0a
Update gitops-mas-aibroker.yml.j2
prajapati-yogeshkumar-ibm d68e5af
cherry-pick 511cbfabcc conflict
drashtimalviya1207 3d92012
added kmodel related variables and removed mas_instance_id from minio…
Hardik-Prajapati-10 e834546
renamed tenantNamespace
Hardik-Prajapati-10 e51fac7
Update gitops-odh.yml.j2
prajapati-yogeshkumar-ibm e04aa14
remove minio
prajapati-yogeshkumar-ibm bc86fea
Update gitops_minio
Hardik-Prajapati-10 1be88de
cherry-pick bcbe95c6e2 conflict
Hardik-Prajapati-10 b9ed44c
cherry-pick 7f7b6b0705 conflict
Hardik-Prajapati-10 1b24d7e
Update gitops_minio
Hardik-Prajapati-10 e282128
Update ibm-minio.yaml.j2
Hardik-Prajapati-10 c424af7
Update gitops_minio
Hardik-Prajapati-10 0f95309
Update gitops_odh
Hardik-Prajapati-10 d028475
cherry-pick 2867d5b26a conflict
Hardik-Prajapati-10 bdfe652
cherry-pick 295b2ee0d9 conflict
Hardik-Prajapati-10 b071555
Update gitops_aibroker
Hardik-Prajapati-10 866d3a5
cherry-pick 18ecf1fc89 conflict
Hardik-Prajapati-10 3c384c4
kmodel change added
Hardik-Prajapati-10 32e6eb3
Update gitops_kmodel
Hardik-Prajapati-10 3e20c4d
Update gitops_kmodel
Hardik-Prajapati-10 87f4c8c
remove generating file odh-info.yaml
prajapati-yogeshkumar-ibm 0cb2990
Update gitops-mas-aibroker-tenant.yml.j2
Hardik-Prajapati-10 08ba924
changes in pullSecretName, IMAGE_PULL_SECRET_B64 variables
nikitakumble bb83db6
Update gitops-aibroker-tenant.yml.j2
Hardik-Prajapati-10 b54aecd
Update gitops-aibroker-tenant.yml.j2
Hardik-Prajapati-10 b18e4f6
cherry-pick d3a197b3a8 conflict
prajapati-yogeshkumar-ibm d797015
Update gitops-aibroker-tenant.yml.j2
Hardik-Prajapati-10 b79607a
update for aibroker
drashtimalviya1207 7870510
Update gitops-aibroker-tenant.yml.j2
Hardik-Prajapati-10 6d29a6b
cherry-pick 2cd64ee463 conflict
Hardik-Prajapati-10 5214dd4
mandatory variable condition added
prajapati-yogeshkumar-ibm 66ae4eb
Update gitops_aibroker_tenant
Hardik-Prajapati-10 ee8c502
cherry-pick 5199a3f10d conflict
Hardik-Prajapati-10 52b4be5
Update gitops_aibroker_tenant
Hardik-Prajapati-10 99a8677
cherry-pick e3aecc6429 conflict
Hardik-Prajapati-10 56f4f75
cherry-pick f7c6bf12e6 conflict
Hardik-Prajapati-10 ee94bdd
rm hard code ,unused keys
drashtimalviya1207 aeac49c
cherry-pick f253c5efa1 conflict
Hardik-Prajapati-10 626f8fb
cherry-pick ee1918c82e conflict
Hardik-Prajapati-10 f914d73
cherry-pick 90e8ebddd0 conflict
prajapati-yogeshkumar-ibm dde83d5
new ansible changes added
prajapati-yogeshkumar-ibm 9298188
Update gitops_aibroker_tenant
prajapati-yogeshkumar-ibm 62b96a1
cherry-pick a0c7a37fbc conflict
Hardik-Prajapati-10 9f34390
ansible changes aibroker
prajapati-yogeshkumar-ibm 7d3fda0
cherry-pick ea9c305761 conflict
Hardik-Prajapati-10 271efe0
cherry-pick 544230b7ab conflict
prajapati-yogeshkumar-ibm 4cf8290
Update gitops_aibroker_tenant
Hardik-Prajapati-10 b1b33b6
Update gitops_odh
prajapati-yogeshkumar-ibm 2a16325
cherry-pick e8da898e95 conflict
Hardik-Prajapati-10 f202d16
Update .secrets.baseline
Hardik-Prajapati-10 37f3c66
Update .secrets.baseline
Hardik-Prajapati-10 493dcc6
removed mas_app_channel
Hardik-Prajapati-10 f29c1a5
Update gitops_odh
Hardik-Prajapati-10 c0713b7
Update gitops_aibroker
Hardik-Prajapati-10 c27473c
odh_operator_version update
prajapati-yogeshkumar-ibm 560d336
gitops_aibroker_help function name update
prajapati-yogeshkumar-ibm cde1710
cherry-pick c0c5ea3bb0 conflict
prajapati-yogeshkumar-ibm ffa3b0b
cherry-pick 0d9f575726 conflict
prajapati-yogeshkumar-ibm 4f3371c
resolved issue odh_operator_version
Hardik-Prajapati-10 73ee0ca
capitalise all names
Hardik-Prajapati-10 52a697f
mas_icr_cp added
Hardik-Prajapati-10 2d5a02c
Update ibm-mas-odh-install.yaml.j2
Hardik-Prajapati-10 dcd0c74
Update .secrets.baseline
Hardik-Prajapati-10 564af74
cherry-pick e36928b6ce conflict
Hardik-Prajapati-10 10fcae3
tenant id added into merge para
Hardik-Prajapati-10 236a448
cherry-pick dae71a7ca3 conflict
Hardik-Prajapati-10 1200365
Update gitops_aibroker
Hardik-Prajapati-10 d118576
Update gitops_aibroker
Hardik-Prajapati-10 f37e0c9
Update gitops_aibroker
Hardik-Prajapati-10 26c3da9
cherry-pick 9bb40f27e8 conflict
Hardik-Prajapati-10 238a5e5
cherry-pick 054f31fd7f conflict
Hardik-Prajapati-10 cde3b75
cherry-pick 0513356926 conflict
Hardik-Prajapati-10 bee7205
cherry-pick b195c03e5f conflict
Hardik-Prajapati-10 e4d80d0
cherry-pick 6b1b5935aa conflict
Hardik-Prajapati-10 3bf0869
Update gitops_aibroker
Hardik-Prajapati-10 8ec006c
removed sm_storage_bucket_default
Hardik-Prajapati-10 1f7b766
cherry-pick 41283b9db0 conflict
Hardik-Prajapati-10 c60fc66
Update gitops_aibroker
Hardik-Prajapati-10 9b24664
Update gitops-mas-aibroker.yml.j2
Hardik-Prajapati-10 bb3ce9c
MAS_ICR_CP added in kmodel
Hardik-Prajapati-10 1ab0986
aibroker_image_pull_secret_b64 updated to image_pull_secret_b64
Hardik-Prajapati-10 0fe4a91
Update .secrets.baseline
Hardik-Prajapati-10 515f2ae
runAsNonRoot: true added
Hardik-Prajapati-10 9dc1058
cherry-pick b3fc9c69ff conflict
Hardik-Prajapati-10 243a273
cherry-pick 6042027838 conflict
Hardik-Prajapati-10 1c66014
Update gitops-mas-aibroker.yml.j2
Hardik-Prajapati-10 52b13c8
Update gitops_aibroker_tenant
Hardik-Prajapati-10 5863eae
Update gitops-mas-aibroker.yml.j2
Hardik-Prajapati-10 9c5d6bb
Revert "Update gitops-mas-aibroker.yml.j2"
Hardik-Prajapati-10 192da46
Revert "Update gitops-mas-aibroker.yml.j2"
Hardik-Prajapati-10 0c2419e
Reapply "Update gitops-mas-aibroker.yml.j2"
Hardik-Prajapati-10 dc59221
pr review suggestion
Hardik-Prajapati-10 0724d70
cherry-pick 0af78680bf conflict
Hardik-Prajapati-10 e7ce845
rename to storage
Hardik-Prajapati-10 86a5381
cherry-pick 163dcc8558 conflict
Hardik-Prajapati-10 ae17762
cherry-pick e3f6240ef6 conflict
Hardik-Prajapati-10 2cea24f
Update mas-instance-id to aibroker-instance-id
prajapati-yogeshkumar-ibm 1bb4143
cherry-pick dbfcf43ab5 conflict
prajapati-yogeshkumar-ibm b454b7c
Update MAS_INSTANCE_ID in ibm-mas-instance-base.yaml.j2
prajapati-yogeshkumar-ibm 9d6692c
cherry-pick 7a2458143e conflict
Hardik-Prajapati-10 f4a0a24
replaced route_type with is_external_route
Hardik-Prajapati-10 5c7fa23
removed rsl_org_id and rsl_token
Hardik-Prajapati-10 88d484c
Update gitops-aibroker-tenant.yml.j2
Hardik-Prajapati-10 8e3b609
Update gitops_aibroker_tenant
Hardik-Prajapati-10 6b21ff3
added MAS_INSTANCE_ID for aibroker base file
Hardik-Prajapati-10 6ae44f3
Update gitops-mas-aibroker.yml.j2
Hardik-Prajapati-10 2a1d1fa
Update gitops_aibroker
Hardik-Prajapati-10 d2679f9
cherry-pick 41852e992c conflict
Hardik-Prajapati-10 3441b37
cherry-pick 9aa7dd2c69 conflict
Hardik-Prajapati-10 f0c66d4
Update gitops-aibroker.yml.j2
Hardik-Prajapati-10 49216a9
Update gitops-aibroker.yml.j2
Hardik-Prajapati-10 ed20e23
Update ibm-aibroker-tenant.yaml.j2
Hardik-Prajapati-10 2f3cced
cherry-pick 9358f3ce4e conflict
Hardik-Prajapati-10 3f52ad5
cherry-pick 8311d53138 conflict
Hardik-Prajapati-10 17704db
cherry-pick 2175815c01 conflict
Hardik-Prajapati-10 df8f107
Update gitops_aibroker_tenant
Hardik-Prajapati-10 77a9ca9
removed minio
Hardik-Prajapati-10 da0295b
cherry-pick 90aa73d9f2 conflict
Hardik-Prajapati-10 45ea6b7
replaced dro to droai
Hardik-Prajapati-10 b845dda
Update .secrets.baseline
Hardik-Prajapati-10 8bd857c
replaced dro with droai
Hardik-Prajapati-10 b15c550
cherry-pick 5e509f0df3 conflict
Drashti-Malviya c03e3a5
change secreat path from dro to droai
drashtimalviya1207 dec7fe8
name updated
Hardik-Prajapati-10 436b9ff
corrected name
Hardik-Prajapati-10 3461e11
Update deprovision-mas-aibroker-tenant.yml.j2
Hardik-Prajapati-10 a27eb57
Update deprovision-mas-aibroker-tenant.yml.j2
Hardik-Prajapati-10 1e5b31f
add odh,kmodel tasks
drashtimalviya1207 98f1b85
add code for rm tenant-base file
drashtimalviya1207 8ddf85b
correct file_name
drashtimalviya1207 91ab04e
add code rm aibroker base file
drashtimalviya1207 22d4348
indentation correction
drashtimalviya1207 259f272
remove unwanted keys
drashtimalviya1207 57397ac
update secreat baseline
drashtimalviya1207 c6917dc
remove extra workspace
drashtimalviya1207 b223ed5
update baseline
drashtimalviya1207 f76e86f
update version details
drashtimalviya1207 b6fbbcb
revert change that are not relevant
Hardik-Prajapati-10 b0f1930
cherry-pick de56fa02ac conflict
drashtimalviya1207 23f0af8
cherry-pick a6141540c0 conflict
drashtimalviya1207 4d9eaf3
cherry-pick a9b6444559 conflict
drashtimalviya1207 e1fab78
secreat update
drashtimalviya1207 8062248
Update gitops_deprovision_odh
Drashti-Malviya 7c2711b
cherry-pick 739f0af364 conflict
Drashti-Malviya a5226cd
Update gitops_deprovision_odh
drashtimalviya1207 3140e41
update odh
drashtimalviya1207 f43a772
remove oc delete cmd
drashtimalviya1207 855fa24
cherry-pick b132f4693b conflict
Hardik-Prajapati-10 016a594
cherry-pick 5268f50494 conflict
Hardik-Prajapati-10 4d3436d
fvt related code change added
Hardik-Prajapati-10 2adbb30
Update gitops-mas-fvt-preparer.yml.j2
Hardik-Prajapati-10 1b47cbf
aiservice_instance_id parameter added
Hardik-Prajapati-10 c6883ae
cherry-pick 0d7116dca9 conflict
Hardik-Prajapati-10 8dbd9ac
Created pipelines to provision & deprovision AI Service Dependencies …
dpdifferent1 6a3452e
Updated AI Service deps provision & deprovision pipelines
dpdifferent1 a543111
Corrected filename
dpdifferent1 187a803
updated pipeline config
dpdifferent1 98d05fd
Fixed white spacing for gitops-provision-db2u
f38ce12
Fixed workspace whitespace
7521e60
Fixed aiservice naming for tasks
65e38cc
Added whiteline at the end of file
2b7ff8a
Added Necessary parameters
30da566
Added parameters to gitops-aiservice-deps
de76ef1
Added more db2 parameters
6f90186
Added db2 for aiservice gitops
af4bd12
Removed duplicate params
8659e96
Fixed taskref indentation
b736d9b
Removed jdbc, db2u and db2u-database from aiservice-deps pipeline
53469ef
Updated .secrets.baseline
a4fa5de
Removed on cluster dependencies from gitops-aiservice-deps.yml.j2
dde0163
removed jdbc & db2u tasks from gitops-aiservice-deps pipeline
dpdifferent1 ef0fc9c
Removed unused workspace from gitops-aiservice-deps
30a4ecd
Added mas_instance_id to. gitops-efs
ed218c2
[patch] Added EOF character to gitops-deprovision-kmodel
028f12e
cherry-pick fcd5d181f1 conflict
3663b89
cherry-pick bb95038ced conflict
361887f
cherry-pick 300486a86c conflict
36ee444
cherry-pick fb44ae45c9 conflict
418b853
cherry-pick 3140801eca conflict
a233109
Added pytest trace
efb71ab
Changed mongo pull policy to always
96d6d31
Removed default value from aiservice_instance_id
9d1c80a
Fixed variable name and added aiservice_instance_id into gitops mongo
8a888ee
Fixed variable
ef0d5cd
Commented out SMTP and idp tasks from mas-instance
3549627
Removed deprovision SMTP and IDP
87b9cd4
Removed from deprovision instance file
d310482
Removed kafka step need for idp and smtp
60ad9e5
Retrigger CLI Pipeline
joshiricha444 774b51e
cherry-pick 7d5a370024 conflict
joshiricha444 87ce41f
Removed extra fi statement and added echo statements for debug
a3d36ca
[minor] Add IS_GITOPS_FVT_ENV support for tenant SLS secret automation
joshiricha444 a89de4e
Update secrets
joshiricha444 b32976e
Update secrets
joshiricha444 6546a88
Update secrets
joshiricha444 7ffd3ac
update secrets
joshiricha444 4ce47f4
Update secrets
joshiricha444 13d461b
update secrets
joshiricha444 4d6f962
Added IS_GITOPS_FVT_ENV variable to bypass secrets in FVT run
joshiricha444 591e644
minor fix for FVT pipeline execution
joshiricha444 b605315
Update .secrets.baseline
ff7676e
delete some files related to AI Broker
c0bb2da
- Deleted files for AI Service
9d3dd60
- Deleted file related to AI service
5ea820e
Update mirror_aiservice_images
709e4ac
Remove aibroker related files
joshiricha444 b159e67
Remove derovision aibroker related files
joshiricha444 1fb1628
Change aibroker to aiservice in gitops_deprovision_odh
joshiricha444 7384248
[patch] gitOps fvt variable passed
d161177
- Variables added for AI FVT
0928eb4
Update gitops-mas-initiator.yml.j2
dfb695b
Update gitops-mas-initiator.yml.j2
471907f
Update gitops_aiservice_tenant
87aa637
Update .secrets.baseline
a3f6ffc
Update gitops-mas-initiator.yml.j2
9e7172e
Merge branch 'master' into gitops-fvt-aiservice
boonware b80605c
Update gitops_aiservice
2a89a68
Update gitops_aiservice
33a2a25
DB2 Provisioning and secrets
7f0f174
Merge branch 'gitops-fvt-aiservice' of https://github.com/ibm-mas/cli…
65084a0
update secrets
249c1a2
minor fix
ddae3f1
minor fix
953fce4
minor fix
6e9c8c8
revert db2 relate changes
8fda9db
update secrets
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -143,7 +143,7 @@ jobs: | |
| id: test | ||
| run: | | ||
| cd $GITHUB_WORKSPACE/python | ||
| pytest | ||
| pytest --trace | ||
|
|
||
| - name: Build | ||
| id: build | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -72,6 +72,7 @@ function gitops_aiservice_noninteractive() { | |
| #adding default values | ||
| export AISERVICE_NAMESPACE=${AISERVICE_NAMESPACE:-"aiservice-${AISERVICE_INSTANCE_ID}"} | ||
| export IN_SAAS_ENV=${IN_SAAS_ENV:-"true"} | ||
| export IS_GITOPS_FVT_ENV=${IS_GITOPS_FVT_ENV:-"false"} | ||
| export IS_EXTERNAL_ROUTE=${IS_EXTERNAL_ROUTE:-"false"} # Default to "false", can be set to "true" if needed | ||
| export JDBC_SECRET=${JDBC_SECRET:-"aiservice-jdbc-secret"} | ||
| export USE_AWS_DB2=${USE_AWS_DB2:-"false"} # Default to "false", can be set to "true" if needed | ||
|
|
@@ -136,6 +137,9 @@ function gitops_aiservice_noninteractive() { | |
| --in-saas-env) | ||
| export IN_SAAS_ENV=$1 && shift | ||
| ;; | ||
| --is-gitops-fvt-env) | ||
| export IS_GITOPS_FVT_ENV=$1 && shift | ||
| ;; | ||
| --is-external-route) | ||
| export IS_EXTERNAL_ROUTE=$1 && shift | ||
| ;; | ||
|
|
@@ -274,6 +278,44 @@ function gitops_aiservice_noninteractive() { | |
|
|
||
| } | ||
|
|
||
| function gitops_aiservice_fvt_prepare() { | ||
|
|
||
| SECRETS_PREFIX="${ACCOUNT_ID}${SECRETS_KEY_SEPERATOR}${CLUSTER_ID}${SECRETS_KEY_SEPERATOR}" | ||
|
|
||
| WATSONXAI_APIKEY=${WATSONXAI_APIKEY:-"watsonxai-apikey"} | ||
| WATSONXAI_PROJECT_ID=${WATSONXAI_PROJECT_ID:-"watsonxai-project-id"} | ||
|
|
||
| SECRET_NAME_WATSONXAI=${SECRETS_PREFIX}watsonx | ||
|
|
||
| TAGS="[{\"Key\": \"watsonxai_apikey\", \"Value\": \"watsonxai_apikey\"}, {\"Key\": \"watsonxai_project_id\", \"Value\": \"watsonxai_project_id\"}]" | ||
|
|
||
| sm_update_secret \ | ||
| "$SECRET_NAME_WATSONXAI" \ | ||
| "{\"watsonxai_apikey\":\"$WATSONXAI_APIKEY\",\"watsonxai_project_id\":\"$WATSONXAI_PROJECT_ID\"}" \ | ||
| "$TAGS" || { | ||
| echo "Failed to update WatsonX secret" | ||
| return 1 | ||
| } | ||
|
|
||
| SM_S3_ACCESSKEY=${SM_S3_ACCESSKEY:-"sm_s3_accesskey"} | ||
| SM_S3_SECRETKEY=${SM_S3_SECRETKEY:-"sm_s3_secretkey"} | ||
| SM_S3_HOST=${SM_S3_HOST:-"sm_s3_host"} | ||
| SM_S3_REGION=${SM_S3_REGION:-"sm_s3_region"} | ||
|
|
||
| SECRET_NAME_S3=${SECRETS_PREFIX}s3 | ||
| TAGS="[{\"Key\": \"sm_s3_accesskey\", \"Value\": \"sm_s3_accesskey\"}, {\"Key\": \"sm_s3_secretkey\", \"Value\": \"sm_s3_secretkey\"}, {\"Key\": \"sm_s3_host\", \"Value\": \"sm_s3_host\"}, {\"Key\": \"sm_s3_region\", \"Value\": \"sm_s3_region\"}]" | ||
|
|
||
| sm_update_secret \ | ||
| "$SECRET_NAME_S3" \ | ||
| "{\"sm_s3_accesskey\":\"$SM_S3_ACCESSKEY\",\"sm_s3_secretkey\":\"$SM_S3_SECRETKEY\",\"sm_s3_host\":\"$SM_S3_HOST\",\"sm_s3_region\":\"$SM_S3_REGION\"}" \ | ||
| "$TAGS" || { | ||
| echo "Failed to update S3 secret" | ||
| return 1 | ||
| } | ||
|
|
||
| echo "AI Service FVT secret creating function end" | ||
| } | ||
|
|
||
| function gitops_aiservice() { | ||
| # Take the first parameter off (it will be create-gitops) | ||
| shift | ||
|
|
@@ -353,6 +395,7 @@ function gitops_aiservice() { | |
| echo_reset_dim "Is External Route ...................... ${COLOR_MAGENTA}${IS_EXTERNAL_ROUTE}" | ||
| echo_reset_dim "JDBC Secret ............................ ${COLOR_MAGENTA}${JDBC_SECRET}" | ||
| echo_reset_dim "Use AWS DB2 ............................ ${COLOR_MAGENTA}${USE_AWS_DB2}" | ||
| echo_reset_dim "Is GitOps FVT ENV ............................ ${COLOR_MAGENTA}${IS_GITOPS_FVT_ENV}" | ||
|
|
||
| AVP_TYPE=aws # Support for IBM will be added later | ||
| sm_login | ||
|
|
@@ -381,10 +424,18 @@ function gitops_aiservice() { | |
| export MAS_ENTITLEMENT_KEY=${SECRETS_PREFIX}ibm_entitlement#entitlement_key | ||
| export ARTIFACTORY_TOKEN=${SECRETS_PREFIX}ibm_entitlement#image_pull_secret_b64 | ||
|
|
||
| sm_verify_secret_exists ${SECRETS_PREFIX}ibm_entitlement "image_pull_secret_b64,entitlement_key" | ||
| sm_verify_secret_exists ${SECRETS_PREFIX}dro "dro_api_token,dro_url,dro_ca_b64enc" | ||
| sm_verify_secret_exists ${SECRETS_PREFIX}s3 "sm_s3_accesskey,sm_s3_secretkey,sm_s3_host,sm_s3_region" | ||
| sm_verify_secret_exists ${SECRETS_PREFIX}jdbc "jdbccfg_username,jdbccfg_password,jdbccfg_url,jdbccfg_sslenabled,jdbccfg_ca_b64enc" | ||
| # Skip DRO, S3, and JDBC secret validation in FVT environments | ||
| # These secrets will be created by postSync jobs after deployment | ||
| if [[ "${IS_GITOPS_FVT_ENV}" != "true" ]]; then | ||
| sm_verify_secret_exists ${SECRETS_PREFIX}ibm_entitlement "image_pull_secret_b64,entitlement_key" | ||
| sm_verify_secret_exists ${SECRETS_PREFIX}dro "dro_api_token,dro_url,dro_ca_b64enc" | ||
| sm_verify_secret_exists ${SECRETS_PREFIX}s3 "sm_s3_accesskey,sm_s3_secretkey,sm_s3_host,sm_s3_region" | ||
| sm_verify_secret_exists ${SECRETS_PREFIX}jdbc "jdbccfg_username,jdbccfg_password,jdbccfg_url,jdbccfg_sslenabled,jdbccfg_ca_b64enc" | ||
| else | ||
| echo "IS_GITOPS_FVT_ENV is true - Skipping DRO, S3, and JDBC secret validation" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It would be useful to explain why we do this in the PR description and/or a comment here in the code. |
||
|
|
||
| gitops_aiservice_fvt_prepare | ||
| fi | ||
|
|
||
| if [ -z $GIT_SSH ]; then | ||
| export GIT_SSH=false | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
entitlement_keysecret is being skipped when not in FVT. Is this one not required for pulling images?