diff --git a/realm-ubuntu/Chart.yaml b/realm-ubuntu/Chart.yaml new file mode 100644 index 0000000..dab73b3 --- /dev/null +++ b/realm-ubuntu/Chart.yaml @@ -0,0 +1,6 @@ +apiVersion: v2 +name: realm-ubuntu +description: Helm chart for webhook-driven PR deployments of the ubuntu image +type: application +version: 0.1.0 +appVersion: "24.04" diff --git a/realm-ubuntu/alpha.yaml b/realm-ubuntu/alpha.yaml new file mode 100644 index 0000000..1db9af7 --- /dev/null +++ b/realm-ubuntu/alpha.yaml @@ -0,0 +1,14 @@ +ubuntu24: + enabled: true + replicaCount: 1 + image: + repository: baseimg/ubuntu + tag: "2404" + pullPolicy: Always + command: + - /bin/sh + - -c + - while true; do date; echo 'time sleep'; sleep 3; done; + labels: + app: ubuntu24 + logging: ubuntu24 diff --git a/realm-ubuntu/deploy-rules.yaml b/realm-ubuntu/deploy-rules.yaml new file mode 100644 index 0000000..538f0a1 --- /dev/null +++ b/realm-ubuntu/deploy-rules.yaml @@ -0,0 +1,8 @@ +component_detection: + root_key: "" + managed_components: + - ubuntu24 +dependencies: {} +disable_policy: + preferred: replicaCount + fallback: enabled diff --git a/realm-ubuntu/templates/deployment.yaml b/realm-ubuntu/templates/deployment.yaml new file mode 100644 index 0000000..d743571 --- /dev/null +++ b/realm-ubuntu/templates/deployment.yaml @@ -0,0 +1,33 @@ +{{- if .Values.ubuntu24.enabled }} +apiVersion: apps/v1 +kind: Deployment +metadata: + name: {{ .Release.Name }} + labels: + app.kubernetes.io/name: ubuntu24 + app.kubernetes.io/instance: {{ .Release.Name }} + app: {{ default "ubuntu24" .Values.ubuntu24.labels.app | quote }} + logging: {{ default "ubuntu24" .Values.ubuntu24.labels.logging | quote }} +spec: + replicas: {{ .Values.ubuntu24.replicaCount }} + selector: + matchLabels: + app.kubernetes.io/name: ubuntu24 + app.kubernetes.io/instance: {{ .Release.Name }} + template: + metadata: + labels: + app.kubernetes.io/name: ubuntu24 + app.kubernetes.io/instance: {{ .Release.Name }} + app: {{ default "ubuntu24" .Values.ubuntu24.labels.app | quote }} + logging: {{ default "ubuntu24" .Values.ubuntu24.labels.logging | quote }} + spec: + containers: + - name: ubuntu24 + image: "{{ .Values.ubuntu24.image.repository }}:{{ .Values.ubuntu24.image.tag }}" + imagePullPolicy: {{ .Values.ubuntu24.image.pullPolicy }} + command: + {{- range .Values.ubuntu24.command }} + - {{ . | quote }} + {{- end }} +{{- end }} diff --git a/ubuntu.yaml b/ubuntu.yaml index d1f97a2..9a422d9 100644 --- a/ubuntu.yaml +++ b/ubuntu.yaml @@ -24,3 +24,4 @@ spec: image: baseimg/ubuntu:2404 imagePullPolicy: Always name: ubuntu24 +