Skip to content

Commit 874894c

Browse files
authored
Merge pull request #428 from anchore/enterprise-3.3.1-bump
bumping enterprise chart version to 3.3.1 (Anchore Enterprise 5.13.1)
2 parents 127a7eb + ad14fa9 commit 874894c

File tree

6 files changed

+41
-17
lines changed

6 files changed

+41
-17
lines changed

.github/workflows/openshift-test.yaml

+10-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929

3030
- uses: actions/setup-python@e9aba2c848f5ebd159c070c61ea2c4e2b122355e # v2.3.4
3131
with:
32-
python-version: 3.7
32+
python-version: '3.10'
3333

3434
- name: Set up Helm
3535
uses: azure/setup-helm@5119fcb9089d432beecbf79bb2c7915207344b78 # v3.5
@@ -123,6 +123,15 @@ jobs:
123123
echo ' image: "docker.io/anchore/anchore-on-prem-ui-dev:rc"' >> stable/enterprise/ci/openshift-test.yaml
124124
echo "Appended to stable/enterprise/ci/openshift-test.yaml"
125125
126+
- name: Update to nightly image if needed
127+
if: ${{ github.event.pull_request.base.ref == 'nightly' || github.ref_name == 'nightly' }}
128+
run: |
129+
echo "Branch: ${{ github.event.pull_request.head.ref }}"
130+
echo 'image: "docker.io/anchore/enterprise-dev:nightly"' >> stable/enterprise/ci/openshift-test.yaml
131+
echo 'ui:' >> stable/enterprise/ci/openshift-test.yaml
132+
echo ' image: "docker.io/anchore/anchore-on-prem-ui-dev:nightly"' >> stable/enterprise/ci/openshift-test.yaml
133+
echo "Appended to stable/enterprise/ci/openshift-test.yaml"
134+
126135
- name: Run chart-testing
127136
if: steps.list-changed.outputs.CHANGED == 'true'
128137
run: |

.github/workflows/test.yaml

+10-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727

2828
- uses: actions/setup-python@e9aba2c848f5ebd159c070c61ea2c4e2b122355e # v2.3.4
2929
with:
30-
python-version: 3.7
30+
python-version: '3.10'
3131

3232
- name: Set up Helm
3333
uses: azure/setup-helm@5119fcb9089d432beecbf79bb2c7915207344b78 # v3.5
@@ -106,6 +106,15 @@ jobs:
106106
echo ' image: "docker.io/anchore/anchore-on-prem-ui-dev:rc"' >> stable/enterprise/ci/rc-values.yaml
107107
echo "Appended to stable/enterprise/ci/rc-values.yaml"
108108
109+
- name: Update to nightly image if needed
110+
if: ${{ github.event.pull_request.base.ref == 'nightly' || github.ref_name == 'nightly' }}
111+
run: |
112+
echo "Branch: ${{ github.event.pull_request.head.ref }}"
113+
echo 'image: "docker.io/anchore/enterprise-dev:nightly"' >> stable/enterprise/ci/nightly-values.yaml
114+
echo 'ui:' >> stable/enterprise/ci/nightly-values.yaml
115+
echo ' image: "docker.io/anchore/anchore-on-prem-ui-dev:nightly"' >> stable/enterprise/ci/nightly-values.yaml
116+
echo "Appended to stable/enterprise/ci/nightly-values.yaml"
117+
109118
- name: Run chart-testing
110119
if: steps.list-changed.outputs.CHANGED == 'true'
111120
run: ct install --config ct-config.yaml --helm-extra-args "--timeout 600s"

stable/enterprise/Chart.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v2
22
name: enterprise
3-
version: "3.3.0"
4-
appVersion: "5.13.0"
3+
version: "3.3.1"
4+
appVersion: "5.13.1"
55
kubeVersion: 1.23.x - 1.31.x || 1.23.x-x - 1.31.x-x
66
description: |
77
Anchore Enterprise is a complete container security workflow solution for professional teams. Easily integrating with CI/CD systems,

stable/enterprise/README.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ This guide covers deploying Anchore Enterprise on a Kubernetes cluster with the
8989
9090
### Installing on Openshift
9191
92-
You will need to either disable or properly set the parameters for `containerSecurityContext`, `runAsUser`, and `fsGroup` for the `ui-redis` and any PostgreSQL database that you deploy using the Enterprise chart (e.g., via `postgresql.chartEnabled`).
92+
You will need to either disable or properly set the parameters for `containerSecurityContext`, `runAsUser`, and `fsGroup` for the `ui-redis` and any PostgreSQL database that you deploy using the Enterprise chart (e.g., via `postgresql.chartEnabled`). Also, by default, Anchore Enterprise creates a user that normally runs the application with a uid/gid/group of 1000. If your deployment uses any other user as openshift usually does, you will need to update the HOME environment variable to a directory where the analyzer service can write to.
9393
9494
For example:
9595
@@ -103,7 +103,9 @@ For example:
103103
--set postgresql.primary.containerSecurityContext.enabled=false \
104104
--set postgresql.primary.podSecurityContext.enabled=false \
105105
--set ui-redis.master.podSecurityContext.enabled=false \
106-
--set ui-redis.master.containerSecurityContext.enabled=false
106+
--set ui-redis.master.containerSecurityContext.enabled=false \
107+
--set analyzer.extraEnv[0].name=HOME \
108+
--set analyzer.extraEnv[0].value=/tmp
107109
```
108110
109111
> **Note:** disabling the containerSecurityContext and podSecurityContext may not be suitable for production. See [Redhat's documentation](https://docs.openshift.com/container-platform/4.13/authentication/managing-security-context-constraints.html#managing-pod-security-policies) on what may be suitable for production. For more information on the openshift.io/sa.scc.uid-range annotation, see the [openshift docs](https://docs.openshift.com/dedicated/authentication/managing-security-context-constraints.html#security-context-constraints-pre-allocated-values_configuring-internal-oauth)
@@ -129,6 +131,10 @@ ui-redis:
129131
enabled: false
130132
containerSecurityContext:
131133
enabled: false
134+
analyzer:
135+
extraEnv:
136+
- name: HOME
137+
value: /tmp
132138
```
133139

