fix: Namesapce Spelling wrong

This commit is contained in:
geffzhang 2019-03-12 10:19:21 +08:00
parent 9cb50a34a4
commit 4b8f83eb65
4 changed files with 7 additions and 7 deletions

View File

@ -21,7 +21,7 @@ namespace Ocelot.Provider.Kubernetes
{ {
ApiEndPoint = new Uri($"https://{config.Host}:{config.Port}"), ApiEndPoint = new Uri($"https://{config.Host}:{config.Port}"),
KeyOfServiceInK8s = name, KeyOfServiceInK8s = name,
KubeNamespace = config.Namesapce, KubeNamespace = config.Namespace,
AuthStrategy = KubeAuthStrategy.BearerToken, AuthStrategy = KubeAuthStrategy.BearerToken,
AccessToken = config.Token, AccessToken = config.Token,
AllowInsecure = true // Don't validate server certificate AllowInsecure = true // Don't validate server certificate

View File

@ -46,9 +46,9 @@ namespace Ocelot.Configuration.Builder
return this; return this;
} }
public ServiceProviderConfigurationBuilder WithNamesapce(string @namesapce) public ServiceProviderConfigurationBuilder WithNamespace(string @namespace)
{ {
_namespace = @namesapce; _namespace = @namespace;
return this; return this;
} }

View File

@ -13,7 +13,7 @@ namespace Ocelot.Configuration.Creator
? globalConfiguration?.ServiceDiscoveryProvider?.Type ? globalConfiguration?.ServiceDiscoveryProvider?.Type
: "consul"; : "consul";
var pollingInterval = globalConfiguration?.ServiceDiscoveryProvider?.PollingInterval ?? 0; var pollingInterval = globalConfiguration?.ServiceDiscoveryProvider?.PollingInterval ?? 0;
var k8snamesapce = globalConfiguration?.ServiceDiscoveryProvider?.Namespace ?? string.Empty; var k8snamespace = globalConfiguration?.ServiceDiscoveryProvider?.Namespace ?? string.Empty;
return new ServiceProviderConfigurationBuilder() return new ServiceProviderConfigurationBuilder()
.WithHost(host) .WithHost(host)
@ -22,7 +22,7 @@ namespace Ocelot.Configuration.Creator
.WithToken(globalConfiguration?.ServiceDiscoveryProvider?.Token) .WithToken(globalConfiguration?.ServiceDiscoveryProvider?.Token)
.WithConfigurationKey(globalConfiguration?.ServiceDiscoveryProvider?.ConfigurationKey) .WithConfigurationKey(globalConfiguration?.ServiceDiscoveryProvider?.ConfigurationKey)
.WithPollingInterval(pollingInterval) .WithPollingInterval(pollingInterval)
.WithNamesapce(k8snamesapce) .WithNamespace(k8snamespace)
.Build(); .Build();
} }
} }

View File

@ -10,7 +10,7 @@
Token = token; Token = token;
Type = type; Type = type;
PollingInterval = pollingInterval; PollingInterval = pollingInterval;
Namesapce = @namespace; Namespace = @namespace;
} }
public string Host { get; } public string Host { get; }
@ -25,6 +25,6 @@
public int PollingInterval { get; } public int PollingInterval { get; }
public string Namesapce { get; } public string Namespace { get; }
} }
} }