Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions realm-ubuntu/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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"
14 changes: 14 additions & 0 deletions realm-ubuntu/alpha.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
ubuntu24:
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/deploy

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
8 changes: 8 additions & 0 deletions realm-ubuntu/deploy-rules.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
component_detection:
root_key: ""
managed_components:
- ubuntu24
dependencies: {}
disable_policy:
preferred: replicaCount
fallback: enabled
33 changes: 33 additions & 0 deletions realm-ubuntu/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
1 change: 1 addition & 0 deletions ubuntu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ spec:
image: baseimg/ubuntu:2404
imagePullPolicy: Always
name: ubuntu24