You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,9 @@
1
+
# v2.2.1
2
+
## Fixes
3
+
- Update Role and RoleBinding resources to have correct namespace when `secretConfig.useClusterRoleForConfigMapAccess` is set to `false` in Helm chart values.
4
+
## Chores:
5
+
- Update GitHub Actions workflow to check for policy enforcement on Helm chart rendered manifests in addition to checking for drift in generated CRDs.
6
+
1
7
# v2.2.0
2
8
## Features:
3
9
- Add support to specify a ConfigMap for CA trust bundles in Issuer / ClusterIssuer resources via the caBundleConfigMapName specification.
- helm (>= 3.x) — required to render chart templates for manifest linting ([installation notes](https://helm.sh/docs/intro/install/))
11
+
- conftest — policy testing tool powered by Open Policy Agent; installed automatically by `make lint-manifests`
10
12
11
13
## Installing dependencies
12
14
Project dependencies can be installed by running the following:
@@ -35,6 +37,43 @@ The project uses golangci-lint to lint the codebase. The following command can b
35
37
golangci-lint run
36
38
```
37
39
40
+
## Updating generated manifests
41
+
42
+
This command will update the generated custom resource definitions under `config/crd/bases`:
43
+
44
+
```bash
45
+
make generate manifests
46
+
```
47
+
48
+
> [!IMPORTANT]
49
+
> There is no automated process to automatically update the CRDs under `deploy/charts/ejbca-cert-manager-issuer`. If any changes are made to the CRDs, the generated CRDs under `config/crd/bases` must be copied to `deploy/charts/ejbca-cert-manager-issuer/crds` to ensure the Helm chart is up to date.
50
+
51
+
## Linting Helm manifests
52
+
53
+
The Helm chart under `deploy/charts/ejbca-cert-manager-issuer` is linted with two tools on every PR:
54
+
55
+
-**conftest** — runs custom Rego policies located in the [`policy/`](policy/) directory against the rendered manifests
56
+
57
+
To run both checks locally:
58
+
59
+
```bash
60
+
make lint-manifests
61
+
```
62
+
63
+
`conftest` is downloaded automatically into `bin/` on first use; no manual installation is required.
64
+
65
+
To inspect the rendered templates without linting:
66
+
67
+
```bash
68
+
make helm-template
69
+
```
70
+
71
+
### Adding or modifying policies
72
+
73
+
Rego policies live in [`policy/`](policy/). Each `.rego` file in that directory is evaluated by conftest against every resource in the rendered chart. Add a new `.rego` file to enforce additional rules. For example, `policy/roles.rego` enforces that all `Role` resources declare an explicit namespace.
74
+
75
+
kube-linter checks can be tuned in [.kube-linter.yaml](.kube-linter.yaml). To exclude a check, add its name under the `exclude` key.
76
+
38
77
## Running end-to-end tests
39
78
A comprehensive end-to-end test suite is available to verify the issuer code works against cert-manager and an EJBCA instance.
0 commit comments