Skip to content

Commit cc32010

Browse files
committed
Add ingress-operator as a flag to openfaas
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
1 parent 16a9b6f commit cc32010

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cmd/apps/openfaas_app.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ func MakeInstallOpenFaaS() *cobra.Command {
4646
openfaas.Flags().Int("queue-workers", 1, "Replicas of queue-worker")
4747
openfaas.Flags().Int("gateways", 1, "Replicas of gateway")
4848

49+
openfaas.Flags().Bool("ingress-operator", false, "Get custom domains and Ingress records via the ingress-operator component")
50+
4951
openfaas.Flags().Bool("helm3", true, "Use helm3, if set to false uses helm2")
5052

5153
openfaas.Flags().StringArray("set", []string{}, "Use custom flags or override existing flags \n(example --set=gateway.replicas=2)")
@@ -178,6 +180,8 @@ func MakeInstallOpenFaaS() *cobra.Command {
178180
gateways, _ := command.Flags().GetInt("gateways")
179181
queueWorkers, _ := command.Flags().GetInt("queue-workers")
180182

183+
ingressOperator, _ := command.Flags().GetBool("ingress-operator")
184+
181185
overrides["clusterRole"] = clusterRoleVal
182186
overrides["gateway.directFunctions"] = directFunctionsVal
183187
overrides["operator.create"] = createOperatorVal
@@ -186,6 +190,7 @@ func MakeInstallOpenFaaS() *cobra.Command {
186190
overrides["basicAuthPlugin.replicas"] = "1"
187191
overrides["gateway.replicas"] = fmt.Sprintf("%d", gateways)
188192
overrides["queueWorker.replicas"] = fmt.Sprintf("%d", queueWorkers)
193+
overrides["ingressOperator.create"] = strconv.FormatBool(ingressOperator)
189194

190195
basicAuth, _ := command.Flags().GetBool("basic-auth")
191196

0 commit comments

Comments
 (0)