From cff0fd85677f9009ac4c0a594b57cf3605a85949 Mon Sep 17 00:00:00 2001 From: kirin <8254325+kirin-13@users.noreply.github.com> Date: Wed, 25 Mar 2026 17:23:26 +0800 Subject: [PATCH 1/2] test commnet --- ubuntu.yaml | 1 + 1 file changed, 1 insertion(+) 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 + From b86c89b8cf322d0930ee45c05b69f00a942c3058 Mon Sep 17 00:00:00 2001 From: elion <221809362+elioncode@users.noreply.github.com> Date: Wed, 25 Mar 2026 17:45:25 +0800 Subject: [PATCH 2/2] Add webhook-compatible realm-ubuntu chart --- realm-ubuntu/Chart.yaml | 6 +++++ realm-ubuntu/alpha.yaml | 14 +++++++++++ realm-ubuntu/deploy-rules.yaml | 8 +++++++ realm-ubuntu/templates/deployment.yaml | 33 ++++++++++++++++++++++++++ 4 files changed, 61 insertions(+) create mode 100644 realm-ubuntu/Chart.yaml create mode 100644 realm-ubuntu/alpha.yaml create mode 100644 realm-ubuntu/deploy-rules.yaml create mode 100644 realm-ubuntu/templates/deployment.yaml 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 }}