Skip to content

Commit 77af389

Browse files
Merge branch 'stakater:master' into master
2 parents 08bab5a + 2f17321 commit 77af389

File tree

14 files changed

+52
-40
lines changed

14 files changed

+52
-40
lines changed

bundle/manifests/ingressmonitorcontroller.clusterserviceversion.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ metadata:
1818
capabilities: Basic Install
1919
operators.operatorframework.io/builder: operator-sdk-v1.18.0+git
2020
operators.operatorframework.io/project_layout: go.kubebuilder.io/v3
21-
name: ingressmonitorcontroller.v2.1.21
21+
name: ingressmonitorcontroller.v2.1.23
2222
namespace: placeholder
2323
spec:
2424
apiservicedefinitions: {}
@@ -151,7 +151,7 @@ spec:
151151
- --leader-elect
152152
command:
153153
- /manager
154-
image: stakater/ingressmonitorcontroller:v2.1.21
154+
image: stakater/ingressmonitorcontroller:v2.1.23
155155
livenessProbe:
156156
httpGet:
157157
path: /healthz
@@ -251,4 +251,4 @@ spec:
251251
provider:
252252
name: stakater
253253
url: https://stakater.com
254-
version: 2.1.21
254+
version: 2.1.23

charts/ingressmonitorcontroller/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ name: ingressmonitorcontroller
33
description: IngressMonitorController Operator chart that runs on kubernetes
44

55
# Helm chart Version
6-
version: 2.1.21
6+
version: 2.1.23
77

88
# Application version to be deployed
9-
appVersion: 2.1.21
9+
appVersion: 2.1.23
1010

1111
keywords:
1212
- IngressMonitorController

charts/ingressmonitorcontroller/templates/_helpers.tpl

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,14 @@ Expand the name of the chart.
88
{{/*
99
Create a default fully qualified app name.
1010
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
11-
If release name contains chart name it will be used as a full name.
1211
*/}}
1312
{{- define "ingress-monitor-controller.fullname" -}}
1413
{{- if .Values.fullnameOverride }}
1514
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
15+
{{- else if .Values.nameOverride }}
16+
{{- .Values.nameOverride | trunc 63 | trimSuffix "-" }}
1617
{{- else }}
17-
{{- $name := default .Chart.Name .Values.nameOverride }}
18-
{{- if contains $name .Release.Name }}
19-
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
20-
{{- else }}
21-
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
22-
{{- end }}
18+
{{- .Chart.Name | trunc 63 | trimSuffix "-" }}
2319
{{- end }}
2420
{{- end }}
2521

@@ -39,7 +35,7 @@ helm.sh/chart: {{ include "ingress-monitor-controller.chart" . }}
3935
{{- if .Chart.AppVersion }}
4036
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
4137
{{- end }}
42-
app.kubernetes.io/managed-by: {{ .Release.Service }}
38+
app.kubernetes.io/managed-by: {{ .Values.serviceManagedBy }}
4339
{{- if .Values.global.labels }}
4440
{{ toYaml .Values.global.labels }}
4541
{{- end }}
@@ -50,7 +46,7 @@ Selector labels
5046
*/}}
5147
{{- define "ingress-monitor-controller.selectorLabels" -}}
5248
app.kubernetes.io/name: {{ include "ingress-monitor-controller.name" . }}
53-
app.kubernetes.io/instance: {{ .Release.Name }}
49+
app.kubernetes.io/instance: {{ .Values.name | default .Release.Name }}
5450
{{- end }}
5551

5652
{{/*
@@ -65,10 +61,10 @@ Create the name of the service account to use
6561
{{- end }}
6662

6763
{{/*
68-
Verify that CRDs are installed
64+
Verify that CRDs are installed
6965
*/}}
7066
{{- define "verify_crds_exist" -}}
7167
{{- if .Capabilities.APIVersions.Has "endpointmonitor.stakater.com/v1alpha1" -}}
7268
true
7369
{{- end -}}
74-
{{- end -}}
70+
{{- end -}}

charts/ingressmonitorcontroller/templates/clusterrolebinding.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ roleRef:
1313
subjects:
1414
- kind: ServiceAccount
1515
name: {{ include "ingress-monitor-controller.serviceAccountName" . }}
16-
namespace: {{ .Release.Namespace }}
16+
namespace: {{ .Values.namespace | default .Release.Namespace }}
1717
{{- end }}
1818

1919
---
@@ -29,7 +29,7 @@ roleRef:
2929
subjects:
3030
- kind: ServiceAccount
3131
name: {{ include "ingress-monitor-controller.serviceAccountName" . }}
32-
namespace: {{ .Release.Namespace }}
32+
namespace: {{ .Values.namespace | default .Release.Namespace }}
3333
{{- end }}
3434

