Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
dprotaso committed Oct 12, 2021
1 parent 541af22 commit 881b5bd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pkg/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ func NewConfigFromMap(data map[string]string) (*Config, error) {
cm.AsString("domainTemplate", &nc.DomainTemplate),
cm.AsString("tagTemplate", &nc.TagTemplate),
cm.AsInt("rolloutDuration", &nc.RolloutDurationSecs),
cm.AsBool("autocreateDomainClaims", &nc.AutocreateClusterDomainClaims),
cm.AsBool("autocreateClusterDomainClaims", &nc.AutocreateClusterDomainClaims),
cm.AsString("defaultExternalScheme", &nc.DefaultExternalScheme),

// New key takes precedence.
Expand Down
12 changes: 6 additions & 6 deletions pkg/network_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,9 +278,9 @@ func TestConfiguration(t *testing.T) {
"rolloutDuration": "5",
"defaultExternalScheme": "6",

"autocreateDomainClaims": "true",
"httpProtocol": "redirected",
"autoTLS": "enabled",
"autocreateClusterDomainClaims": "true",
"httpProtocol": "redirected",
"autoTLS": "enabled",
},
wantConfig: &Config{
DefaultIngressClass: "1",
Expand All @@ -307,9 +307,9 @@ func TestConfiguration(t *testing.T) {
"rolloutDuration": "5",
"defaultExternalScheme": "6",

"autocreateDomainClaims": "true",
"httpProtocol": "redirected",
"autoTLS": "enabled",
"autocreateClusterDomainClaims": "true",
"httpProtocol": "redirected",
"autoTLS": "enabled",

DefaultIngressClassKey: "7",
DefaultCertificateClassKey: "8",
Expand Down

0 comments on commit 881b5bd

Please sign in to comment.