Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
Implement label whitelist in Helm chart
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddeco committed Jul 8, 2019
1 parent 507c661 commit eb2e499
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions chart/flux/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ The following tables lists the configurable parameters of the Flux chart and the
| `registry.insecureHosts` | `None` | Use HTTP rather than HTTPS for the image registry domains
| `registry.cacheExpiry` | `None` | Duration to keep cached image info (deprecated)
| `registry.excludeImage` | `None` | Do not scan images that match these glob expressions; if empty, 'k8s.gcr.io/*' images are excluded
| `registry.useTimestampLabels` | `None` | Allow usage of (RFC3339) timestamp labels from (canonical) image refs that match these glob expressions; if empty, 'index.docker.io/weaveworks/*' images are allowed
| `registry.ecr.region` | `None` | Restrict ECR scanning to these AWS regions; if empty, only the cluster's region will be scanned
| `registry.ecr.includeId` | `None` | Restrict ECR scanning to these AWS account IDs; if empty, all account IDs that aren't excluded may be scanned
| `registry.ecr.excludeId` | `602401143452` | Do not scan ECR for images in these AWS account IDs; the default is to exclude the EKS system account
Expand Down
3 changes: 3 additions & 0 deletions chart/flux/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,9 @@ spec:
{{- if .Values.registry.excludeImage }}
- --registry-exclude-image={{ .Values.registry.excludeImage }}
{{- end }}
{{- if .Values.registry.useTimestampLabels }}
- --registry-use-labels={{ .Values.registry.useTimestampLabels }}
{{- end }}
{{- if .Values.registry.ecr.region }}
- --registry-ecr-region={{ .Values.registry.ecr.region }}
{{- end }}
Expand Down
2 changes: 2 additions & 0 deletions chart/flux/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,8 @@ registry:
cacheExpiry:
# Do not scan images that match these glob expressions
excludeImage:
# Allow usage of (RFC3339) timestamp labels from (canonical) image refs that match these glob expressions
useTimestampLabels:
# AWS ECR settings
ecr:
region:
Expand Down

0 comments on commit eb2e499

Please sign in to comment.