Skip to content

Commit

Permalink
fix: variable naming convention for rancher
Browse files Browse the repository at this point in the history
  • Loading branch information
simonostendorf authored and JonasProgrammer committed Mar 16, 2023
1 parent f4da5fb commit 77c2002
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ was used during creation.
| `--hetzner-firewalls` | `HETZNER_FIREWALLS` | |
| `--hetzner-volumes` | `HETZNER_VOLUMES` | |
| `--hetzner-use-private-network` | `HETZNER_USE_PRIVATE_NETWORK` | false |
| `--hetzner-disable-public-4` | `HETZNER_DISABLE_PUBLIC_4` | false |
| `--hetzner-disable-public-6` | `HETZNER_DISABLE_PUBLIC_6` | false |
| `--hetzner-disable-public-ipv4` | `HETZNER_DISABLE_PUBLIC_IPV4` | false |
| `--hetzner-disable-public-ipv6` | `HETZNER_DISABLE_PUBLIC_IPV6` | false |
| `--hetzner-disable-public` | `HETZNER_DISABLE_PUBLIC` | false |
| `--hetzner-server-label` | (inoperative) | `[]` |
| `--hetzner-key-label` | (inoperative) | `[]` |
Expand Down Expand Up @@ -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.
`--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.
Using `--hetzner-use-private-network` implicitly or explicitly requires at least one `--hetzner-network`
to be given.
Expand Down
8 changes: 4 additions & 4 deletions driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ const (
flagVolumes = "hetzner-volumes"
flagNetworks = "hetzner-networks"
flagUsePrivateNetwork = "hetzner-use-private-network"
flagDisablePublic4 = "hetzner-disable-public-4"
flagDisablePublic6 = "hetzner-disable-public-6"
flagDisablePublic4 = "hetzner-disable-public-ipv4"
flagDisablePublic6 = "hetzner-disable-public-ipv6"
flagPrimary4 = "hetzner-primary-ipv4"
flagPrimary6 = "hetzner-primary-ipv6"
flagDisablePublic = "hetzner-disable-public"
Expand Down Expand Up @@ -201,12 +201,12 @@ func (d *Driver) GetCreateFlags() []mcnflag.Flag {
Usage: "Use private network",
},
mcnflag.BoolFlag{
EnvVar: "HETZNER_DISABLE_PUBLIC_4",
EnvVar: "HETZNER_DISABLE_PUBLIC_IPV4",
Name: flagDisablePublic4,
Usage: "Disable public ipv4",
},
mcnflag.BoolFlag{
EnvVar: "HETZNER_DISABLE_PUBLIC_6",
EnvVar: "HETZNER_DISABLE_PUBLIC_IPV6",
Name: flagDisablePublic6,
Usage: "Disable public ipv6",
},
Expand Down

0 comments on commit 77c2002

Please sign in to comment.