We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
IsNamespaceStore
IsClusterStore
1 parent 84cc4a9 commit a310ea0Copy full SHA for a310ea0
kubernetes-orchestrator-extension/Jobs/JobBase.cs
@@ -443,13 +443,13 @@ protected K8SJobCertificate InitJobCertificate(dynamic config)
443
444
private static bool IsNamespaceStore(string capability)
445
{
446
- return capability != null && string.IsNullOrEmpty(capability) &&
+ return !string.IsNullOrEmpty(capability) &&
447
capability.Contains("K8SNS", StringComparison.OrdinalIgnoreCase);
448
}
449
450
private static bool IsClusterStore(string capability)
451
452
453
capability.Contains("K8SCLUSTER", StringComparison.OrdinalIgnoreCase);
454
455
0 commit comments