[stable/anchore-engine] Fixes error in K8s v1.9 caused by read-only configmap mounts and locks application version in chart. (#4802)

Adds new default value for globalConfig.configDir to specify different config dir than the where configMap is mounted.

Adds specific app version and specific tag instead of 'latest' to ensure no unexpected upgrades.
This commit is contained in:
Zach Hill
2018-04-09 09:21:08 -07:00
committed by k8s-ci-robot
parent b0fdac36d9
commit 48d7786189
4 changed files with 9 additions and 6 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
name: anchore-engine
version: 0.1.4
appVersion: 0.1.6
version: 0.1.5
appVersion: 0.1.9
description: Anchore container analysis and policy evaluation engine service
keywords:
- analysis
@@ -11,7 +11,7 @@ metadata:
data:
config.yaml: |
# Anchore Service Configuration File from ConfigMap
service_dir: {{ default "/config" .Values.globalConfig.configDir }}
service_dir: {{ .Values.globalConfig.configDir }}
tmp_dir: "/tmp"
allow_awsecr_iam_auto: {{ .Values.globalConfig.allowECRUseIAMRole }}
@@ -15,7 +15,7 @@ data:
# General system-wide configuration options, these should not need to
# be altered for basic operation
#
service_dir: {{ default "/config" .Values.globalConfig.configDir }}
service_dir: {{ .Values.globalConfig.configDir }}
tmp_dir: {{ default "/tmp" .Values.workerConfig.analyzerScratchDir }}
allow_awsecr_iam_auto: {{ .Values.globalConfig.allowECRUseIAMRole }}
+5 -2
View File
@@ -11,8 +11,8 @@ service:
k8sImagePolicyWebhook: 8338
image:
# Specific version tags are also available, e.g. v0.1.5, v0.1.6,...
tag: docker.io/anchore/anchore-engine:latest
# Can use 'latest' but not recommended
tag: docker.io/anchore/anchore-engine:v0.1.9
# pullPolicy: IfNotPresent
# Used to create Ingress record (should used with service.type: ClusterIP or NodePort depending on platform)
@@ -42,6 +42,9 @@ postgresql:
# Global configuration shared by both core and worker
globalConfig:
# Set where default configs are placed at startup. This must be a writable location for the pod.
configDir: /anchore_service_config
dbConfig:
timeout: 120
# Use ssl, but the default postgresql config in helm's stable repo does not support ssl on server side, so this should be set for external dbs only for the time being