generated from terraform-ibm-modules/terraform-ibm-module-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Root module updates:<br>-
name
input has changed to `namespa…
…ce_name`<br>- supported added to configure an existing namespace using new input `existing_namespace_name`<br>- A new `quotas` submodule has been added for configuring namespace quotas<br>- A new Deployable Architecutre has been created for IBM Cloud catalog (#208)
- Loading branch information
Showing
41 changed files
with
1,081 additions
and
49 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
apiVersion: v1 | ||
offerings: | ||
- name: deploy-arch-ibm-container-registry | ||
kind: solution | ||
catalog_id: 7df1e4ca-d54c-4fd0-82ce-3d13247308cd | ||
offering_id: 5947efd7-d52a-4905-8052-45f1142f78a0 | ||
variations: | ||
- name: standard | ||
mark_ready: true | ||
install_type: fullstack | ||
scc: | ||
instance_id: 1c7d5f78-9262-44c3-b779-b28fe4d88c37 | ||
region: us-south |
Validating CODEOWNERS rules …
This file contains 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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
# Primary owner should be listed first in list of global owners, follwed by any secondary owners | ||
|
||
* @shemau @daniel-butler-irl |
This file contains 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 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 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 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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
version: "v1" | ||
CRA_TARGETS: | ||
- CRA_TARGET: "examples/namespace" | ||
- CRA_TARGET: "solutions/standard" | ||
CRA_IGNORE_RULES_FILE: "cra-tf-validate-ignore-rules.json" | ||
PROFILE_ID: "fe96bd4d-9b37-40f2-b39f-a62760e326a3" # SCC profile ID (currently set to 'IBM Cloud Framework for Financial Services' '1.7.0' profile). | ||
# CRA_ENVIRONMENT_VARIABLES: # An optional map of environment variables for CRA, where the key is the variable name and value is the value. Useful for providing TF_VARs. | ||
# TF_VAR_sample: "sample value" | ||
# TF_VAR_other: "another value" | ||
CRA_ENVIRONMENT_VARIABLES: # An optional map of environment variables for CRA, where the key is the variable name and value is the value. Useful for providing TF_VARs. | ||
TF_VAR_provider_visibility: "public" | ||
TF_VAR_namespace_region: "us-south" | ||
# SCC_INSTANCE_ID: "" # The SCC instance ID to use to download profile for CRA scan. If not provided, a default global value will be used. | ||
# SCC_REGION: "" # The IBM Cloud region that the SCC instance is in. If not provided, a default global value will be used. | ||
# PROFILE_ID: "" # The Profile ID input for CRA SCC scan. Ensure to use a US-specific ID. If not provided, a default global value will be used. |
This file contains 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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
# IBM Container Registry namespace example | ||
|
||
This example creates the following infrastructure: | ||
|
||
- A new resource group, if one is not passed in. | ||
- A new IBM Container Registry namespace. | ||
- Optionally, a new retention policy for the namespace. |
This file contains 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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
######################################################################################################################## | ||
# Resource group | ||
######################################################################################################################## | ||
|
||
module "resource_group" { | ||
source = "terraform-ibm-modules/resource-group/ibm" | ||
version = "1.1.6" | ||
# if an existing resource group is not set (null) create a new one using prefix | ||
resource_group_name = var.resource_group == null ? "${var.prefix}-resource-group" : null | ||
existing_resource_group_name = var.resource_group | ||
} | ||
|
||
module "namespace" { | ||
providers = { | ||
ibm = ibm.namespace | ||
} | ||
source = "../.." | ||
namespace_name = var.prefix == null ? "namespace" : "${var.prefix}-namespace" | ||
existing_namespace_name = var.existing_namespace_name | ||
resource_group_id = module.resource_group.resource_group_id | ||
tags = var.resource_tags | ||
images_per_repo = var.images_per_repo | ||
retain_untagged = var.retain_untagged | ||
} | ||
|
||
module "upgrade_plan" { | ||
source = "../..//modules/plan" | ||
} | ||
|
||
module "set_quota" { | ||
source = "../../modules/quotas" | ||
storage_megabytes = 5 * 1024 - 1 | ||
traffic_megabytes = 499 | ||
} |
File renamed without changes.
This file contains 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 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 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 |
---|---|---|
|
@@ -11,7 +11,7 @@ terraform { | |
} | ||
restapi = { | ||
source = "Mastercard/restapi" | ||
version = ">= 1.18.2" | ||
version = ">= 1.20.0" | ||
} | ||
} | ||
} |
Oops, something went wrong.