diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 9a35950..cdad7a4 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -24,6 +24,8 @@ jobs: uses: azure/setup-helm@v3 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Make Charts + run: make - name: Generate Documentation run: make docs - name: Generated Code Checked In diff --git a/README.md b/README.md index a137ce1..4d66b97 100644 --- a/README.md +++ b/README.md @@ -234,7 +234,7 @@ Add providers to allow CAPI to talk to various cloud providers. ### OpenStack -* [Install the provider](charts/cluster-api-provider-openstack/README.md) +* [Install the provider](README.provider-openstack.md) * [Install a cluster](charts/cluster-api-cluster-openstack/README.md) ## Developers diff --git a/README.md.tmpl b/README.md.tmpl index e33495a..8c4e2df 100644 --- a/README.md.tmpl +++ b/README.md.tmpl @@ -232,7 +232,7 @@ Add providers to allow CAPI to talk to various cloud providers. ### OpenStack -* [Install the provider](charts/cluster-api-provider-openstack/README.md) +* [Install the provider](README.provider-openstack.md) * [Install a cluster](charts/cluster-api-cluster-openstack/README.md) ## Developers diff --git a/charts/cluster-api-provider-openstack/README.md b/README.provider-openstack.md similarity index 79% rename from charts/cluster-api-provider-openstack/README.md rename to README.provider-openstack.md index 60a85f6..84bbae1 100644 --- a/charts/cluster-api-provider-openstack/README.md +++ b/README.provider-openstack.md @@ -1,3 +1,5 @@ + + # Installing Cluster API Provider OpenStack
@@ -6,7 +8,7 @@ ```shell helm repo add unikorn-cloud-capi https://unikorn-cloud.github.io/helm-cluster-api helm repo update -helm install cluster-api-provider-openstack unikorn-cloud-capi/cluster-api-provider-openstack --version v0.2.0 +helm upgrade --install cluster-api-provider-openstack unikorn-cloud-capi/cluster-api-provider-openstack -n cluster-api --create-namespace --version v0.2.0 ```
@@ -29,7 +31,7 @@ spec: targetRevision: v0.2.0 destination: server: https://kubernetes.default.svc - namespace: foo + namespace: cluster-api ignoreDifferences: - group: apiextensions.k8s.io kind: CustomResourceDefinition diff --git a/README.provider-openstack.md.tmpl b/README.provider-openstack.md.tmpl new file mode 100644 index 0000000..162b9d1 --- /dev/null +++ b/README.provider-openstack.md.tmpl @@ -0,0 +1,46 @@ +# Installing Cluster API Provider OpenStack + +
+Helm + +```shell +helm repo add unikorn-cloud-capi https://unikorn-cloud.github.io/helm-cluster-api +helm repo update +helm upgrade --install cluster-api-provider-openstack unikorn-cloud-capi/cluster-api-provider-openstack -n cluster-api --create-namespace --version {{ .CAPO_CHART_VERSION }} +``` +
+ +
+ArgoCD + +```yaml +--- + +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: cluster-api-provider-openstack + namespace: argocd +spec: + project: default + source: + repoURL: https://unikorn-cloud.github.io/helm-cluster-api + chart: cluster-api-provider-openstack + targetRevision: {{ .CAPO_CHART_VERSION }} + destination: + server: https://kubernetes.default.svc + namespace: cluster-api + ignoreDifferences: + - group: apiextensions.k8s.io + kind: CustomResourceDefinition + jsonPointers: + - /spec/conversion/webhook/clientConfig/caBundle + syncPolicy: + automated: + selfHeal: true + syncOptions: + - RespectIgnoreDifferences=true + - CreateNamespace=true +``` +
+ diff --git a/docs-generate.yaml b/docs-generate.yaml index e1ef28c..fa988ef 100644 --- a/docs-generate.yaml +++ b/docs-generate.yaml @@ -17,7 +17,7 @@ variables: pointer: /version - name: CAPO_CHART_VERSION yaml: - file: charts/cluster-api-cluster-openstack/Chart.yaml + file: charts/cluster-api-provider-openstack/Chart.yaml pointer: /version - name: CLUSTER_OPENSTACK_CHART_VERSION yaml: @@ -26,5 +26,7 @@ variables: files: - in: README.md.tmpl out: README.md +- in: README.provider-openstack.md.tmpl + out: README.provider-openstack.md - in: charts/cluster-api-cluster-openstack/README.md.tmpl out: charts/cluster-api-cluster-openstack/README.md