Skip to content
Snippets Groups Projects
Commit 77c20029 authored by Simon Ostendorf's avatar Simon Ostendorf Committed by JonasS
Browse files

fix: variable naming convention for rancher

parent f4da5fba
Branches
Tags
No related merge requests found
...@@ -148,8 +148,8 @@ was used during creation. ...@@ -148,8 +148,8 @@ was used during creation.
| `--hetzner-firewalls` | `HETZNER_FIREWALLS` | | | `--hetzner-firewalls` | `HETZNER_FIREWALLS` | |
| `--hetzner-volumes` | `HETZNER_VOLUMES` | | | `--hetzner-volumes` | `HETZNER_VOLUMES` | |
| `--hetzner-use-private-network` | `HETZNER_USE_PRIVATE_NETWORK` | false | | `--hetzner-use-private-network` | `HETZNER_USE_PRIVATE_NETWORK` | false |
| `--hetzner-disable-public-4` | `HETZNER_DISABLE_PUBLIC_4` | false | | `--hetzner-disable-public-ipv4` | `HETZNER_DISABLE_PUBLIC_IPV4` | false |
| `--hetzner-disable-public-6` | `HETZNER_DISABLE_PUBLIC_6` | false | | `--hetzner-disable-public-ipv6` | `HETZNER_DISABLE_PUBLIC_IPV6` | false |
| `--hetzner-disable-public` | `HETZNER_DISABLE_PUBLIC` | false | | `--hetzner-disable-public` | `HETZNER_DISABLE_PUBLIC` | false |
| `--hetzner-server-label` | (inoperative) | `[]` | | `--hetzner-server-label` | (inoperative) | `[]` |
| `--hetzner-key-label` | (inoperative) | `[]` | | `--hetzner-key-label` | (inoperative) | `[]` |
...@@ -177,7 +177,7 @@ Hetzner assigns them at the given time, so users should take care what retention ...@@ -177,7 +177,7 @@ Hetzner assigns them at the given time, so users should take care what retention
When disabling all public IPs, `--hetzner-use-private-network` must be given. When disabling all public IPs, `--hetzner-use-private-network` must be given.
`--hetzner-disable-public` will take care of that, and behaves as if `--hetzner-disable-public` will take care of that, and behaves as if
`--hetzner-disable-public-4 --hetzner-disable-public-6 --hetzner-use-private-network` `--hetzner-disable-public-ipv4 --hetzner-disable-public-ipv6 --hetzner-use-private-network`
were given. were given.
Using `--hetzner-use-private-network` implicitly or explicitly requires at least one `--hetzner-network` Using `--hetzner-use-private-network` implicitly or explicitly requires at least one `--hetzner-network`
to be given. to be given.
......
...@@ -78,8 +78,8 @@ const ( ...@@ -78,8 +78,8 @@ const (
flagVolumes = "hetzner-volumes" flagVolumes = "hetzner-volumes"
flagNetworks = "hetzner-networks" flagNetworks = "hetzner-networks"
flagUsePrivateNetwork = "hetzner-use-private-network" flagUsePrivateNetwork = "hetzner-use-private-network"
flagDisablePublic4 = "hetzner-disable-public-4" flagDisablePublic4 = "hetzner-disable-public-ipv4"
flagDisablePublic6 = "hetzner-disable-public-6" flagDisablePublic6 = "hetzner-disable-public-ipv6"
flagPrimary4 = "hetzner-primary-ipv4" flagPrimary4 = "hetzner-primary-ipv4"
flagPrimary6 = "hetzner-primary-ipv6" flagPrimary6 = "hetzner-primary-ipv6"
flagDisablePublic = "hetzner-disable-public" flagDisablePublic = "hetzner-disable-public"
...@@ -201,12 +201,12 @@ func (d *Driver) GetCreateFlags() []mcnflag.Flag { ...@@ -201,12 +201,12 @@ func (d *Driver) GetCreateFlags() []mcnflag.Flag {
Usage: "Use private network", Usage: "Use private network",
}, },
mcnflag.BoolFlag{ mcnflag.BoolFlag{
EnvVar: "HETZNER_DISABLE_PUBLIC_4", EnvVar: "HETZNER_DISABLE_PUBLIC_IPV4",
Name: flagDisablePublic4, Name: flagDisablePublic4,
Usage: "Disable public ipv4", Usage: "Disable public ipv4",
}, },
mcnflag.BoolFlag{ mcnflag.BoolFlag{
EnvVar: "HETZNER_DISABLE_PUBLIC_6", EnvVar: "HETZNER_DISABLE_PUBLIC_IPV6",
Name: flagDisablePublic6, Name: flagDisablePublic6,
Usage: "Disable public ipv6", Usage: "Disable public ipv6",
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment