Skip to content

Commit a7cde54

Browse files
authored
Merge pull request #7 from vijtrip2/release-v0.0.5
release artifacts for release v0.0.5
2 parents dea6224 + 9a85da2 commit a7cde54

File tree

7 files changed

+58
-5
lines changed

7 files changed

+58
-5
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/aws-controllers-k8s/ecr-controller
33
go 1.14
44

55
require (
6-
github.com/aws-controllers-k8s/runtime v0.2.0
6+
github.com/aws-controllers-k8s/runtime v0.2.1
77
github.com/aws/aws-sdk-go v1.38.35
88
github.com/go-logr/logr v0.1.0
99
github.com/spf13/pflag v1.0.5

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ github.com/asaskevich/govalidator v0.0.0-20180720115003-f9ffefc3facf/go.mod h1:l
2525
github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY=
2626
github.com/aws-controllers-k8s/runtime v0.2.0 h1:gd0Kq8xGelgkZoNjr8yZbHfpvPA1R+wfMCi1lT4H8x4=
2727
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=
2830
github.com/aws/aws-sdk-go v1.37.4/go.mod h1:hcU610XS61/+aQV88ixoOzUoG7v3b31pl2zKMmprdro=
2931
github.com/aws/aws-sdk-go v1.38.35 h1:7AlAO0FC+8nFjxiGKEmq0QLpiA8/XFr6eIxgRTwkdTg=
3032
github.com/aws/aws-sdk-go v1.38.35/go.mod h1:hcU610XS61/+aQV88ixoOzUoG7v3b31pl2zKMmprdro=

helm/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
apiVersion: v1
22
name: ack-ecr-controller
33
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
66
home: https://github.com/aws-controllers-k8s/ecr-controller
77
icon: https://raw.githubusercontent.com/aws/eks-charts/master/docs/logo/aws.png
88
sources:

helm/templates/deployment.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,16 @@ spec:
6060
valueFrom:
6161
fieldRef:
6262
fieldPath: metadata.namespace
63+
- name: AWS_ACCOUNT_ID
64+
value: {{ .Values.aws.account_id | quote }}
6365
- name: AWS_REGION
6466
value: {{ .Values.aws.region }}
6567
- name: ACK_WATCH_NAMESPACE
6668
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 }}
6773
- name: ACK_RESOURCE_TAGS
6874
value: {{ join "," .Values.resourceTags | quote }}
6975
terminationGracePeriodSeconds: 10

helm/templates/metrics-service.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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 }}

helm/values.yaml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
image:
66
repository: public.ecr.aws/aws-controllers-k8s/controller
7-
tag: ecr-v0.0.4
7+
tag: ecr-v0.0.5
88
pullPolicy: IfNotPresent
99
pullSecrets: []
1010

@@ -16,6 +16,15 @@ deployment:
1616
labels: {}
1717
containerPort: 8080
1818

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+
1928
resources:
2029
requests:
2130
memory: "64Mi"
@@ -27,6 +36,12 @@ resources:
2736
aws:
2837
# If specified, use the AWS region for AWS API calls
2938
region: ""
39+
account_id: ""
40+
41+
# log level for the controller
42+
log:
43+
enable_development_logging: false
44+
level: info
3045

3146
# If specified, the service controller will watch for object creation only in the provided namespace
3247
watchNamespace: ""

test/e2e/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
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

0 commit comments

Comments
 (0)