mirror of
https://github.com/submariner-io/submariner-charts.git
synced 2026-09-22 21:20:35 +00:00
refactor: globalnet should be under the broker
Signed-off-by: Steve Mattar <smattar@redhat.com>
This commit is contained in:
committed by
Steve Mattar
parent
8d6ca0bd1d
commit
64d7c11506
@@ -6,13 +6,23 @@ include $(SHIPYARD_DIR)/Makefile.inc
|
|||||||
|
|
||||||
CLUSTER_SETTINGS_FLAG = --cluster_settings $(DAPPER_SOURCE)/cluster_settings
|
CLUSTER_SETTINGS_FLAG = --cluster_settings $(DAPPER_SOURCE)/cluster_settings
|
||||||
override CLUSTERS_ARGS += $(CLUSTER_SETTINGS_FLAG)
|
override CLUSTERS_ARGS += $(CLUSTER_SETTINGS_FLAG)
|
||||||
override DEPLOY_ARGS += $(CLUSTER_SETTINGS_FLAG) --deploytool helm --deploytool_broker_args '--set submariner.serviceDiscovery=true'
|
override DEPLOY_ARGS += $(CLUSTER_SETTINGS_FLAG) --deploytool helm
|
||||||
export DEPLOY_ARGS
|
export DEPLOY_ARGS
|
||||||
GH_URL=https://submariner-io.github.io/submariner-charts/charts
|
GH_URL=https://submariner-io.github.io/submariner-charts/charts
|
||||||
CHARTS_DIR=charts
|
CHARTS_DIR=charts
|
||||||
CHARTS_VERSION=0.7.0
|
CHARTS_VERSION=0.7.0
|
||||||
REPO_URL=$(shell git config remote.origin.url)
|
REPO_URL=$(shell git config remote.origin.url)
|
||||||
|
|
||||||
|
# Process extra flags from the `using=a,b,c` optional flag
|
||||||
|
|
||||||
|
ifneq (,$(filter lighthouse,$(_using)))
|
||||||
|
override DEPLOY_ARGS += --service_discovery
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifneq (,$(filter globalnet,$(_using)))
|
||||||
|
override DEPLOY_ARGS += --globalnet
|
||||||
|
endif
|
||||||
|
|
||||||
# Targets to make
|
# Targets to make
|
||||||
|
|
||||||
deploy: clusters preload-images
|
deploy: clusters preload-images
|
||||||
|
|||||||
@@ -51,12 +51,16 @@ function helm_install_subm() {
|
|||||||
--set broker.token="${submariner_broker_token}" \
|
--set broker.token="${submariner_broker_token}" \
|
||||||
--set broker.namespace="${SUBMARINER_BROKER_NS}" \
|
--set broker.namespace="${SUBMARINER_BROKER_NS}" \
|
||||||
--set broker.ca="${submariner_broker_ca}" \
|
--set broker.ca="${submariner_broker_ca}" \
|
||||||
|
--set broker.globalnet="${globalnet}" \
|
||||||
|
--set submariner.serviceDiscovery="${service_discovery}" \
|
||||||
--set submariner.cableDriver="${cable_driver}" \
|
--set submariner.cableDriver="${cable_driver}" \
|
||||||
--set submariner.clusterId="${cluster}" \
|
--set submariner.clusterId="${cluster}" \
|
||||||
--set submariner.clusterCidr="${cluster_CIDRs[$cluster]}" \
|
--set submariner.clusterCidr="${cluster_CIDRs[$cluster]}" \
|
||||||
--set submariner.serviceCidr="${service_CIDRs[$cluster]}" \
|
--set submariner.serviceCidr="${service_CIDRs[$cluster]}" \
|
||||||
--set submariner.globalCidr="${global_CIDRs[$cluster]}" \
|
--set submariner.globalCidr="${global_CIDRs[$cluster]}" \
|
||||||
--set serviceAccounts.globalnet.create="${globalnet}" \
|
--set serviceAccounts.globalnet.create="${globalnet}" \
|
||||||
|
--set serviceAccounts.lighthouseAgent.create="${service_discovery}" \
|
||||||
|
--set serviceAccounts.lighthouseCoreDns.create="${service_discovery}" \
|
||||||
--set submariner.natEnabled="false" \
|
--set submariner.natEnabled="false" \
|
||||||
--set operator.image.repository="localhost:5000/submariner-operator" \
|
--set operator.image.repository="localhost:5000/submariner-operator" \
|
||||||
--set operator.image.tag="local" \
|
--set operator.image.tag="local" \
|
||||||
|
|||||||
@@ -7,5 +7,3 @@ serviceAccounts:
|
|||||||
client:
|
client:
|
||||||
create: true
|
create: true
|
||||||
name: ""
|
name: ""
|
||||||
submariner:
|
|
||||||
serviceDiscovery: false
|
|
||||||
|
|||||||
@@ -92,6 +92,19 @@ questions:
|
|||||||
label: "Service CIDR"
|
label: "Service CIDR"
|
||||||
group: "CIDR Configuration"
|
group: "CIDR Configuration"
|
||||||
required: true
|
required: true
|
||||||
|
- variable: submariner.serviceDiscovery
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
group: "Advanced Configuration"
|
||||||
|
description: "Enable multicluster service discovery"
|
||||||
|
label: "Service Discovery Enabled"
|
||||||
|
- variable: broker.globalnet
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
group: "Broker Configuration"
|
||||||
|
description: "Enable support for overlapping Cluster/Service CIDRs in connecting clusters"
|
||||||
|
label: "Globalnet Enabled"
|
||||||
|
subquestions:
|
||||||
- variable: submariner.globalCidr
|
- variable: submariner.globalCidr
|
||||||
default: ""
|
default: ""
|
||||||
description: "Enter the globalnet CIDR (i.e. 169.254.1.0/24) for this cluster if using globalnet"
|
description: "Enter the globalnet CIDR (i.e. 169.254.1.0/24) for this cluster if using globalnet"
|
||||||
|
|||||||
@@ -279,7 +279,7 @@ subjects:
|
|||||||
name: {{ template "submariner.routeAgentServiceAccountName" . }}
|
name: {{ template "submariner.routeAgentServiceAccountName" . }}
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
---
|
---
|
||||||
{{- if ne .Values.submariner.globalCidr "" }}
|
{{- if .Values.broker.globalnet }}
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: Role
|
kind: Role
|
||||||
metadata:
|
metadata:
|
||||||
@@ -622,7 +622,7 @@ subjects:
|
|||||||
name: {{ template "submariner.routeAgentServiceAccountName" . }}
|
name: {{ template "submariner.routeAgentServiceAccountName" . }}
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
---
|
---
|
||||||
{{- if ne .Values.submariner.globalCidr "" }}
|
{{- if .Values.broker.globalnet }}
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
metadata:
|
metadata:
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ broker:
|
|||||||
namespace: xyz
|
namespace: xyz
|
||||||
insecure: false
|
insecure: false
|
||||||
ca: ""
|
ca: ""
|
||||||
|
globalnet: false
|
||||||
rbac:
|
rbac:
|
||||||
create: true
|
create: true
|
||||||
ipsec:
|
ipsec:
|
||||||
|
|||||||
@@ -136,3 +136,9 @@ questions:
|
|||||||
group: "Advanced Configuration"
|
group: "Advanced Configuration"
|
||||||
description: "Cable driver implementation"
|
description: "Cable driver implementation"
|
||||||
label: "Cable Driver"
|
label: "Cable Driver"
|
||||||
|
- variable: submariner.serviceDiscovery
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
group: "Advanced Configuration"
|
||||||
|
description: "Enable multicluster service discovery"
|
||||||
|
label: "Service Discovery Enabled"
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
{{- if ne .Values.submariner.globalCidr "" }}
|
{{- if .Values.broker.globalnet }}
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: DaemonSet
|
kind: DaemonSet
|
||||||
metadata:
|
metadata:
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ spec:
|
|||||||
value: "{{ .Values.submariner.clusterId }}"
|
value: "{{ .Values.submariner.clusterId }}"
|
||||||
- name: SUBMARINER_DEBUG
|
- name: SUBMARINER_DEBUG
|
||||||
value: "{{ .Values.submariner.debug }}"
|
value: "{{ .Values.submariner.debug }}"
|
||||||
{{- if ne .Values.submariner.globalCidr "" }}
|
{{- if .Values.broker.globalnet }}
|
||||||
- name: SUBMARINER_GLOBALNET_ENABLED
|
- name: SUBMARINER_GLOBALNET_ENABLED
|
||||||
value: "true"
|
value: "true"
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -195,7 +195,7 @@ subjects:
|
|||||||
name: {{ template "submariner.routeAgentServiceAccountName" . }}
|
name: {{ template "submariner.routeAgentServiceAccountName" . }}
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
---
|
---
|
||||||
{{- if ne .Values.submariner.globalCidr "" }}
|
{{- if .Values.broker.globalnet }}
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: Role
|
kind: Role
|
||||||
metadata:
|
metadata:
|
||||||
@@ -463,7 +463,7 @@ subjects:
|
|||||||
name: {{ template "submariner.routeAgentServiceAccountName" . }}
|
name: {{ template "submariner.routeAgentServiceAccountName" . }}
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
---
|
---
|
||||||
{{- if ne .Values.submariner.globalCidr "" }}
|
{{- if .Values.broker.globalnet }}
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
metadata:
|
metadata:
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ broker:
|
|||||||
namespace: xyz
|
namespace: xyz
|
||||||
insecure: false
|
insecure: false
|
||||||
ca: ""
|
ca: ""
|
||||||
|
globalnet: false
|
||||||
rbac:
|
rbac:
|
||||||
create: true
|
create: true
|
||||||
ipsec:
|
ipsec:
|
||||||
|
|||||||
Reference in New Issue
Block a user