mirror of
				https://github.com/nsnail/Ocelot.git
				synced 2025-11-04 18:00:48 +08:00 
			
		
		
		
	fix: Namesapce Spelling wrong
This commit is contained in:
		@@ -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
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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();
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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; }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user