Skip to content

Commit

Permalink
Add official channels
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Mazzotti <[email protected]>
  • Loading branch information
anmazzotti committed Jul 23, 2024
1 parent 166616d commit 53182e4
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 5 deletions.
48 changes: 48 additions & 0 deletions .obs/chartfile/operator/templates/channels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,51 @@ spec:
type: custom
{{ end }}
{{ end }}
---
{{ $enabled := false }}
{{ $channel := (lookup "elemental.cattle.io/v1beta1" "ManagedOSVersionChannel" "fleet-default" "sle-micro-5.5")}}
{{ if $channel }}
{{ $enabled = $channel.spec.enabled }}
{{ end }}
apiVersion: elemental.cattle.io/v1beta1
kind: ManagedOSVersionChannel
metadata:
name: sle-micro-5.5
namespace: fleet-default
spec:
enabled: {{ $enabled }}
options:
image: registry.opensuse.org/isv/rancher/elemental/dev/containers/rancher/elemental-channel/sle-micro:5.5
type: custom
---
{{ $enabled := false }}
{{ $channel := (lookup "elemental.cattle.io/v1beta1" "ManagedOSVersionChannel" "fleet-default" "sle-micro-5.5-kvm")}}
{{ if $channel }}
{{ $enabled = $channel.spec.enabled }}
{{ end }}
apiVersion: elemental.cattle.io/v1beta1
kind: ManagedOSVersionChannel
metadata:
name: sle-micro-5.5-kvm
namespace: fleet-default
spec:
enabled: {{ $enabled }}
options:
image: registry.opensuse.org/isv/rancher/elemental/dev/containers/rancher/elemental-channel/sle-micro:5.5-kvm
type: custom
---
{{ $enabled := false }}
{{ $channel := (lookup "elemental.cattle.io/v1beta1" "ManagedOSVersionChannel" "fleet-default" "sle-micro-5.5-rt")}}
{{ if $channel }}
{{ $enabled = $channel.spec.enabled }}
{{ end }}
apiVersion: elemental.cattle.io/v1beta1
kind: ManagedOSVersionChannel
metadata:
name: sle-micro-5.5-rt
namespace: fleet-default
spec:
enabled: {{ $enabled }}
options:
image: registry.opensuse.org/isv/rancher/elemental/dev/containers/rancher/elemental-channel/sle-micro:5.5-rt
type: custom
5 changes: 0 additions & 5 deletions .obs/chartfile/operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ seedImage:
tag: "%VERSION%"
imagePullPolicy: IfNotPresent

channel:
name: "sle-micro-5.5"
image: "%%IMG_REPO%%/rancher/elemental-channel/sle-micro"
tag: "5.5"

# number of operator replicas to deploy
replicas: 1

Expand Down

0 comments on commit 53182e4

Please sign in to comment.