diff --git a/README.md b/README.md index e0e54e5..d90b1c3 100644 --- a/README.md +++ b/README.md @@ -106,7 +106,7 @@ helm install salt-minion helm/salt-minion \ ``` The minion chart's default image is -`ghcr.io/saltstack/salt-minion:0.1.0`; set +`ghcr.io/saltstack/salt-minion:0.2.0`; set `agent.image.repository`/`agent.image.tag` to use the image you built. The master chart's default is the unqualified `salt-master:3008.5`. diff --git a/docs/building.md b/docs/building.md index 28c7ea2..b5b0d68 100644 --- a/docs/building.md +++ b/docs/building.md @@ -22,7 +22,7 @@ docker build -t salt-key-operator:0.1.0 src/salt-key-operator ``` Image names and tags are your choice. The chart defaults are -`salt-master:3008.5` (master), `ghcr.io/saltstack/salt-minion:0.1.0` +`salt-master:3008.5` (master), `ghcr.io/saltstack/salt-minion:0.2.0` (minion) and `ghcr.io/saltstack/salt-key-operator:0.1.0` (operator), so override the image values when you use your own build (see below). diff --git a/docs/complete-system-test.md b/docs/complete-system-test.md index 45c011f..5f71de5 100644 --- a/docs/complete-system-test.md +++ b/docs/complete-system-test.md @@ -20,7 +20,7 @@ There is no Helm chart for `salt-minion-vcf`. To test the VCF image, install the - Docker, if you build images yourself (see [`building.md`](building.md)). - Images the nodes can pull. Chart defaults: master `salt-master:3008.5` (unqualified, so build and import it, or override it), minion - `ghcr.io/saltstack/salt-minion:0.1.0`, operator + `ghcr.io/saltstack/salt-minion:0.2.0`, operator `ghcr.io/saltstack/salt-key-operator:0.1.0`. Override them with `agent.image.repository`/`agent.image.tag` (master, minion) and `salt-key-operator.image.repository`/`salt-key-operator.image.tag` (the operator, diff --git a/docs/kubernetes-compliance-guide.md b/docs/kubernetes-compliance-guide.md index f1ca44a..c8c40d6 100644 --- a/docs/kubernetes-compliance-guide.md +++ b/docs/kubernetes-compliance-guide.md @@ -83,7 +83,7 @@ Key values (full list in [`helm/salt-minion/values.yaml`](../helm/salt-minion/va | Value | Purpose | | --- | --- | -| `agent.image.repository` / `agent.image.tag` | The minion image from step 1 (default `ghcr.io/saltstack/salt-minion:0.1.0`). | +| `agent.image.repository` / `agent.image.tag` | The minion image from step 1 (default `ghcr.io/saltstack/salt-minion:0.2.0`). | | `agent.saltMasterHost` | Master address: `salt-master.salt-master.svc.cluster.local` from inside the cluster, or a node IP with `NodePort`. | | `agent.saltMasterPort`, `agent.saltPublishPort` | Default 4506 and 4505. With a `NodePort` master set both to the NodePort values (30506 and 30505 by default); they must change together. | | One of `agent.minion.keySecretName`, `agent.minion.privateKeyB64` with `publicKeyB64`, `agent.minion.allowSelfGeneratedKey` | Required key source. The minion's keypair is kept in a Secret, so it survives pod restarts. | diff --git a/helm/salt-key-operator/CHANGELOG.md b/helm/salt-key-operator/CHANGELOG.md index 2ae0cbd..7c9590d 100644 --- a/helm/salt-key-operator/CHANGELOG.md +++ b/helm/salt-key-operator/CHANGELOG.md @@ -6,7 +6,7 @@ headings below use the older `salt-key-operator-chart/vX.Y.Z` naming. The chart' version is independent of the image version it happens to default to — check here, not the tag number. -## Unreleased +## salt-key-operator-chart/v0.2.0 - **`watchNamespace` now defaults to the release namespace** (empty), not the fixed `salt-master`, and cluster-wide watching is the explicit `clusterWide: true` (it used to be `watchNamespace: ""`). The Deployment goes into the release namespace but the Role and RoleBinding went into diff --git a/helm/salt-minion/CHANGELOG.md b/helm/salt-minion/CHANGELOG.md index 87a2bd8..5b9c728 100644 --- a/helm/salt-minion/CHANGELOG.md +++ b/helm/salt-minion/CHANGELOG.md @@ -8,8 +8,9 @@ versions it carries — check here. The release tags are `salt-minion-vX.Y.Z` fo ## Image releases (`salt-minion-image/vX.Y.Z`) -### Unreleased -Applies to both `src/minion/kubernetes` and `src/minion/vcf`. +### salt-minion-image/v0.2.0 +Applies to both `src/minion/kubernetes` (tag `salt-minion-v0.2.0`) and `src/minion/vcf` (tag +`salt-minion-vcf-v0.2.0`). - **Fix: installing the Salt extensions no longer replaces the onedir Salt.** The extensions (for example `saltext.kubernetes`) require `salt>=3006`, and pip does not count the bootstrap-installed onedir Salt as satisfying that, so it downloaded @@ -36,9 +37,6 @@ Applies to both `src/minion/kubernetes` and `src/minion/vcf`. - Removed the unused `SALT_GPG_KEY_URL` and `SALT_APT_REPO_URL` build arguments, and corrected comments that still named the old chart and file paths. -### salt-minion-image/v0.1.2 -- Salt: 3008.5 (no other change) - ### salt-minion-image/v0.1.1 - Salt: 3008.2 - Extensions: saltext.kubernetes==2.1.0, saltext.vault==1.8.0 @@ -59,8 +57,9 @@ Applies to both `src/minion/kubernetes` and `src/minion/vcf`. ## Chart releases (`salt-minion-chart/vX.Y.Z`) -### Unreleased +### salt-minion-chart/v0.2.0 **Breaking - reinstall rather than `helm upgrade` from any earlier release.** +- The default image is `ghcr.io/saltstack/salt-minion:0.2.0`. - `Deployment` -> `StatefulSet` (`templates/deployment.yaml` is now `templates/statefulset.yaml`), so every replica gets a stable, unique identity. The StatefulSet is named `agent.minion.idPrefix` (default `salt-minion`) and uses `podManagementPolicy: Parallel`. diff --git a/helm/salt-minion/README.md b/helm/salt-minion/README.md index 97589ba..884f197 100644 --- a/helm/salt-minion/README.md +++ b/helm/salt-minion/README.md @@ -24,7 +24,7 @@ docker build -t salt-minion:local ./src/minion/kubernetes See [`src/minion/README.md`](../../src/minion/README.md) for build arguments and [`CHANGELOG.md`](CHANGELOG.md) for which Salt and extension versions each image -release carries. The default `agent.image.tag` is an image release tag (`0.1.0`), not a +release carries. The default `agent.image.tag` is an image release tag (`0.2.0`), not a Salt version. ## Deployment Modes @@ -213,7 +213,7 @@ See [values.yaml](values.yaml) for the complete list of configuration options. | `agent.podSecurityContext` | Pod security context; `fsGroup` gives the containers access to the key Secret and the PKI volume | `{"fsGroup": 10001, "runAsNonRoot": true}` | | `agent.containerSecurityContext` | Security context shared by the minion and the `prepare-minion-keys` init container | `{"allowPrivilegeEscalation": false, "runAsNonRoot": true, "capabilities": {"drop": ["ALL"]}}` | | `agent.image.repository` | Minion image repository | `ghcr.io/saltstack/salt-minion` | -| `agent.image.tag` | Minion image tag | `0.1.0` | +| `agent.image.tag` | Minion image tag | `0.2.0` | | `agent.image.pullPolicy` | Minion image pull policy | `IfNotPresent` | | `agent.image.imagePullSecrets` | Pull Secrets for the minion pods | `[]` | | `keygen.image.repository` | Key generation image (needs `kubectl` and `openssl`) | `bitnami/kubectl` | diff --git a/helm/salt-minion/tests/images_test.yaml b/helm/salt-minion/tests/images_test.yaml index 248fdd3..616982f 100644 --- a/helm/salt-minion/tests/images_test.yaml +++ b/helm/salt-minion/tests/images_test.yaml @@ -10,11 +10,11 @@ tests: - template: templates/statefulset.yaml equal: path: spec.template.spec.containers[?(@.name == "salt-minion")].image - value: ghcr.io/saltstack/salt-minion:0.1.0 + value: ghcr.io/saltstack/salt-minion:0.2.0 - template: templates/statefulset.yaml equal: path: spec.template.spec.initContainers[?(@.name == "prepare-minion-keys")].image - value: ghcr.io/saltstack/salt-minion:0.1.0 + value: ghcr.io/saltstack/salt-minion:0.2.0 - template: templates/keygen-job.yaml equal: path: spec.template.spec.containers[?(@.name == "keygen")].image @@ -56,11 +56,11 @@ tests: - template: templates/statefulset.yaml equal: path: spec.template.spec.containers[?(@.name == "salt-minion")].image - value: mirror.example:5000/team/minion:0.1.0 + value: mirror.example:5000/team/minion:0.2.0 - template: templates/statefulset.yaml equal: path: spec.template.spec.initContainers[?(@.name == "prepare-minion-keys")].image - value: mirror.example:5000/team/minion:0.1.0 + value: mirror.example:5000/team/minion:0.2.0 - template: templates/keygen-job.yaml equal: path: spec.template.spec.containers[?(@.name == "keygen")].image diff --git a/helm/salt-minion/values.yaml b/helm/salt-minion/values.yaml index 5659d30..ce3f117 100644 --- a/helm/salt-minion/values.yaml +++ b/helm/salt-minion/values.yaml @@ -37,7 +37,7 @@ agent: repository: ghcr.io/saltstack/salt-minion # To use the VCF extensions, set repository to the VCF image (e.g., salt-minion-vcf) and an appropriate tag # repository: ghcr.io/saltstack/salt-minion-vcf - tag: "0.1.0" + tag: "0.2.0" pullPolicy: IfNotPresent # Sets SALT_LOG_LEVEL / `log_level:` on the minion.