-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into dependabot/github_actions/helm/kind-action-1…
….11.0
- Loading branch information
Showing
16 changed files
with
246 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
dependencies: | ||
- name: lagoon-build-deploy | ||
repository: https://uselagoon.github.io/lagoon-charts/ | ||
version: 0.30.3 | ||
version: 0.31.0 | ||
- name: dbaas-operator | ||
repository: https://amazeeio.github.io/charts/ | ||
version: 0.3.1 | ||
- name: nats | ||
repository: https://nats-io.github.io/k8s/helm/charts/ | ||
version: 1.2.6 | ||
digest: sha256:ab9e60f2db483076396e667ae914b934d435091a6798865d39f8abce93ba353e | ||
generated: "2024-12-10T09:55:32.7354587+11:00" | ||
version: 1.2.8 | ||
digest: sha256:9814199e2380bbb6f3bb972a0c961b6078a22a363b9ab2b72a1817358690497c | ||
generated: "2024-12-18T23:16:59.119513362Z" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
charts/lagoon-remote/templates/storage-calculator.clusterrolebinding.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{{- if .Values.storageCalculator.enabled -}} | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: {{ include "lagoon-remote.storageCalculator.fullname" . }} | ||
labels: | ||
{{- include "lagoon-remote.storageCalculator.labels" . | nindent 4 }} | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: {{ include "lagoon-remote.storageCalculator.fullname" . }} | ||
subjects: | ||
- kind: ServiceAccount | ||
name: {{ include "lagoon-remote.storageCalculator.serviceAccountName" . }} | ||
namespace: {{ .Release.Namespace | quote }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
charts/lagoon-remote/templates/storage-calculator.role.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{{- if .Values.storageCalculator.enabled -}} | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: {{ include "lagoon-remote.storageCalculator.fullname" . }}-leader-election | ||
labels: | ||
{{- include "lagoon-remote.storageCalculator.labels" . | nindent 4 }} | ||
rules: | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- configmaps | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- create | ||
- update | ||
- patch | ||
- delete | ||
- apiGroups: | ||
- coordination.k8s.io | ||
resources: | ||
- leases | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- create | ||
- update | ||
- patch | ||
- delete | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- events | ||
verbs: | ||
- create | ||
- patch | ||
{{- end }} |
8 changes: 4 additions & 4 deletions
8
charts/lagoon-remote/templates/storage-calculator.rolebinding.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
charts/lagoon-remote/templates/sysctl-configure.clusterrole.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{{- if .Values.sysctlConfigure.enabled -}} | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: {{ include "lagoon-remote.sysctlConfigure.fullname" . }} | ||
labels: | ||
{{- include "lagoon-remote.sysctlConfigure.labels" . | nindent 4 }} | ||
rules: | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- nodes | ||
verbs: | ||
- get | ||
- patch | ||
{{- end }} |
16 changes: 16 additions & 0 deletions
16
charts/lagoon-remote/templates/sysctl-configure.clusterrolebinding.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{{- if .Values.sysctlConfigure.enabled -}} | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: {{ include "lagoon-remote.sysctlConfigure.fullname" . }} | ||
labels: | ||
{{- include "lagoon-remote.sysctlConfigure.labels" . | nindent 4 }} | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: {{ include "lagoon-remote.sysctlConfigure.fullname" . }} | ||
subjects: | ||
- kind: ServiceAccount | ||
name: {{ include "lagoon-remote.sysctlConfigure.serviceAccountName" . }} | ||
namespace: {{ .Release.Namespace | quote }} | ||
{{- end }} |
53 changes: 53 additions & 0 deletions
53
charts/lagoon-remote/templates/sysctl-configure.daemonset.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{{- if .Values.sysctlConfigure.enabled -}} | ||
apiVersion: apps/v1 | ||
kind: DaemonSet | ||
metadata: | ||
name: {{ include "lagoon-remote.sysctlConfigure.fullname" . }} | ||
labels: | ||
{{- include "lagoon-remote.sysctlConfigure.labels" . | nindent 4 }} | ||
spec: | ||
selector: | ||
matchLabels: | ||
{{- include "lagoon-remote.sysctlConfigure.selectorLabels" . | nindent 6 }} | ||
template: | ||
metadata: | ||
name: {{ include "lagoon-remote.sysctlConfigure.fullname" . }} | ||
labels: | ||
{{- include "lagoon-remote.sysctlConfigure.selectorLabels" . | nindent 8 }} | ||
spec: | ||
affinity: | ||
nodeAffinity: | ||
requiredDuringSchedulingIgnoredDuringExecution: | ||
nodeSelectorTerms: | ||
- matchExpressions: | ||
- key: k8s.lagoon.sh/sysctl-configured | ||
operator: DoesNotExist | ||
serviceAccount: {{ include "lagoon-remote.sysctlConfigure.serviceAccountName" . }} | ||
containers: | ||
- name: sysctl | ||
image: "{{ .Values.sysctlConfigure.image.repository }}:{{ .Values.sysctlConfigure.image.tag | default .Chart.AppVersion}}" | ||
imagePullPolicy: {{ .Values.sysctlConfigure.image.pullPolicy }} | ||
command: | ||
env: | ||
- name: THIS_NODE_NAME | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: spec.nodeName | ||
command: | ||
- sh | ||
- -c | ||
- | | ||
set -xe | ||
{{- $index := 0 }} | ||
{{- range $sys, $value := .Values.sysctlConfigure.sysctl }} | ||
CURRENT{{ $index }}=$(sysctl -n {{ $sys }}) | ||
if [ "{{ $value }}" -gt "$CURRENT{{ $index }}" ]; then | ||
sysctl -w {{ $sys }}={{ $value }} | ||
fi | ||
{{- $index = add $index 1 }} | ||
{{- end }} | ||
kubectl label node "$THIS_NODE_NAME" k8s.lagoon.sh/sysctl-configured=$(date +%s) | ||
securityContext: | ||
runAsUser: 0 | ||
privileged: true | ||
{{- end }} |
8 changes: 8 additions & 0 deletions
8
charts/lagoon-remote/templates/sysctl-configure.serviceaccount.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{{- if .Values.sysctlConfigure.enabled -}} | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: {{ include "lagoon-remote.sysctlConfigure.serviceAccountName" . }} | ||
labels: | ||
{{- include "lagoon-remote.sysctlConfigure.labels" . | nindent 4 }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters