Class ConfigurationResolver


  • public class ConfigurationResolver
    extends java.lang.Object
    • Method Detail

      • resolveConfig

        public static Configuration resolveConfig()
                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • resolvePodConfig

        public static Configuration resolvePodConfig()
                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • resolveKubeConfig

        public static Configuration resolveKubeConfig()
                                               throws java.io.IOException
        Resolves Configuration values from "~/.kube/config" current-context. It returns an empty configuration if file doesn't exist.
        Returns:
        the resolved Configuration with values from KubeConfig file empty Configuration if it doesn't exist.
        Throws:
        java.io.IOException - if a problem occurred while reading the config file.