Skip to content

Commit d0bfff0

Browse files
committed
chore: add create icr namespace
1 parent 1b72a3b commit d0bfff0

File tree

3 files changed

+31
-8
lines changed

3 files changed

+31
-8
lines changed

ibm_catalog.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,13 @@
131131
"required": false
132132
},
133133
{
134+
"key": "create_icr_namespace",
135+
"type": "boolean",
136+
"default_value": true,
137+
"description": "Set to `true` to have Terraform create the registry namespace. Setting to `false` will have the CI pipeline create the namespace if it does not already exist. Note: If a Terraform destroy is used, the ICR namespace along with all images will be removed.",
138+
"required": false
139+
},
140+
{
134141
"key": "registry_namespace",
135142
"type": "string",
136143
"default_value": "devsecops",

kubernetes/stack_definition.json

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,14 @@
246246
"hidden": false,
247247
"default": "",
248248
"custom_config": {}
249+
},
250+
{
251+
"name": "create_icr_namespace",
252+
"required": false,
253+
"type": "boolean",
254+
"hidden": false,
255+
"default": true,
256+
"custom_config": {}
249257
}
250258
],
251259
"members": [
@@ -529,10 +537,6 @@
529537
"name" : "create_signing_key",
530538
"value" : true
531539
},
532-
{
533-
"name" : "create_signing_certificate",
534-
"value" : true
535-
},
536540
{
537541
"name" : "pipeline_ibmcloud_api_key_secret_name",
538542
"value" : "ref:../../inputs/pipeline_ibmcloud_api_key_secret_name"
@@ -581,6 +585,10 @@
581585
"name": "add_container_name_suffix",
582586
"value": "true"
583587
},
588+
{
589+
"name": "create_icr_namespace",
590+
"value": "ref:../../inputs/create_icr_namespace"
591+
},
584592
{
585593
"name": "create_git_token",
586594
"value": "ref:../../inputs/create_git_token"

stack_definition.json

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,14 @@
201201
"hidden": false,
202202
"default": "",
203203
"custom_config": {}
204+
},
205+
{
206+
"name": "create_icr_namespace",
207+
"required": false,
208+
"type": "boolean",
209+
"hidden": false,
210+
"default": true,
211+
"custom_config": {}
204212
}
205213
],
206214
"members": [
@@ -490,6 +498,10 @@
490498
"name": "add_container_name_suffix",
491499
"value": "true"
492500
},
501+
{
502+
"name": "create_icr_namespace",
503+
"value": "ref:../../inputs/create_icr_namespace"
504+
},
493505
{
494506
"name": "create_cd_instance",
495507
"value": "ref:../../inputs/create_cd_instance"
@@ -510,10 +522,6 @@
510522
"name": "create_signing_key",
511523
"value": true
512524
},
513-
{
514-
"name": "create_signing_certificate",
515-
"value": true
516-
},
517525
{
518526
"name": "pipeline_ibmcloud_api_key_secret_name",
519527
"value": "ref:../../inputs/pipeline_ibmcloud_api_key_secret_name"

0 commit comments

Comments
 (0)