Object KubernetesUtils

  • All Implemented Interfaces:

    
    public class KubernetesUtils
    
                        
    Since:

    2.6.0

    Author:

    CJ

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static String currentNamespace()
      final HasMetadata topOwner(HasMetadata input, KubernetesClient client)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • currentNamespace

         final static String currentNamespace()
        Returns:

        当前 k8s namespace; null 表示并不是在 k8s集群中

      • topOwner

         final HasMetadata topOwner(HasMetadata input, KubernetesClient client)