Skip to content

Commit

Permalink
Add development channel for OBS builds
Browse files Browse the repository at this point in the history
This commit adds a development channel reference to builds
done in OBS (under or branched from isv:Rancher:Elemental)

Signed-off-by: David Cassany <[email protected]>
  • Loading branch information
davidcassany committed Jun 26, 2024
1 parent b18ff86 commit 6ee9211
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
14 changes: 14 additions & 0 deletions .obs/chartfile/operator/templates/channel-dev.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{{ if contains "isv/rancher/elemental" .Values.registryUrl }}
{{ if hasPrefix "registry.opensuse.org" .Values.registryUrl }}
# Unstable channel for isv:Rancher:Elemental OBS projects
apiVersion: elemental.cattle.io/v1beta1
kind: ManagedOSVersionChannel
metadata:
name: unstable-channel
namespace: fleet-default
spec:
options:
image: {{ .Values.registryUrl }}/rancher/elemental-unstable-channel:latest
type: custom
{{ end }}
{{ end }}
4 changes: 2 additions & 2 deletions .obs/chartfile/operator/templates/channel.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{{ if and .Values.channel .Values.channel.image .Values.channel.tag }}
{{ if and .Values.channel .Values.channel.image .Values.channel.tag .Values.channel.name }}
apiVersion: elemental.cattle.io/v1beta1
kind: ManagedOSVersionChannel
metadata:
name: elemental-channel
name: {{ .Values.channel.name }}
namespace: fleet-default
spec:
options:
Expand Down
3 changes: 2 additions & 1 deletion .obs/chartfile/operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ seedImage:
imagePullPolicy: IfNotPresent

channel:
image: "%%IMG_REPO%%/rancher/elemental-channel"
name: "sle-micro-channel"
image: "registry.suse.com/rancher/elemental-channel"
tag: "%VERSION%"

# number of operator replicas to deploy
Expand Down

0 comments on commit 6ee9211

Please sign in to comment.