Skip to content

Commit

Permalink
fix: Namesapce Spelling wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
geffzhang committed Mar 12, 2019
1 parent 9cb50a3 commit 4b8f83e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ private static ServiceDiscovery.Providers.IServiceDiscoveryProvider GetkubeProvi
{
ApiEndPoint = new Uri($"https://{config.Host}:{config.Port}"),
KeyOfServiceInK8s = name,
KubeNamespace = config.Namesapce,
KubeNamespace = config.Namespace,
AuthStrategy = KubeAuthStrategy.BearerToken,
AccessToken = config.Token,
AllowInsecure = true // Don't validate server certificate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ public ServiceProviderConfigurationBuilder WithPollingInterval(int pollingInterv
return this;
}

public ServiceProviderConfigurationBuilder WithNamesapce(string @namesapce)
public ServiceProviderConfigurationBuilder WithNamespace(string @namespace)
{
_namespace = @namesapce;
_namespace = @namespace;
return this;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public ServiceProviderConfiguration Create(FileGlobalConfiguration globalConfigu
? globalConfiguration?.ServiceDiscoveryProvider?.Type
: "consul";
var pollingInterval = globalConfiguration?.ServiceDiscoveryProvider?.PollingInterval ?? 0;
var k8snamesapce = globalConfiguration?.ServiceDiscoveryProvider?.Namespace ?? string.Empty;
var k8snamespace = globalConfiguration?.ServiceDiscoveryProvider?.Namespace ?? string.Empty;

return new ServiceProviderConfigurationBuilder()
.WithHost(host)
Expand All @@ -22,7 +22,7 @@ public ServiceProviderConfiguration Create(FileGlobalConfiguration globalConfigu
.WithToken(globalConfiguration?.ServiceDiscoveryProvider?.Token)
.WithConfigurationKey(globalConfiguration?.ServiceDiscoveryProvider?.ConfigurationKey)
.WithPollingInterval(pollingInterval)
.WithNamesapce(k8snamesapce)
.WithNamespace(k8snamespace)
.Build();
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/Ocelot/Configuration/ServiceProviderConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public ServiceProviderConfiguration(string type, string host, int port, string t
Token = token;
Type = type;
PollingInterval = pollingInterval;
Namesapce = @namespace;
Namespace = @namespace;
}

public string Host { get; }
Expand All @@ -25,6 +25,6 @@ public ServiceProviderConfiguration(string type, string host, int port, string t

public int PollingInterval { get; }

public string Namesapce { get; }
public string Namespace { get; }
}
}

0 comments on commit 4b8f83e

Please sign in to comment.