Skip to content
Closed
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .secrets.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"files": "go.sum|^.secrets.baseline$",
"lines": null
},
"generated_at": "2025-01-24T16:49:18Z",
"generated_at": "2025-01-28T19:05:06Z",
"plugins_used": [
{
"name": "AWSKeyDetector"
Expand Down Expand Up @@ -82,7 +82,7 @@
"hashed_secret": "2254481e1661d8f017a712b0d1ad9a14fd9460a3",
"is_secret": false,
"is_verified": false,
"line_number": 134,
"line_number": 136,
"type": "Secret Keyword",
"verified_result": null
}
Expand Down
6 changes: 3 additions & 3 deletions chart/cloud-pak-deployer/templates/install-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ spec:
- '/cloud-pak-deployer/cp-deploy.sh vault set -vs cp4d_admin_cpd_{{ .Values.cluster_name }} -vsv {{ .Values.deployer.admin_password }} && /cloud-pak-deployer/cp-deploy.sh env apply -vvvv {{ .Values.deployer.accept_license_flag }}'
resources:
limits:
cpu: 200m
cpu: 250m
memory: 512Mi
requests:
cpu: 10m
memory: 64Mi
cpu: 100m
memory: 256Mi
serviceAccount: {{ .Values.deployer.prefix }}-sa
volumes:
- name: config-volume
Expand Down
6 changes: 3 additions & 3 deletions chart/cloud-pak-deployer/templates/uninstall-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ spec:
- /cloud-pak-deployer/scripts/cp4d/cp4d-delete-instance.sh cpd <<< "y"
resources:
limits:
cpu: 200m
cpu: 250m
memory: 512Mi
requests:
cpu: 10m
memory: 64Mi
cpu: 100m
memory: 256Mi
restartPolicy: Never
securityContext:
runAsUser: 0
Expand Down
4 changes: 3 additions & 1 deletion solutions/deploy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ You need the following permissions to run this module:
| <a name="requirement_external"></a> [external](#requirement\_external) | >= 2.3.4 |
| <a name="requirement_helm"></a> [helm](#requirement\_helm) | >= 2.8.0, <3.0.0 |
| <a name="requirement_ibm"></a> [ibm](#requirement\_ibm) | >= 1.66.0, < 2.0.0 |
| <a name="requirement_shell"></a> [shell](#requirement\_shell) | 1.7.10 |

### Modules

Expand All @@ -124,13 +125,14 @@ You need the following permissions to run this module:
| [external_external.schematics](https://registry.terraform.io/providers/hashicorp/external/latest/docs/data-sources/external) | data source |
| [ibm_container_cluster_config.cluster_config](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/data-sources/container_cluster_config) | data source |
| [ibm_container_vpc_cluster.cluster_info](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/data-sources/container_vpc_cluster) | data source |
| [ibm_iam_auth_token.tokendata](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/data-sources/iam_auth_token) | data source |

### Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| <a name="input_cloud_pak_deployer_image"></a> [cloud\_pak\_deployer\_image](#input\_cloud\_pak\_deployer\_image) | Cloud Pak Deployer image location. If not defined, it will build the image via code engine | `string` | `null` | no |
| <a name="input_cloud_pak_deployer_release"></a> [cloud\_pak\_deployer\_release](#input\_cloud\_pak\_deployer\_release) | Release of Cloud Pak Deployer version to use. View releases at: https://github.com/IBM/cloud-pak-deployer/releases. | `string` | `"v3.1.2"` | no |
| <a name="input_cloud_pak_deployer_release"></a> [cloud\_pak\_deployer\_release](#input\_cloud\_pak\_deployer\_release) | Release of Cloud Pak Deployer version to use. View releases at: https://github.com/IBM/cloud-pak-deployer/releases. | `string` | `"v3.1.3"` | no |
| <a name="input_cloud_pak_deployer_secret"></a> [cloud\_pak\_deployer\_secret](#input\_cloud\_pak\_deployer\_secret) | Image pull secret for the cloud pak deployer image | <pre>object({<br/> username = string<br/> password = string<br/> server = string<br/> email = string<br/> })</pre> | `null` | no |
| <a name="input_cluster_name"></a> [cluster\_name](#input\_cluster\_name) | Name of Red Hat OpenShift cluster to install watsonx onto | `string` | n/a | yes |
| <a name="input_code_engine_project_id"></a> [code\_engine\_project\_id](#input\_code\_engine\_project\_id) | If you want to use an existing project, you can pass the code engine project id and the cloud pak deployer build will be built within the existing project vs a new one being created. | `string` | `null` | no |
Expand Down
8 changes: 8 additions & 0 deletions solutions/deploy/providers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ data "ibm_container_cluster_config" "cluster_config" {
config_dir = local.kube_config_dir
}

data "ibm_iam_auth_token" "tokendata" {}

provider "shell" {
sensitive_environment = {
TOKEN = data.ibm_iam_auth_token.tokendata.iam_access_token
}
}

provider "helm" {
kubernetes {
host = data.ibm_container_cluster_config.cluster_config.host
Expand Down
2 changes: 1 addition & 1 deletion solutions/deploy/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ variable "cloud_pak_deployer_image" {
variable "cloud_pak_deployer_release" {
description = "Release of Cloud Pak Deployer version to use. View releases at: https://github.com/IBM/cloud-pak-deployer/releases."
type = string
default = "v3.1.2"
default = "v3.1.3"
}

variable "cloud_pak_deployer_secret" {
Expand Down
4 changes: 4 additions & 0 deletions solutions/deploy/version.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,9 @@ terraform {
source = "hashicorp/helm"
version = ">= 2.8.0, <3.0.0"
}
shell = {
source = "scottwinkler/shell"
version = "1.7.10"
}
}
}