image-registry
cloud-native-toolkit/image-registry/ibm
Terraform module that creates/verifies the IBM Cloud Image Registry namespace and (optionally) creates configuration in the cluster
IBM Cloud Container Registry terraform module Terraform module that sets up a namespace within the IBM Cloud Container Registry and configures it in the cluster for use. Configuring the cluster includes adding the icr pull secret in the cluster-wide pull secret and adding a ConsoleLink to ocp 4.x clusters. Software dependencies The module depends on the following software components: Command-line tools - terraform - v12 - oc cli - ibmcloud cli Terraform providers - Helm provider >= 1.1.1 (provided by Terraform) Module dependencies This module makes use of the output from other modules: - Cluster - github.com/ibm-garage-cloud/terraform-ibm-container-platform.git - Namespace - github.com/ibm-garage-clout/terraform-cluster-namespace.git Example usage ``hcl-terraform module "registry" { source
| Name | Type | Description | Default |
|---|---|---|---|
| resource_group_name | string | The name of the IBM Cloud resource group where the cluster will be created/can b | required |
| region | string | The region for the image registry been installed. | required |
| cluster_namespace | string | The namespace in the cluster where the configuration should be created (e.g. too | required |
| config_file_path | string | The path to the kube config | required |
| ibmcloud_api_key | string | The IBM Cloud api token | required |
| private_endpoint | string | Flag indicating that the registry url should be created with private endpoints | "true" |
| registry_user | string | The username to authenticate to the IBM Container Registry | "iamapikey" |
| apply | bool | Flag indicating that the module should be applied | true |
| cluster_type_code | string | The cluster_type of the cluster | "ocp4" |
| registry_namespace | string | The namespace that will be created in the IBM Cloud image registry. If not provi | "" |
| registry_password | string | The password (API key) to authenticate to the IBM Container Registry. If not pro | "" |
| gitops_dir | string | The directory where the gitops configuration should be stored | "" |