Skip to content

Commit

Permalink
Update anchore-engine version (helm#10911)
Browse files Browse the repository at this point in the history
* Updated Anchore Engine image to v0.3.2

* Updated Anchore Enterprise image to v0.3.3

* Changed image values from image.name, image.tag, & image.pullPolicy
to image & imagePullPolicy

* Removed unnecessary quotes from templates

* Updated chart version to v0.11.0

* Update README

Signed-off-by: Brady Todhunter <[email protected]>
  • Loading branch information
Btodhunter authored and k8s-ci-robot committed Jan 30, 2019
1 parent 783788e commit 41c48b6
Show file tree
Hide file tree
Showing 15 changed files with 171 additions and 161 deletions.
4 changes: 2 additions & 2 deletions stable/anchore-engine/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: anchore-engine
version: 0.10.0
appVersion: 0.3.1
version: 0.11.0
appVersion: 0.3.2
description: Anchore container analysis and policy evaluation engine service
keywords:
- analysis
Expand Down
30 changes: 23 additions & 7 deletions stable/anchore-engine/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,31 @@ The recommended way to install the Anchore Engine Chart is with a customized val
defaultAdminPassword: <PASSWORD>
defaultAdminEmail: <EMAIL>
```
## Upgrading to Chart version 0.11.0
The image map has been removed in all configuration sections in favor of individual keys. This should make configuration for tools like skaffold simpler. If using a custom values file, update your `image.repository`, `image.tag`, & `image.pullPolicy` values with `image` & `imagePullPolicy`.

##### v0.11.0 image config

```
anchoreGlobal:
image: docker.io/anchore/anchore-engine:v0.3.2
imagePullPolicy: IfNotPresent
anchoreEnterpriseGlobal:
image: docker.io/anchore/enterprise:v0.3.3
imagePullPolicy: IfNotPresent
anchoreEnterpriseUI:
image: docker.io/anchore/enterprise-ui:v0.3.1
imagePullPolicy: IfNotPresent
```


## Upgrading to Chart version 0.10.0

Ingress resources have been changed to work natively with NGINX ingress controllers. If you're using a different ingress controller, update your values.yaml file accordingly. See the __Using Ingress__ configuration section for examples of NGINX & GCE ingress controller configurations.
Ingress resources have been changed to work natively with NGINX ingress controllers. If you're using a different ingress controller update your values.yaml file accordingly. See the __Using Ingress__ configuration section for examples of NGINX & GCE ingress controller configurations.

Service configs have been moved from the anchoreGlobal section, to individual component sections in the values.yaml file.
If you're upgrading from a previous install and are using custom ports or serviceTypes, be sure to update your values.yaml file accordingly.
Service configs have been moved from the anchoreGlobal section, to individual component sections in the values.yaml file. If you're upgrading from a previous install and are using custom ports or serviceTypes, be sure to update your values.yaml file accordingly.

##### v0.9.0 service config

Expand All @@ -74,8 +92,7 @@ Version 0.9.0 of the anchore-engine helm chart includes major changes to the arc

`helm upgrade <release_name> stable/anchore-engine`

When upgrading the Chart from version 0.2.6 to version 0.9.0, it will take approximately 5 minutes for anchore-engine to upgrade the database.
To ensure that the upgrade has completed, run the `anchore-cli system status` command and verify the engine & db versions match the output below.
When upgrading the Chart from version 0.2.6 to version 0.9.0, it will take approximately 5 minutes for anchore-engine to upgrade the database. To ensure that the upgrade has completed, run the `anchore-cli system status` command and verify the engine & db versions match the output below.

```
Engine DB Version: 0.0.8
Expand All @@ -84,8 +101,7 @@ Engine Code Version: 0.3.0

## Configuration

All configurations should be appended to your custom `anchore_values.yaml` file and utilized when installing the chart.
While the configuration options of Anchore Engine are extensive, the options provided by the chart are:
All configurations should be appended to your custom `anchore_values.yaml` file and utilized when installing the chart. While the configuration options of Anchore Engine are extensive, the options provided by the chart are:

### Exposing the service outside the cluster:

Expand Down
4 changes: 2 additions & 2 deletions stable/anchore-engine/templates/analyzer_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ spec:
spec:
containers:
- name: {{ .Chart.Name }}-{{ $component }}
image: {{ .Values.anchoreGlobal.image.repository }}:{{ .Values.anchoreGlobal.image.tag }}
imagePullPolicy: {{ .Values.anchoreGlobal.image.pullPolicy }}
image: {{ .Values.anchoreGlobal.image }}
imagePullPolicy: {{ .Values.anchoreGlobal.imagePullPolicy }}
command: ["/usr/local/bin/anchore-manager"]
args: ["service", "start", "analyzer"]
envFrom:
Expand Down
28 changes: 14 additions & 14 deletions stable/anchore-engine/templates/api_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: "{{ template "anchore-engine.api.fullname" . }}"
name: {{ template "anchore-engine.api.fullname" . }}
labels:
app: "{{ template "anchore-engine.fullname" . }}"
app: {{ template "anchore-engine.fullname" . }}
component: {{ $component }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
selector:
matchLabels:
app: "{{ template "anchore-engine.fullname" . }}"
app: {{ template "anchore-engine.fullname" . }}
component: {{ $component }}
replicas: {{ .Values.anchoreApi.replicaCount }}
template:
metadata:
labels:
app: "{{ template "anchore-engine.fullname" . }}"
app: {{ template "anchore-engine.fullname" . }}
component: {{ $component }}
{{- if .Values.anchoreApi.annotations }}
annotations:
Expand All @@ -28,7 +28,7 @@ spec:
volumes:
- name: config-volume
configMap:
name: {{ template "anchore-engine.fullname" .}}
name: {{ template "anchore-engine.fullname" . }}
{{- if and .Values.anchoreEnterpriseGlobal.enabled .Values.anchoreEnterpriseRbac.enabled }}
- name: anchore-license
secret:
Expand All @@ -43,9 +43,9 @@ spec:
secretName: {{ .Values.anchoreGlobal.internalServicesSsl.certSecret }}
{{- end }}
containers:
- name: {{ .Chart.Name }}-{{ $component }}
image: {{ .Values.anchoreGlobal.image.repository }}:{{ .Values.anchoreGlobal.image.tag }}
imagePullPolicy: {{ .Values.anchoreGlobal.image.pullPolicy }}
- name: "{{ .Chart.Name }}-{{ $component }}"
image: {{ .Values.anchoreGlobal.image }}
imagePullPolicy: {{ .Values.anchoreGlobal.imagePullPolicy }}
command: ["/usr/local/bin/anchore-manager"]
args: ["service", "start", "apiext"]
envFrom:
Expand Down Expand Up @@ -92,8 +92,8 @@ spec:

{{- if and .Values.anchoreEnterpriseGlobal.enabled .Values.anchoreEnterpriseRbac.enabled }}
- name: {{ .Chart.Name }}-rbac-manager
image: "{{ .Values.anchoreEnterpriseGlobal.image.repository }}:{{ .Values.anchoreEnterpriseGlobal.image.tag }}"
imagePullPolicy: {{ .Values.anchoreEnterpriseGlobal.image.pullPolicy }}
image: {{ .Values.anchoreEnterpriseGlobal.image }}
imagePullPolicy: {{ .Values.anchoreEnterpriseGlobal.imagePullPolicy }}
command: ["/usr/local/bin/anchore-enterprise-manager"]
args: ["service", "start", "rbac_manager"]
envFrom:
Expand Down Expand Up @@ -142,8 +142,8 @@ spec:
{{ toYaml .Values.anchoreEnterpriseRbac.managerResources | indent 10 }}

- name: {{ .Chart.Name }}-rbac-authorizer
image: "{{ .Values.anchoreEnterpriseGlobal.image.repository }}:{{ .Values.anchoreEnterpriseGlobal.image.tag }}"
imagePullPolicy: {{ .Values.anchoreEnterpriseGlobal.image.pullPolicy }}
image: {{ .Values.anchoreEnterpriseGlobal.image }}
imagePullPolicy: {{ .Values.anchoreEnterpriseGlobal.imagePullPolicy }}
command: ["/usr/local/bin/anchore-enterprise-manager"]
args: ["service", "start", "rbac_authorizer"]
envFrom:
Expand Down
20 changes: 10 additions & 10 deletions stable/anchore-engine/templates/catalog_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: "{{ template "anchore-engine.catalog.fullname" . }}"
name: {{ template "anchore-engine.catalog.fullname" . }}
labels:
app: "{{ template "anchore-engine.fullname" . }}"
app: {{ template "anchore-engine.fullname" . }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
component: {{ $component }}
spec:
selector:
matchLabels:
app: "{{ template "anchore-engine.fullname" . }}"
app: {{ template "anchore-engine.fullname" . }}
component: {{ $component }}
replicas: {{ .Values.anchoreCatalog.replicaCount }}
template:
metadata:
labels:
app: "{{ template "anchore-engine.fullname" . }}"
app: {{ template "anchore-engine.fullname" . }}
component: {{ $component }}
{{- if .Values.anchoreCatalog.annotations }}
annotations:
Expand All @@ -27,8 +27,8 @@ spec:
spec:
containers:
- name: {{ .Chart.Name }}-{{ $component }}
image: {{ .Values.anchoreGlobal.image.repository }}:{{ .Values.anchoreGlobal.image.tag }}
imagePullPolicy: {{ .Values.anchoreGlobal.image.pullPolicy }}
image: {{ .Values.anchoreGlobal.image }}
imagePullPolicy: {{ .Values.anchoreGlobal.imagePullPolicy }}
command: ["/usr/local/bin/anchore-manager"]
args: ["service", "start", "catalog"]
envFrom:
Expand Down Expand Up @@ -75,7 +75,7 @@ spec:
volumes:
- name: config-volume
configMap:
name: {{ template "anchore-engine.fullname" .}}
name: {{ template "anchore-engine.fullname" . }}
{{- if .Values.anchoreGlobal.internalServicesSslEnabled }}
- name: certs
secret:
Expand All @@ -101,7 +101,7 @@ metadata:
name: {{ template "anchore-engine.catalog.fullname" . }}
labels:
app: {{ template "anchore-engine.fullname" . }}
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
component: {{ $component }}
Expand Down
50 changes: 25 additions & 25 deletions stable/anchore-engine/templates/engine_configmap.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
kind: ConfigMap
apiVersion: v1
metadata:
name: "{{ template "anchore-engine.fullname" . }}"
name: {{ template "anchore-engine.fullname" . }}
labels:
app: "{{ template "anchore-engine.fullname" . }}"
app: {{ template "anchore-engine.fullname" . }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
data:
ANCHORE_DB_NAME: {{ index .Values "postgresql" "postgresDatabase" | quote }}
ANCHORE_DB_USER: {{ index .Values "postgresql" "postgresUser" | quote }}
Expand All @@ -25,7 +25,7 @@ data:
cleanup_images: {{ .Values.anchoreGlobal.cleanupImages }}
allow_awsecr_iam_auto: {{ .Values.anchoreGlobal.allowECRUseIAMRole }}
host_id: ${ANCHORE_POD_NAME}
host_id: "${ANCHORE_POD_NAME}"
internal_ssl_verify: {{ .Values.anchoreGlobal.internalServicesSsl.verifyCerts }}
auto_restart_services: false
Expand Down Expand Up @@ -68,12 +68,12 @@ data:
snyk: false
{{- end }}
{{- if and .Values.anchoreEnterpriseGlobal.enabled .Values.anchoreEnterpriseFeeds.enabled }}
url: 'http://{{ template "anchore-engine.enterprise-feeds.fullname" . }}:{{ .Values.anchoreEnterpriseFeeds.service.port }}/v1/feeds'
url: "http://{{ template "anchore-engine.enterprise-feeds.fullname" . }}:{{ .Values.anchoreEnterpriseFeeds.service.port }}/v1/feeds"
client_url:
token_url:
{{- else }}
client_url: 'https://ancho.re/v1/account/users'
token_url: 'https://ancho.re/oauth/token'
client_url: "https://ancho.re/v1/account/users"
token_url: "https://ancho.re/oauth/token"
anonymous_user_username: [email protected]
anonymous_user_password: pbiU2RYZ2XrmYQ
{{- end }}
Expand All @@ -85,7 +85,7 @@ data:

credentials:
database:
db_connect: 'postgresql+pg8000://${ANCHORE_DB_USER}:${ANCHORE_DB_PASSWORD}@${ANCHORE_DB_HOST}/${ANCHORE_DB_NAME}'
db_connect: "postgresql+pg8000://${ANCHORE_DB_USER}:${ANCHORE_DB_PASSWORD}@${ANCHORE_DB_HOST}/${ANCHORE_DB_NAME}"
db_connect_args:
timeout: {{ .Values.anchoreGlobal.dbConfig.timeout }}
ssl: {{ .Values.anchoreGlobal.dbConfig.ssl }}
Expand All @@ -97,42 +97,42 @@ data:
enabled: true
require_auth: true
endpoint_hostname: {{ template "anchore-engine.api.fullname" . }}
listen: '0.0.0.0'
listen: 0.0.0.0
port: {{ .Values.anchoreApi.service.port }}
{{- if and .Values.anchoreEnterpriseGlobal.enabled .Values.anchoreEnterpriseRbac.enabled }}
authorization_handler: external
authorization_handler_config:
endpoint: "http://localhost:{{ .Values.anchoreEnterpriseRbac.service.authPort }}"
{{- end }}
ssl_enable: {{ .Values.anchoreGlobal.internalServicesSslEnabled }}
ssl_cert: {{ .Values.anchoreGlobal.internalServicesSsl.certDir -}}/{{- .Values.anchoreGlobal.internalServicesSsl.certSecretCertName }}
ssl_key: {{ .Values.anchoreGlobal.internalServicesSsl.certDir -}}/{{- .Values.anchoreGlobal.internalServicesSsl.certSecretKeyName }}
ssl_cert: "{{ .Values.anchoreGlobal.internalServicesSsl.certDir -}}/{{- .Values.anchoreGlobal.internalServicesSsl.certSecretCertName }}"
ssl_key: "{{ .Values.anchoreGlobal.internalServicesSsl.certDir -}}/{{- .Values.anchoreGlobal.internalServicesSsl.certSecretKeyName }}"
analyzer:
enabled: true
require_auth: true
endpoint_hostname: {{ template "anchore-engine.analyzer.fullname" . }}
listen: '0.0.0.0'
listen: 0.0.0.0
port: {{ .Values.anchoreAnalyzer.containerPort }}
cycle_timer_seconds: 1
cycle_timers:
{{ toYaml .Values.anchoreAnalyzer.cycleTimers | indent 10 }}
max_threads: {{ .Values.anchoreAnalyzer.concurrentTasksPerWorker }}
analyzer_driver: 'nodocker'
ssl_cert: {{ .Values.anchoreGlobal.internalServicesSsl.certDir -}}/{{- .Values.anchoreGlobal.internalServicesSsl.certSecretCertName }}
ssl_key: {{ .Values.anchoreGlobal.internalServicesSsl.certDir -}}/{{ .Values.anchoreGlobal.internalServicesSsl.certSecretKeyName }}
ssl_cert: "{{ .Values.anchoreGlobal.internalServicesSsl.certDir -}}/{{- .Values.anchoreGlobal.internalServicesSsl.certSecretCertName }}"
ssl_key: "{{ .Values.anchoreGlobal.internalServicesSsl.certDir -}}/{{ .Values.anchoreGlobal.internalServicesSsl.certSecretKeyName }}"
ssl_enable: {{ .Values.anchoreGlobal.internalServicesSslEnabled }}
catalog:
enabled: true
require_auth: true
endpoint_hostname: {{ template "anchore-engine.catalog.fullname" . }}
listen: '0.0.0.0'
listen: 0.0.0.0
port: {{ .Values.anchoreCatalog.service.port }}
cycle_timer_seconds: '1'
cycle_timer_seconds: 1
cycle_timers:
{{ toYaml .Values.anchoreCatalog.cycleTimers | indent 10 }}
ssl_enable: {{ .Values.anchoreGlobal.internalServicesSslEnabled }}
ssl_cert: {{ .Values.anchoreGlobal.internalServicesSsl.certDir -}}/{{- .Values.anchoreGlobal.internalServicesSsl.certSecretCertName }}
ssl_key: {{ .Values.anchoreGlobal.internalServicesSsl.certDir -}}/{{- .Values.anchoreGlobal.internalServicesSsl.certSecretKeyName }}
ssl_cert: "{{ .Values.anchoreGlobal.internalServicesSsl.certDir -}}/{{- .Values.anchoreGlobal.internalServicesSsl.certSecretCertName }}"
ssl_key: "{{ .Values.anchoreGlobal.internalServicesSsl.certDir -}}/{{- .Values.anchoreGlobal.internalServicesSsl.certSecretKeyName }}"
event_log:
{{ toYaml .Values.anchoreCatalog.events | indent 10 }}
archive:
Expand All @@ -141,20 +141,20 @@ data:
enabled: true
require_auth: true
endpoint_hostname: {{ template "anchore-engine.simplequeue.fullname" . }}
listen: '0.0.0.0'
listen: 0.0.0.0
port: {{ .Values.anchoreSimpleQueue.service.port }}
ssl_enable: {{ .Values.anchoreGlobal.internalServicesSslEnabled }}
ssl_cert: {{ .Values.anchoreGlobal.internalServicesSsl.certDir -}}/{{- .Values.anchoreGlobal.internalServicesSsl.certSecretCertName }}
ssl_key: {{ .Values.anchoreGlobal.internalServicesSsl.certDir -}}/{{- .Values.anchoreGlobal.internalServicesSsl.certSecretKeyName }}
ssl_cert: "{{ .Values.anchoreGlobal.internalServicesSsl.certDir -}}/{{- .Values.anchoreGlobal.internalServicesSsl.certSecretCertName }}"
ssl_key: "{{ .Values.anchoreGlobal.internalServicesSsl.certDir -}}/{{- .Values.anchoreGlobal.internalServicesSsl.certSecretKeyName }}"
policy_engine:
enabled: true
require_auth: true
endpoint_hostname: {{ template "anchore-engine.policy-engine.fullname" . }}
listen: '0.0.0.0'
listen: 0.0.0.0
port: {{ .Values.anchorePolicyEngine.service.port }}
cycle_timer_seconds: 1
cycle_timers:
{{ toYaml .Values.anchorePolicyEngine.cycleTimers | indent 10 }}
ssl_cert: {{ .Values.anchoreGlobal.internalServicesSsl.certDir -}}/{{- .Values.anchoreGlobal.internalServicesSsl.certSecretCertName }}
ssl_key: {{ .Values.anchoreGlobal.internalServicesSsl.certDir -}}/{{- .Values.anchoreGlobal.internalServicesSsl.certSecretKeyName }}
ssl_cert: "{{ .Values.anchoreGlobal.internalServicesSsl.certDir -}}/{{- .Values.anchoreGlobal.internalServicesSsl.certSecretCertName }}"
ssl_key: "{{ .Values.anchoreGlobal.internalServicesSsl.certDir -}}/{{- .Values.anchoreGlobal.internalServicesSsl.certSecretKeyName }}"
ssl_enable: {{ .Values.anchoreGlobal.internalServicesSslEnabled }}
22 changes: 11 additions & 11 deletions stable/anchore-engine/templates/enterprise_feeds_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,23 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: "{{ template "anchore-engine.enterprise-feeds.fullname" . }}"
name: {{ template "anchore-engine.enterprise-feeds.fullname" . }}
labels:
app: "{{ template "anchore-engine.fullname" . }}"
app: {{ template "anchore-engine.fullname" . }}
component: {{ $component }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
selector:
matchLabels:
app: "{{ template "anchore-engine.fullname" . }}"
app: {{ template "anchore-engine.fullname" . }}
component: {{ $component }}
replicas: 1
template:
metadata:
labels:
app: "{{ template "anchore-engine.fullname" . }}"
app: {{ template "anchore-engine.fullname" . }}
component: {{ $component }}
{{- if .Values.anchoreEnterpriseFeeds.annotations }}
annotations:
Expand All @@ -29,7 +29,7 @@ spec:
volumes:
- name: config-volume
configMap:
name: {{ template "anchore-engine.enterprise-feeds.fullname" .}}
name: {{ template "anchore-engine.enterprise-feeds.fullname" . }}
- name: scratch-volume
{{ toYaml .Values.anchoreEnterpriseFeeds.scratchVolume.details | indent 10 }}
- name: anchore-license
Expand All @@ -38,9 +38,9 @@ spec:
imagePullSecrets:
- name: {{ .Values.anchoreEnterpriseGlobal.imagePullSecretName }}
containers:
- name: {{ .Chart.Name }}-{{ $component }}
image: "{{ .Values.anchoreEnterpriseGlobal.image.repository }}:{{ .Values.anchoreEnterpriseGlobal.image.tag }}"
imagePullPolicy: {{ .Values.anchoreEnterpriseGlobal.image.pullPolicy }}
- name: "{{ .Chart.Name }}-{{ $component }}"
image: {{ .Values.anchoreEnterpriseGlobal.image }}
imagePullPolicy: {{ .Values.anchoreEnterpriseGlobal.imagePullPolicy }}
command: ["/usr/local/bin/anchore-enterprise-manager"]
args: ["service", "start", "feeds"]
ports:
Expand Down Expand Up @@ -118,7 +118,7 @@ metadata:
name: {{ template "anchore-engine.enterprise-feeds.fullname" . }}
labels:
app: {{ template "anchore-engine.fullname" . }}
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
component: {{ $component }}
Expand Down
Loading

0 comments on commit 41c48b6

Please sign in to comment.