Skip to content

Commit 5f24cac

Browse files
author
Sean Sundberg
authored
Updates the tile build process (#113)
- Fixes the path in the generated offering tar file - Updates the variable descriptions in the tile README and in the offering json
1 parent ddafd3e commit 5f24cac

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

.tile/docs/README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,15 @@ chmod +x create-catalog-offering.sh
7575
- Enter values for the variables list , these can be customized depending
7676
on the type of cluster and if its in classic or VPC
7777

78-
| **Variable** | **Description** | **eg. Value** |
79-
|---|---|---|
80-
| `ibmcloud_api_key` | The API key from IBM Cloud Console that support service creation access writes | `{guid API key from Console}` |
81-
| `resource_group_name` | The name of the resource group where the cluster is created | `dev-team-one` |
82-
| `cluster_name` | The name of the IKS cluster | `dev-team-one-iks-117-vpc` |
83-
| `registry_namespace` | The namespace that should be used in the IBM Container Registry. If not provided the value will default to theresource group name | `dev-team-one-registry-2020` |
84-
| `cluster_type` | The name of the IKS cluster | `kubernetes` or `ocp4` |
85-
| `cluster_exists` | Does the cluster exist already | `true` |
86-
| `vpc_cluster` | Is the cluster created in VPC | `true` |
78+
| **Variable** | **Description** | **eg. Value** |
79+
|-----------------------|-----------------------------------------------------------------------------------------------|-------------------------------|
80+
| `cluster_exists` | Flag indicating that the cluster already exists | `true` or `false` |
81+
| `cluster_type` | The type of cluster into which the toolkit will be installed | `kubernetes` or `ocp4` |
82+
| `ibmcloud_api_key` | The API key from IBM Cloud Console that has ClusterAdmin access and supports service creation | `{guid API key from Console}` |
83+
| `resource_group_name` | Existing resource group in the account where the cluster has been created | `dev-team-one` |
84+
| `cluster_name` | The name of the cluster | `dev-team-one-iks-117-vpc` |
85+
| `registry_namespace` | The namespace that should be used in the IBM Container Registry. If not provided the value will default to the resource group name | `dev-team-one-registry-2020` |
86+
| `vpc_cluster` | Flag indicating that the cluster has been built on VPC infrastructure | `true` or `false` |
8787

8888
- Input the Environment variables
8989

.tile/scripts/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ rm "${WORKSPACE_DIR}/stage3-logdna.tf"
5555
rm "${WORKSPACE_DIR}/stage3-sysdig.tf"
5656

5757
echo " - Creating offering - ${OUTPUT_DIR}/${OFFERING_NAME}.tar.gz"
58-
cd "${WORKSPACE_BASE}" && tar czf "${OUTPUT_DIR}/${OFFERING_NAME}.tar.gz" .
58+
cd "${WORKSPACE_BASE}" && tar czf "${OUTPUT_DIR}/${OFFERING_NAME}.tar.gz" "${OFFERING_NAME}"
5959
cd - 1> /dev/null
6060
rm -rf "${WORKSPACE_BASE}"
6161

.tile/scripts/master.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,31 +24,31 @@
2424
"key": "cluster_exists",
2525
"type": "string",
2626
"default_value": "true",
27-
"description": "Flag indicating if the cluster already exists (true or false)",
27+
"description": "Flag indicating that the cluster already exists (true or false)",
2828
"required": true,
2929
"hidden": false
3030
},
3131
{
3232
"key": "cluster_type",
3333
"type": "string",
34-
"default_value": "kubernetes",
35-
"description": "The type of cluster that should be created (ocp4, ocp3 or kubernetes)",
34+
"default_value": "ocp4",
35+
"description": "The type of cluster into which the #OFFERING will be installed (ocp4, ocp3 or kubernetes)",
3636
"required": true,
3737
"hidden": false
3838
},
3939
{
4040
"key": "ibmcloud_api_key",
4141
"type": "password",
4242
"default_value": "",
43-
"description": "The api key for IBM Cloud access",
43+
"description": "The API key from IBM Cloud Console that has ClusterAdmin access and supports service creation",
4444
"required": true,
4545
"hidden": false
4646
},
4747
{
4848
"key": "resource_group_name",
4949
"type": "string",
5050
"default_value": "",
51-
"description": "Existing resource group where the cluster will be provisioned.",
51+
"description": "Existing resource group that contains the cluster",
5252
"required": true,
5353
"hidden": false
5454
},
@@ -71,8 +71,8 @@
7171
{
7272
"key": "vpc_cluster",
7373
"type": "string",
74-
"default_value": "false",
75-
"description": "Flag indicating if the cluster is a VPC",
74+
"default_value": "true",
75+
"description": "Flag indicating that the cluster has been built on VPC infrastructure",
7676
"required": false,
7777
"hidden": false
7878
},

0 commit comments

Comments
 (0)