134140
## Upgrading the Chart

stable/enterprise/tests/__snapshot__/prehook_upgrade_resources_test.yaml.snap

+9-9
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ migration job should match snapshot:
2626
name: test-release-enterprise-config-env-vars
2727
- secretRef:
2828
name: test-release-enterprise
29-
image: docker.io/anchore/enterprise:v5.13.0
29+
image: docker.io/anchore/enterprise:v5.13.1
3030
imagePullPolicy: IfNotPresent
3131
name: migrate-analysis-archive
3232
volumeMounts:
@@ -89,7 +89,7 @@ migration job should match snapshot:
8989
valueFrom:
9090
fieldRef:
9191
fieldPath: metadata.name
92-
image: docker.io/anchore/enterprise:v5.13.0
92+
image: docker.io/anchore/enterprise:v5.13.1
9393
imagePullPolicy: IfNotPresent
9494
name: wait-for-db
9595
restartPolicy: Never
@@ -148,7 +148,7 @@ migration job should match snapshot analysisArchiveMigration and objectStoreMigr
148148
name: test-release-enterprise-config-env-vars
149149
- secretRef:
150150
name: test-release-enterprise
151-
image: docker.io/anchore/enterprise:v5.13.0
151+
image: docker.io/anchore/enterprise:v5.13.1
152152
imagePullPolicy: IfNotPresent
153153
name: migrate-analysis-archive
154154
volumeMounts:
@@ -211,7 +211,7 @@ migration job should match snapshot analysisArchiveMigration and objectStoreMigr
211211
valueFrom:
212212
fieldRef:
213213
fieldPath: metadata.name
214-
image: docker.io/anchore/enterprise:v5.13.0
214+
image: docker.io/anchore/enterprise:v5.13.1
215215
imagePullPolicy: IfNotPresent
216216
name: wait-for-db
217217
restartPolicy: Never
@@ -268,7 +268,7 @@ migration job should match snapshot analysisArchiveMigration to true:
268268
name: test-release-enterprise-config-env-vars
269269
- secretRef:
270270
name: test-release-enterprise
271-
image: docker.io/anchore/enterprise:v5.13.0
271+
image: docker.io/anchore/enterprise:v5.13.1
272272
imagePullPolicy: IfNotPresent
273273
name: migrate-analysis-archive
274274
volumeMounts:
@@ -331,7 +331,7 @@ migration job should match snapshot analysisArchiveMigration to true:
331331
valueFrom:
332332
fieldRef:
333333
fieldPath: metadata.name
334-
image: docker.io/anchore/enterprise:v5.13.0
334+
image: docker.io/anchore/enterprise:v5.13.1
335335
imagePullPolicy: IfNotPresent
336336
name: wait-for-db
337337
restartPolicy: Never
@@ -387,7 +387,7 @@ migration job should match snapshot objectStoreMigration to true:
387387
name: test-release-enterprise-config-env-vars
388388
- secretRef:
389389
name: test-release-enterprise
390-
image: docker.io/anchore/enterprise:v5.13.0
390+
image: docker.io/anchore/enterprise:v5.13.1
391391
imagePullPolicy: IfNotPresent
392392
name: migrate-analysis-archive
393393
volumeMounts:
@@ -450,7 +450,7 @@ migration job should match snapshot objectStoreMigration to true:
450450
valueFrom:
451451
fieldRef:
452452
fieldPath: metadata.name
453-
image: docker.io/anchore/enterprise:v5.13.0
453+
image: docker.io/anchore/enterprise:v5.13.1
454454
imagePullPolicy: IfNotPresent
455455
name: wait-for-db
456456
restartPolicy: Never
@@ -621,6 +621,6 @@ should render proper initContainers:
621621
valueFrom:
622622
fieldRef:
623623
fieldPath: metadata.name
624-
image: docker.io/anchore/enterprise:v5.13.0
624+
image: docker.io/anchore/enterprise:v5.13.1
625625
imagePullPolicy: IfNotPresent
626626
name: wait-for-db

stable/enterprise/values.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ global:
1919

2020
## @param image Image used for all Anchore Enterprise deployments, excluding Anchore UI
2121
##
22-
image: docker.io/anchore/enterprise:v5.13.0
22+
image: docker.io/anchore/enterprise:v5.13.1
2323

2424
## @param imagePullPolicy Image pull policy used by all deployments
2525
## ref: https://kubernetes.io/docs/concepts/containers/images/#image-pull-policy
@@ -1435,7 +1435,7 @@ simpleQueue:
14351435
ui:
14361436
## @param ui.image Image used for the Anchore UI container
14371437
##
1438-
image: docker.io/anchore/enterprise-ui:v5.13.0
1438+
image: docker.io/anchore/enterprise-ui:v5.13.1
14391439

14401440
## @param ui.imagePullPolicy Image pull policy for Anchore UI image
14411441
##

0 commit comments

Comments
 (0)