mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-04-22 14:02:49 +08:00
fix: Namesapce Spelling wrong
This commit is contained in:
parent
9cb50a34a4
commit
4b8f83eb65
@ -21,7 +21,7 @@ namespace Ocelot.Provider.Kubernetes
|
||||
{
|
||||
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
|
||||
|
@ -46,9 +46,9 @@ namespace Ocelot.Configuration.Builder
|
||||
return this;
|
||||
}
|
||||
|
||||
public ServiceProviderConfigurationBuilder WithNamesapce(string @namesapce)
|
||||
public ServiceProviderConfigurationBuilder WithNamespace(string @namespace)
|
||||
{
|
||||
_namespace = @namesapce;
|
||||
_namespace = @namespace;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
@ -13,7 +13,7 @@ namespace Ocelot.Configuration.Creator
|
||||
? 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)
|
||||
@ -22,7 +22,7 @@ namespace Ocelot.Configuration.Creator
|
||||
.WithToken(globalConfiguration?.ServiceDiscoveryProvider?.Token)
|
||||
.WithConfigurationKey(globalConfiguration?.ServiceDiscoveryProvider?.ConfigurationKey)
|
||||
.WithPollingInterval(pollingInterval)
|
||||
.WithNamesapce(k8snamesapce)
|
||||
.WithNamespace(k8snamespace)
|
||||
.Build();
|
||||
}
|
||||
}
|
||||
|
@ -10,7 +10,7 @@
|
||||
Token = token;
|
||||
Type = type;
|
||||
PollingInterval = pollingInterval;
|
||||
Namesapce = @namespace;
|
||||
Namespace = @namespace;
|
||||
}
|
||||
|
||||
public string Host { get; }
|
||||
@ -25,6 +25,6 @@
|
||||
|
||||
public int PollingInterval { get; }
|
||||
|
||||
public string Namesapce { get; }
|
||||
public string Namespace { get; }
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user