Skip to content

Commit 9fca8ea

Browse files
committed
chore: add standard api key support
1 parent 1599ebb commit 9fca8ea

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

ibm_catalog.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -717,6 +717,13 @@
717717
"required": false
718718
},
719719
{
720+
"key": "force_create_standard_api_key",
721+
"type": "boolean",
722+
"default_value": false,
723+
"description": "Set to `true` to force create a standard api key. By default the generated apikey will be a service api key. It is recommended to use a Git Token when using the service api key. In the case where the user has been invited to an account and that user not the account owner, during toolchain creation the default compliance repositories will be created in that user's account and the service api will not have access to those repositories. In this case a Git Token for the repositories is required. See `repo_git_token_secret_name` for more details. The alternative is to set `force_create_standard_api_key` to `true` to create a standard api key.",
724+
"required": false
725+
},
726+
{
720727
"key": "pipeline_ibmcloud_api_key_secret_name",
721728
"type": "string",
722729
"default_value": "ibmcloud-api-key",

kubernetes/stack_definition.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,14 @@
231231
"default": false,
232232
"custom_config": {}
233233
},
234+
{
235+
"name": "force_create_standard_api_key",
236+
"required": false,
237+
"type": "boolean",
238+
"hidden": false,
239+
"default": false,
240+
"custom_config": {}
241+
},
234242
{
235243
"name": "custom_app_repo_git_token_secret_name",
236244
"required": false,
@@ -825,6 +833,10 @@
825833
"name": "create_git_token",
826834
"value": "ref:../../inputs/create_git_token"
827835
},
836+
{
837+
"name": "force_create_standard_api_key",
838+
"value": "ref:../../inputs/force_create_standard_api_key"
839+
},
828840
{
829841
"name": "custom_app_repo_git_token_secret_name",
830842
"value": "ref:../../inputs/custom_app_repo_git_token_secret_name"

stack_definition.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,14 @@
186186
"default": false,
187187
"custom_config": {}
188188
},
189+
{
190+
"name": "force_create_standard_api_key",
191+
"required": false,
192+
"type": "boolean",
193+
"hidden": false,
194+
"default": false,
195+
"custom_config": {}
196+
},
189197
{
190198
"name": "custom_app_repo_git_token_secret_name",
191199
"required": false,
@@ -786,6 +794,10 @@
786794
"name": "create_git_token",
787795
"value": "ref:../../inputs/create_git_token"
788796
},
797+
{
798+
"name": "force_create_standard_api_key",
799+
"value": "ref:../../inputs/force_create_standard_api_key"
800+
},
789801
{
790802
"name": "custom_app_repo_git_token_secret_name",
791803
"value": "ref:../../inputs/custom_app_repo_git_token_secret_name"

0 commit comments

Comments
 (0)