From c464548e5cd78229968a7c0f567b309419e756b3 Mon Sep 17 00:00:00 2001 From: Alex Misstear Date: Thu, 2 May 2024 15:59:27 -0400 Subject: [PATCH] Add namespace arg to hypershift-aws-template jobs Increased the nodePoolReplicas maximum for more control with a "bring your own credentials" model. Signed-off-by: Alex Misstear --- charts/hypershift-aws-template/Chart.yaml | 2 +- .../hypershift-aws-template/templates/create-cluster-job.yaml | 2 ++ .../hypershift-aws-template/templates/destroy-cluster-job.yaml | 2 ++ charts/hypershift-aws-template/values.schema.json | 2 +- 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/charts/hypershift-aws-template/Chart.yaml b/charts/hypershift-aws-template/Chart.yaml index cce238a..d02864c 100644 --- a/charts/hypershift-aws-template/Chart.yaml +++ b/charts/hypershift-aws-template/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.0.1 +version: 0.0.2 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/hypershift-aws-template/templates/create-cluster-job.yaml b/charts/hypershift-aws-template/templates/create-cluster-job.yaml index a5df759..f86316b 100644 --- a/charts/hypershift-aws-template/templates/create-cluster-job.yaml +++ b/charts/hypershift-aws-template/templates/create-cluster-job.yaml @@ -22,6 +22,8 @@ spec: - {{ .Release.Name }} - --infra-id - {{ .Release.Name | trunc -12 }} + - --namespace + - {{ .Release.Namespace }} - --secret-creds - {{ .Values.secret }} - --region diff --git a/charts/hypershift-aws-template/templates/destroy-cluster-job.yaml b/charts/hypershift-aws-template/templates/destroy-cluster-job.yaml index 352fc51..3a19bd5 100644 --- a/charts/hypershift-aws-template/templates/destroy-cluster-job.yaml +++ b/charts/hypershift-aws-template/templates/destroy-cluster-job.yaml @@ -27,6 +27,8 @@ spec: - {{ .Release.Name }} - --infra-id - {{ .Release.Name | trunc -12 }} + - --namespace + - {{ .Release.Namespace }} - --secret-creds - {{ .Values.secret }} - --region diff --git a/charts/hypershift-aws-template/values.schema.json b/charts/hypershift-aws-template/values.schema.json index fc7a8cb..cd38be8 100644 --- a/charts/hypershift-aws-template/values.schema.json +++ b/charts/hypershift-aws-template/values.schema.json @@ -31,7 +31,7 @@ "nodePoolReplicas": { "type": "integer", "description": "Size of the worker node pool", - "maximum": 3, + "maximum": 10, "minimum": 2 }, "region": {