diff --git a/.obs/chartfile/operator/templates/channel-dev.yaml b/.obs/chartfile/operator/templates/channel-dev.yaml new file mode 100644 index 00000000..5dc5b6b1 --- /dev/null +++ b/.obs/chartfile/operator/templates/channel-dev.yaml @@ -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 }} diff --git a/.obs/chartfile/operator/templates/channel.yaml b/.obs/chartfile/operator/templates/channel.yaml index ccb6e4d3..7fc870d7 100644 --- a/.obs/chartfile/operator/templates/channel.yaml +++ b/.obs/chartfile/operator/templates/channel.yaml @@ -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: diff --git a/.obs/chartfile/operator/values.yaml b/.obs/chartfile/operator/values.yaml index 37de4469..5d98ae56 100644 --- a/.obs/chartfile/operator/values.yaml +++ b/.obs/chartfile/operator/values.yaml @@ -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