Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.

Expand Down
2 changes: 1 addition & 1 deletion docs/building.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).

Expand Down
2 changes: 1 addition & 1 deletion docs/complete-system-test.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion docs/kubernetes-compliance-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -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. |
Expand Down
2 changes: 1 addition & 1 deletion helm/salt-key-operator/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 5 additions & 6 deletions helm/salt-minion/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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`.
Expand Down
4 changes: 2 additions & 2 deletions helm/salt-minion/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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` |
Expand Down
8 changes: 4 additions & 4 deletions helm/salt-minion/tests/images_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion helm/salt-minion/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Loading