Skip to content

Commit

Permalink
feat!(cmd/scripts/kubernetes/install_all): Replace `--dont-use-proxy-…
Browse files Browse the repository at this point in the history
…protocol` with `--use-proxy-protocol`
  • Loading branch information
ondrejsika committed Feb 23, 2023
1 parent a9dee3a commit cff02fd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/scripts/kubernetes/install_all/install_all.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const DEFAULT_LETS_ENCRYPT_EMAIL = "lets-encrypt-slu@sikamail.com"

var FlagDry bool
var FlagBaseDomain string
var FlagDontUseProxyProtocol bool
var FlagUseProxyProtocol bool
var FlagLetsEncryptEmail string
var FlagNoArgoCD bool

Expand All @@ -20,7 +20,7 @@ var Cmd = &cobra.Command{
Aliases: []string{"iall"},
Args: cobra.NoArgs,
Run: func(c *cobra.Command, args []string) {
k8s_scripts.InstallIngress(!FlagDontUseProxyProtocol, FlagDry)
k8s_scripts.InstallIngress(FlagUseProxyProtocol, FlagDry)
k8s_scripts.InstallCertManager(FlagDry)
k8s_scripts.InstallClusterIssuer(FlagLetsEncryptEmail, FlagDry)
if !FlagNoArgoCD {
Expand All @@ -46,8 +46,8 @@ func init() {
)
Cmd.MarkFlagRequired("base-domain")
Cmd.Flags().BoolVar(
&FlagDontUseProxyProtocol,
"dont-use-proxy-protocol",
&FlagUseProxyProtocol,
"use-proxy-protocol",
false,
"Use Proxy Protocol",
)
Expand Down

0 comments on commit cff02fd

Please sign in to comment.