Skip to content

Commit

Permalink
Merge pull request #239 from ndegory/anchore-admission-controller-and…
Browse files Browse the repository at this point in the history
…-eks

Anchore admission controller and EKS
  • Loading branch information
HN23 authored Jan 13, 2023
2 parents d7018f3 + 7b8cad9 commit d03b417
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 5 deletions.
4 changes: 2 additions & 2 deletions stable/anchore-admission-controller/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: anchore-admission-controller
version: 0.4.3
version: 0.4.4
appVersion: 0.4.0
description: A kubernetes admission controller for validating and mutating webhooks that operates against Anchore Engine to make access decisions and annotations
home: https://github.com/anchore/kubernetes-admission-controller
Expand All @@ -10,4 +10,4 @@ maintainers:
- name: btodhunter
email: [email protected]
icon: https://anchoreprd.wpengine.com/wp-content/uploads/2021/12/favicon.png
kubeVersion: ^1.19.0
kubeVersion: ^1.19.0-0
8 changes: 6 additions & 2 deletions stable/anchore-admission-controller/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,13 @@ It will remove kubernetes objects which are not removed by a helm delete. Pass t
|---|---|---|---|
|logVerbosity | int | 6 | log verbosity of controller, 1 = error, 2 warn, 3 debug....
|---|---|---|---|
|image | str | release tag | Tag including registry and repository for image to use
|image | str | release tag | Tag including registry and repository for image to use
|---|---|---|---|
|imagePullPolicy | str | IfNotPresent | Standard k8s pull policy setting
|---|---|---|---|
|service.name | str | anchoreadmissioncontroller | Name for the svc instance
|imagePullSecrets | array | [] | Image pull secrets
|---|---|---|---|
|service.name | str | anchoreadmissioncontroller | Name for the svc instance
|---|---|---|---|
|service.type | str | ClusterIp | Type to use for k8s service definition
|---|---|---|---|
Expand All @@ -99,6 +101,8 @@ It will remove kubernetes objects which are not removed by a helm delete. Pass t
|---|---|---|---|
|requestAnalysis | boolean | true | Ask anchore to analyze an image that isn't already analyzed
|---|---|---|---|
|initCa.image | str | cfssl/cfssl:latest | Tag including registry and repository for the initCa image
|---|---|---|---|
|initCa.extraEnv | array | [] | Define custom environment variables to pass to init-ca pod |
|---|---|---|---|

Expand Down
6 changes: 6 additions & 0 deletions stable/anchore-admission-controller/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ spec:
- name: anchore-auth
secret:
secretName: {{ if .Values.existingCredentialsSecret }}{{ .Values.existingCredentialsSecret }}{{ else }}{{ template "anchore-admission-controller.fullname" . }}{{ end }}
{{- if .Values.imagePullSecrets }}
imagePullSecrets:
{{- range .Values.imagePullSecrets }}
- name: {{ . }}
{{- end }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image }}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,15 @@ spec:
- name: init-ca-script
configMap:
name: {{.Release.Name}}-init-ca
{{- if .Values.imagePullSecrets }}
imagePullSecrets:
{{- range .Values.imagePullSecrets }}
- name: {{ . }}
{{- end }}
{{- end }}
containers:
- name: create-ca
image: "cfssl/cfssl:latest"
image: "{{ .Values.initCa.image }}"
command:
- bash
- -xe
Expand Down
5 changes: 5 additions & 0 deletions stable/anchore-admission-controller/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ logVerbosity: 3

image: "anchore/kubernetes-admission-controller:v0.4.0"
imagePullPolicy: IfNotPresent
# ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
imagePullSecrets: []
# imagePullSecrets:
# - secretName

service:
name: anchoreadmissioncontroller
Expand Down Expand Up @@ -103,6 +107,7 @@ credentials: {}

# Settings related to init-ca pod
initCa:
image: cfssl/cfssl:latest
# Define custom environment variables to pass to init-ca pod
extraEnv: []
# - name: FOO
Expand Down

0 comments on commit d03b417

Please sign in to comment.