3535
---
@@ -45,7 +45,7 @@ roleRef:
4545
subjects:
4646
- kind: ServiceAccount
4747
name: {{ include "ingress-monitor-controller.serviceAccountName" . }}
48-
namespace: {{ .Release.Namespace }}
48+
namespace: {{ .Values.namespace | default .Release.Namespace }}
4949
{{- end }}
50-
50+
5151
{{- end }}

charts/ingressmonitorcontroller/templates/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: apps/v1
22
kind: Deployment
33
metadata:
44
name: {{ include "ingress-monitor-controller.fullname" . }}
5-
namespace: {{ .Release.Namespace }}
5+
namespace: {{ .Values.namespace | default .Release.Namespace }}
66
labels:
77
{{- include "ingress-monitor-controller.labels" . | nindent 4 }}
88
control-plane: controller-manager
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
apiVersion: v1
2+
kind: Namespace
3+
metadata:
4+
labels:
5+
stakater.com/tenant: alpha
6+
name: {{ .Values.namespace | default .Release.Namespace }}

charts/ingressmonitorcontroller/templates/role.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ apiVersion: rbac.authorization.k8s.io/v1
7878
kind: Role
7979
metadata:
8080
name: {{ include "ingress-monitor-controller.fullname" . }}-leader-election-role
81-
namespace: {{ .Release.Namespace }}
81+
namespace: {{ .Values.namespace | default .Release.Namespace }}
8282
rules:
8383
- apiGroups:
8484
- ""
@@ -109,7 +109,7 @@ apiVersion: rbac.authorization.k8s.io/v1
109109
kind: Role
110110
metadata:
111111
name: {{ include "ingress-monitor-controller.fullname" . }}-secret-viewer-role
112-
namespace: {{ .Release.Namespace }}
112+
namespace: {{ .Values.namespace | default .Release.Namespace }}
113113
rules:
114114
- apiGroups:
115115
- ""

charts/ingressmonitorcontroller/templates/rolebinding.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ apiVersion: rbac.authorization.k8s.io/v1
2323
kind: RoleBinding
2424
metadata:
2525
name: {{ include "ingress-monitor-controller.fullname" . }}-leader-election-rolebinding
26-
namespace: {{ .Release.Namespace }}
26+
namespace: {{ .Values.namespace | default .Release.Namespace }}
2727
roleRef:
2828
apiGroup: rbac.authorization.k8s.io
2929
kind: Role
3030
name: {{ include "ingress-monitor-controller.fullname" . }}-leader-election-role
3131
subjects:
3232
- kind: ServiceAccount
3333
name: {{ include "ingress-monitor-controller.serviceAccountName" . }}
34-
namespace: {{ .Release.Namespace }}
34+
namespace: {{ .Values.namespace | default .Release.Namespace }}
3535
{{- end }}
3636

3737
{{- if .Values.rbac.secretViewerRole }}
@@ -40,15 +40,15 @@ apiVersion: rbac.authorization.k8s.io/v1
4040
kind: RoleBinding
4141
metadata:
4242
name: {{ include "ingress-monitor-controller.fullname" . }}-secret-viewer-rolebinding
43-
namespace: {{ .Release.Namespace }}
43+
namespace: {{ .Values.namespace | default .Release.Namespace }}
4444
roleRef:
4545
apiGroup: rbac.authorization.k8s.io
4646
kind: Role
4747
name: {{ include "ingress-monitor-controller.fullname" . }}-secret-viewer-role
4848
subjects:
4949
- kind: ServiceAccount
5050
name: {{ include "ingress-monitor-controller.serviceAccountName" . }}
51-
namespace: {{ .Release.Namespace }}
51+
namespace: {{ .Values.namespace | default .Release.Namespace }}
5252
{{- end }}
5353

5454
{{- end }}

charts/ingressmonitorcontroller/templates/service.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: v1
33
kind: Service
44
metadata:
55
name: {{ include "ingress-monitor-controller.fullname" . }}-metrics-service
6-
namespace: {{ .Release.Namespace }}
6+
namespace: {{ .Values.namespace | default .Release.Namespace }}
77
labels:
88
{{- include "ingress-monitor-controller.labels" . | nindent 4 }}
99
spec:
@@ -12,4 +12,4 @@ spec:
1212
port: 8443
1313
targetPort: https
1414
selector:
15-
{{- include "ingress-monitor-controller.selectorLabels" . | nindent 4 }}
15+
{{- include "ingress-monitor-controller.selectorLabels" . | nindent 4 }}

charts/ingressmonitorcontroller/templates/serviceaccount.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ apiVersion: v1
44
kind: ServiceAccount
55
metadata:
66
name: {{ include "ingress-monitor-controller.serviceAccountName" . }}
7-
namespace: {{ .Release.Namespace }}
7+
namespace: {{ .Values.namespace | default .Release.Namespace }}
88
labels:
99
{{- include "ingress-monitor-controller.labels" . | nindent 4 }}
1010
{{- if .Values.serviceAccount.labels }}

0 commit comments

Comments
 (0)