Esempio n. 1
0
        protected string GetNameSpaceFromYaml()
        {
            var retval = string.Empty;

            var projectDir = Path.GetDirectoryName(_package.GetCurrentProject().FullName);
            var filename   = $"{projectDir}\\{_package.GetKubeOptions().KubeDir}\\deployment.yaml";

            GetValueFromFile file = new GetValueFromFile();

            retval = file.GetValue(filename, "namespace");

            return(retval);
        }
Esempio n. 2
0
        protected string GetNameSpaceFromYaml(string projectDir, string kubeDir)
        {
            var retval = string.Empty;


            var filename = $"{projectDir}\\{kubeDir}\\deployment.yaml";

            GetValueFromFile file = new GetValueFromFile();

            retval = file.GetValue(filename, "namespace");

            return(retval);
        }