-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update charts and docs #11
Changes from 4 commits
3683edf
68e52ba
69f31de
b694d2f
e6e0fc4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,13 @@ | |
|
||
## Why? | ||
|
||
`clusterctl` is very opinionated, it will pull down some kustomize generated maifests, then do some environment substitution on them. | ||
`clusterctl` is very opinionated, it will pull down some kustomize generated manifests, then do some environment substitution on them. | ||
This isn't compatible with ArgoCD for example, hence this project. | ||
|
||
## How | ||
|
||
In simple terms, we run `kubectl kustomize`, chop up the manifests and auto generate templates. | ||
When we encounter one of the annoying evironment variables, we replace it with Go templating, then add the replacement into `values.yaml`. | ||
When we encounter one of the annoying environment variables, we replace it with Go templating, then add the replacement into `values.yaml`. | ||
|
||
## Deploying Prerequisites | ||
|
||
|
@@ -22,14 +22,15 @@ This chart requires the following to be installed on the target cluster first: | |
```shell | ||
helm repo add jetstack https://charts.jetstack.io | ||
helm repo update | ||
helm install cert-manager jetstack/cert-manager --version v1.10.1 --namespace cert-manager --create-namespace | ||
helm install cert-manager jetstack/cert-manager --version v1.15.1 --namespace cert-manager --create-namespace --set crds.enabled=true | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note to self: delete this, we shouldn't be telling users how to install a 3rd part application, and have to update the instructions all the time in different locations, a link to the docs will suffice. |
||
``` | ||
</details> | ||
|
||
<details> | ||
<summary>ArgoCD</summary> | ||
|
||
```yaml | ||
--- | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
|
@@ -40,14 +41,14 @@ spec: | |
source: | ||
chart: cert-manager | ||
repoURL: https://charts.jetstack.io | ||
targetRevision: v1.10.1 | ||
targetRevision: v1.15.1 | ||
helm: | ||
releaseName: cert-manager | ||
parameters: | ||
- name: installCRDs | ||
value: true | ||
value: "true" | ||
destination: | ||
name: ${TARGET_VCLUSTER} | ||
server: https://kubernetes.default.svc | ||
namespace: cert-manager | ||
syncPolicy: | ||
automated: | ||
|
@@ -67,14 +68,15 @@ There is a top level chart-of-charts that will just install everything as a big | |
```shell | ||
helm repo add unikorn-cloud-capi https://unikorn-cloud.github.io/helm-cluster-api | ||
helm repo update | ||
helm install unikorn-cloud-capi/cluster-api --version v0.1.1 | ||
helm install cluster-api unikorn-cloud-capi/cluster-api --version v0.2.0 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note to self: history repeating itself... we need a way to not have to change versions all over the place and every time something changes. Now asciidoc is good in that it has attributes, so that's a single place, markdown less so. Ideally we'd like the source of truth to be the chart version. So I guess the proposal would be to have a pre-commit hook that looks at There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. sed... sounds a bit flaky 🤣 Inspiration of what not to do certainly! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. aaah yeah, just looked at that script (for probably the first time!). ok yes, probably some parsing of the |
||
``` | ||
</details> | ||
|
||
<details> | ||
<summary>ArgoCD</summary> | ||
|
||
```yaml | ||
--- | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
|
@@ -85,9 +87,10 @@ spec: | |
source: | ||
repoURL: https://unikorn-cloud.github.io/helm-cluster-api | ||
chart: cluster-api | ||
targetRevision: v0.1.9 | ||
targetRevision: v0.2.0 | ||
destination: | ||
server: https://172.18.255.200:443 | ||
server: https://kubernetes.default.svc | ||
namespace: foo | ||
ignoreDifferences: | ||
# Aggregated roles are mangically updated by the API. | ||
- group: rbac.authorization.k8s.io | ||
|
@@ -125,14 +128,15 @@ You may want to be a little less gung-ho and deploy the pieces as separate appli | |
```shell | ||
helm repo add unikorn-cloud-capi https://unikorn-cloud.github.io/helm-cluster-api | ||
helm repo update | ||
helm install unikorn-cloud-capi/cluster-api-core --version v0.1.1 | ||
helm install cluster-api-core unikorn-cloud-capi/cluster-api-core --version v0.2.0 | ||
``` | ||
</details> | ||
|
||
<details> | ||
<summary>ArgoCD</summary> | ||
|
||
```yaml | ||
--- | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
|
@@ -143,9 +147,10 @@ spec: | |
source: | ||
repoURL: https://unikorn-cloud.github.io/helm-cluster-api | ||
chart: cluster-api-core | ||
targetRevision: v0.1.9 | ||
targetRevision: v0.2.0 | ||
destination: | ||
server: https://172.18.255.200:443 | ||
server: https://kubernetes.default.svc | ||
namespace: foo | ||
ignoreDifferences: | ||
# Aggregated roles are mangically updated by the API. | ||
- group: rbac.authorization.k8s.io | ||
|
@@ -174,14 +179,15 @@ spec: | |
```shell | ||
helm repo add unikorn-cloud-capi https://unikorn-cloud.github.io/helm-cluster-api | ||
helm repo update | ||
helm install unikorn-cloud-capi/cluster-api-bootstrap-kubeadm --version v0.1.1 | ||
helm install cluster-api-bootstrap-kubeadm unikorn-cloud-capi/cluster-api-bootstrap-kubeadm --version v0.2.0 | ||
``` | ||
</details> | ||
|
||
<details> | ||
<summary>ArgoCD</summary> | ||
|
||
```yaml | ||
--- | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
|
@@ -192,9 +198,10 @@ spec: | |
source: | ||
repoURL: https://unikorn-cloud.github.io/helm-cluster-api | ||
chart: cluster-api-bootstrap-kubeadm | ||
targetRevision: v0.1.9 | ||
targetRevision: v0.2.0 | ||
destination: | ||
server: https://172.18.255.200:443 | ||
server: https://kubernetes.default.svc | ||
namespace: foo | ||
ignoreDifferences: | ||
- group: apiextensions.k8s.io | ||
jsonPointers: | ||
|
@@ -216,14 +223,15 @@ spec: | |
```shell | ||
helm repo add unikorn-cloud-capi https://unikorn-cloud.github.io/helm-cluster-api | ||
helm repo update | ||
helm install unikorn-cloud-capi/cluster-api-control-plane-kubeadm --version v0.1.1 | ||
helm install cluster-api-control-plane-kubeadm unikorn-cloud-capi/cluster-api-control-plane-kubeadm --version v0.2.0 | ||
``` | ||
</details> | ||
|
||
<details> | ||
<summary>ArgoCD</summary> | ||
|
||
```yaml | ||
--- | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
|
@@ -234,9 +242,10 @@ spec: | |
source: | ||
repoURL: https://unikorn-cloud.github.io/helm-cluster-api | ||
chart: cluster-api-control-plane-kubeadm | ||
targetRevision: v0.1.9 | ||
targetRevision: v0.2.0 | ||
destination: | ||
server: https://172.18.255.200:443 | ||
server: https://kubernetes.default.svc | ||
namespace: foo | ||
ignoreDifferences: | ||
- group: rbac.authorization.k8s.io | ||
jsonPointers: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note to self: you need to bump this in the next PR... and obviously change all the versions... again