From 01599cbb65ed08e63aa186dc31db34612b3bf340 Mon Sep 17 00:00:00 2001 From: Mike Kolesnik Date: Mon, 22 Aug 2022 10:59:53 +0300 Subject: [PATCH] Add support for image overrides Add support to override specific images (already supported by submariner) to the helm chart. Signed-off-by: Mike Kolesnik --- submariner-operator/templates/submariner.yaml | 26 +++++++++++++++++++ submariner-operator/values.yaml | 1 + 2 files changed, 27 insertions(+) diff --git a/submariner-operator/templates/submariner.yaml b/submariner-operator/templates/submariner.yaml index 82a3197..f5e24d7 100644 --- a/submariner-operator/templates/submariner.yaml +++ b/submariner-operator/templates/submariner.yaml @@ -23,6 +23,32 @@ spec: natEnabled: {{ .Values.submariner.natEnabled }} repository: {{ .Values.submariner.images.repository }} version: {{ .Values.submariner.images.tag }} +{{- with .Values.images }} +{{- if . }} + imageOverrides: + {{- if index . "submariner-operator" }} + submariner-operator: {{ index . "submariner-operator" }} + {{- end }} + {{- if index . "submariner-gateway" }} + submariner-gateway: {{ index . "submariner-gateway" }} + {{- end }} + {{- if index . "submariner-route-agent" }} + submariner-routeagent: {{ index . "submariner-route-agent" }} + {{- end }} + {{- if index . "submariner-globalnet" }} + submariner-globalnet: {{ index . "submariner-globalnet" }} + {{- end }} + {{- if index . "submariner-networkplugin-syncer" }} + submariner-networkplugin-syncer: {{ index . "submariner-networkplugin-syncer" }} + {{- end }} + {{- if index . "lighthouse-agent" }} + lighthouse-agent: {{ index . "lighthouse-agent" }} + {{- end }} + {{- if index . "lighthouse-coredns" }} + lighthouse-coredns: {{ index . "lighthouse-coredns" }} + {{- end }} +{{- end }} +{{- end }} serviceCIDR: "{{ .Values.submariner.serviceCidr }}" globalCIDR: "{{ .Values.submariner.globalCidr }}" serviceDiscoveryEnabled: {{ .Values.submariner.serviceDiscovery }} diff --git a/submariner-operator/values.yaml b/submariner-operator/values.yaml index 9948df8..cd8f40c 100644 --- a/submariner-operator/values.yaml +++ b/submariner-operator/values.yaml @@ -24,6 +24,7 @@ broker: globalnet: false rbac: create: true +images: {} ipsec: psk: "" debug: false