Created
March 5, 2022 01:12
-
-
Save mamercad/1e781e661728ca411f61362bea1e0bb6 to your computer and use it in GitHub Desktop.
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
❯ git status | |
On branch helm | |
Your branch is up to date with 'origin/helm'. | |
nothing to commit, working tree clean | |
❯ VERSION=0.17.4 make helm-chart | |
== KUSTOMIZE (image and namespace) == | |
cd config/manager && /usr/local/bin/kustomize edit set image controller=quay.io/ansible/awx-operator:0.17.4 | |
cd config/default && /usr/local/bin/kustomize edit set namespace awx | |
== HELM == | |
cd charts && \ | |
/usr/local/bin/helm create awx-operator --starter /Users/mark/Code/github.com/mamercad/awx-operator/.helm/starter ;\ | |
/Users/mark/Code/github.com/mamercad/awx-operator/bin/yq -i '.version = "0.17.4"' awx-operator/Chart.yaml ;\ | |
/Users/mark/Code/github.com/mamercad/awx-operator/bin/yq -i '.appVersion = "0.17.4" | .appVersion style="double"' awx-operator/Chart.yaml ;\ | |
/Users/mark/Code/github.com/mamercad/awx-operator/bin/yq -i '.description = "A Helm chart for the AWX Operator"' awx-operator/Chart.yaml ;\ | |
Creating awx-operator | |
apiVersion: v2 | |
appVersion: "0.17.4" | |
description: A Helm chart for the AWX Operator | |
name: awx-operator | |
type: application | |
version: 0.17.4 | |
== KUSTOMIZE (annotation) == | |
cd config/manager && /usr/local/bin/kustomize edit set annotation helm.sh/chart:awx-operator-0.17.4 | |
cd config/default && /usr/local/bin/kustomize edit set annotation helm.sh/chart:awx-operator-0.17.4 | |
== SLICE == | |
/usr/local/bin/kustomize build config/default | \ | |
/Users/mark/Code/github.com/mamercad/awx-operator/bin/kubectl-slice --input-file=- \ | |
--output-dir=charts/awx-operator/templates \ | |
--sort-by-kind | |
Wrote charts/awx-operator/templates/namespace-awx.yaml -- 156 bytes. | |
Wrote charts/awx-operator/templates/serviceaccount-awx-operator-controller-manager.yaml -- 158 bytes. | |
Wrote charts/awx-operator/templates/configmap-awx-operator-awx-manager-config.yaml -- 472 bytes. | |
Wrote charts/awx-operator/templates/customresourcedefinition-awxbackups.awx.ansible.com.yaml -- 2685 bytes. | |
Wrote charts/awx-operator/templates/customresourcedefinition-awxrestores.awx.ansible.com.yaml -- 2740 bytes. | |
Wrote charts/awx-operator/templates/customresourcedefinition-awxs.awx.ansible.com.yaml -- 18122 bytes. | |
Wrote charts/awx-operator/templates/clusterrole-awx-operator-metrics-reader.yaml -- 216 bytes. | |
Wrote charts/awx-operator/templates/clusterrole-awx-operator-proxy-role.yaml -- 348 bytes. | |
Wrote charts/awx-operator/templates/clusterrolebinding-awx-operator-proxy-rolebinding.yaml -- 359 bytes. | |
Wrote charts/awx-operator/templates/role-awx-operator-awx-manager-role.yaml -- 1495 bytes. | |
Wrote charts/awx-operator/templates/role-awx-operator-leader-election-role.yaml -- 524 bytes. | |
Wrote charts/awx-operator/templates/rolebinding-awx-operator-awx-manager-rolebinding.yaml -- 374 bytes. | |
Wrote charts/awx-operator/templates/rolebinding-awx-operator-leader-election-rolebinding.yaml -- 382 bytes. | |
Wrote charts/awx-operator/templates/service-awx-operator-controller-manager-metrics-service.yaml -- 351 bytes. | |
Wrote charts/awx-operator/templates/deployment-awx-operator-controller-manager.yaml -- 1823 bytes. | |
15 files generated. | |
❯ helm install awx-operator ./charts/awx-operator | |
NAME: awx-operator | |
LAST DEPLOYED: Fri Mar 4 20:10:12 2022 | |
NAMESPACE: default | |
STATUS: deployed | |
REVISION: 1 | |
TEST SUITE: None | |
NOTES: | |
Helm Chart 0.17.4 | |
❯ helm list | |
NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION | |
awx-operator default 1 2022-03-04 20:10:12.053129 -0500 EST deployed awx-operator-0.17.4 0.17.4 | |
❯ git diff | |
diff --git a/config/default/kustomization.yaml b/config/default/kustomization.yaml | |
index f5ebf77..ae8f8c9 100644 | |
--- a/config/default/kustomization.yaml | |
+++ b/config/default/kustomization.yaml | |
@@ -22,3 +22,5 @@ resources: | |
- ../crd | |
- ../rbac | |
- ../manager | |
+commonAnnotations: | |
+ helm.sh/chart: awx-operator-0.17.4 | |
diff --git a/config/manager/kustomization.yaml b/config/manager/kustomization.yaml | |
index 260f8f0..466060c 100644 | |
--- a/config/manager/kustomization.yaml | |
+++ b/config/manager/kustomization.yaml | |
@@ -11,4 +11,6 @@ kind: Kustomization | |
images: | |
- name: controller | |
newName: quay.io/ansible/awx-operator | |
- newTag: latest | |
+ newTag: 0.17.4 | |
+commonAnnotations: | |
+ helm.sh/chart: awx-operator-0.17.4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment