File tree Expand file tree Collapse file tree 7 files changed +58
-5
lines changed Expand file tree Collapse file tree 7 files changed +58
-5
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ module github.com/aws-controllers-k8s/ecr-controller
3
3
go 1.14
4
4
5
5
require (
6
- github.com/aws-controllers-k8s/runtime v0.2.0
6
+ github.com/aws-controllers-k8s/runtime v0.2.1
7
7
github.com/aws/aws-sdk-go v1.38.35
8
8
github.com/go-logr/logr v0.1.0
9
9
github.com/spf13/pflag v1.0.5
Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ github.com/asaskevich/govalidator v0.0.0-20180720115003-f9ffefc3facf/go.mod h1:l
25
25
github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a /go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY =
26
26
github.com/aws-controllers-k8s/runtime v0.2.0 h1:gd0Kq8xGelgkZoNjr8yZbHfpvPA1R+wfMCi1lT4H8x4 =
27
27
github.com/aws-controllers-k8s/runtime v0.2.0 /go.mod h1:xA2F18PJerBHaqrS4de1lpP7skeSMeStkmh+3x5sWvw =
28
+ github.com/aws-controllers-k8s/runtime v0.2.1 h1:vItjQ5/pZjr8Z7cR35sQKcSjQy19mF3qOfbUitWMt1A =
29
+ github.com/aws-controllers-k8s/runtime v0.2.1 /go.mod h1:xA2F18PJerBHaqrS4de1lpP7skeSMeStkmh+3x5sWvw =
28
30
github.com/aws/aws-sdk-go v1.37.4 /go.mod h1:hcU610XS61/+aQV88ixoOzUoG7v3b31pl2zKMmprdro =
29
31
github.com/aws/aws-sdk-go v1.38.35 h1:7AlAO0FC+8nFjxiGKEmq0QLpiA8/XFr6eIxgRTwkdTg =
30
32
github.com/aws/aws-sdk-go v1.38.35 /go.mod h1:hcU610XS61/+aQV88ixoOzUoG7v3b31pl2zKMmprdro =
Original file line number Diff line number Diff line change 1
1
apiVersion : v1
2
2
name : ack-ecr-controller
3
3
description : A Helm chart for the ACK service controller for ecr
4
- version : v0.0.4
5
- appVersion : v0.0.4
4
+ version : v0.0.5
5
+ appVersion : v0.0.5
6
6
home : https://github.com/aws-controllers-k8s/ecr-controller
7
7
icon : https://raw.githubusercontent.com/aws/eks-charts/master/docs/logo/aws.png
8
8
sources :
Original file line number Diff line number Diff line change @@ -60,10 +60,16 @@ spec:
60
60
valueFrom :
61
61
fieldRef :
62
62
fieldPath : metadata.namespace
63
+ - name : AWS_ACCOUNT_ID
64
+ value : {{ .Values.aws.account_id | quote }}
63
65
- name : AWS_REGION
64
66
value : {{ .Values.aws.region }}
65
67
- name : ACK_WATCH_NAMESPACE
66
68
value : {{ .Values.watchNamespace }}
69
+ - name : ACK_ENABLE_DEVELOPMENT_LOGGING
70
+ value : {{ .Values.log.enable_development_logging | quote }}
71
+ - name : ACK_LOG_LEVEL
72
+ value : {{ .Values.log.level | quote }}
67
73
- name : ACK_RESOURCE_TAGS
68
74
value : {{ join "," .Values.resourceTags | quote }}
69
75
terminationGracePeriodSeconds : 10
Original file line number Diff line number Diff line change
1
+ {{- if .Values.metrics.service.create }}
2
+ apiVersion : v1
3
+ kind : Service
4
+ metadata :
5
+ name : {{ include "app.fullname" . }}-metrics
6
+ namespace : {{ .Release.Namespace }}
7
+ labels :
8
+ app.kubernetes.io/name : {{ include "app.name" . }}
9
+ app.kubernetes.io/instance : {{ .Release.Name }}
10
+ app.kubernetes.io/managed-by : Helm
11
+ app.kubernetes.io/version : {{ .Chart.AppVersion | quote }}
12
+ k8s-app : {{ include "app.name" . }}
13
+ helm.sh/chart : {{ include "chart.name-version" . }}
14
+ control-plane : controller
15
+ spec :
16
+ selector :
17
+ app.kubernetes.io/name : {{ include "app.name" . }}
18
+ app.kubernetes.io/instance : {{ .Release.Name }}
19
+ app.kubernetes.io/managed-by : Helm
20
+ k8s-app : {{ include "app.name" . }}
21
+ {{- range $key, $value := .Values.deployment.labels }}
22
+ {{ $key }}: {{ $value | quote }}
23
+ {{- end }}
24
+ type : {{ .Values.metrics.service.type }}
25
+ ports :
26
+ - name : metricsport
27
+ port : 8080
28
+ targetPort : 8080
29
+ protocol : TCP
30
+ {{- end }}
Original file line number Diff line number Diff line change 4
4
5
5
image :
6
6
repository : public.ecr.aws/aws-controllers-k8s/controller
7
- tag : ecr-v0.0.4
7
+ tag : ecr-v0.0.5
8
8
pullPolicy : IfNotPresent
9
9
pullSecrets : []
10
10
@@ -16,6 +16,15 @@ deployment:
16
16
labels : {}
17
17
containerPort : 8080
18
18
19
+ metrics :
20
+ service :
21
+ # Set to true to automatically create a Kubernetes Service resource for the
22
+ # Prometheus metrics server endpoint in controller
23
+ create : false
24
+ # Which Type to use for the Kubernetes Service?
25
+ # See: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types
26
+ type : " ClusterIP"
27
+
19
28
resources :
20
29
requests :
21
30
memory : " 64Mi"
@@ -27,6 +36,12 @@ resources:
27
36
aws :
28
37
# If specified, use the AWS region for AWS API calls
29
38
region : " "
39
+ account_id : " "
40
+
41
+ # log level for the controller
42
+ log :
43
+ enable_development_logging : false
44
+ level : info
30
45
31
46
# If specified, the service controller will watch for object creation only in the provided namespace
32
47
watchNamespace : " "
Original file line number Diff line number Diff line change 1
- acktest @ git+https://github.com/aws-controllers-k8s/test-infra.git@5ed60a505afa953096e53c9d3d6779830250915b
1
+ acktest @ git+https://github.com/aws-controllers-k8s/test-infra.git@3d5e98f5960ac2ea8360c212141c4ec89cfcb668
You can’t perform that action at this time.
0 commit comments