Commit de82b2fd authored by Christopher Harm's avatar Christopher Harm

Merge branch 'develop' of git.psu.edu:k8s/devtool into develop

parents 55bf38c6 d95c3b9a
Pipeline #69416 passed with stages
in 30 seconds
......@@ -79,6 +79,7 @@ func fluxDeployCi(config config.Config) error {
os.Setenv("KUBE_SERVICE_NAME", releaseName)
os.Setenv("CI_PROJECT_NAME", image)
os.Setenv("DEPLOYABLE_NAME", deployable.Name)
err := environment.Run(true, "fluxhelmrelease")
if err != nil {
......
......@@ -91,10 +91,11 @@ func initConfig() {
viper.SetEnvKeyReplacer(replacer)
// If a config file is found, read it in.
if err := viper.ReadInConfig(); err == nil {
// fmt.Println("Using config file:", viper.ConfigFileUsed())
err := viper.ReadInConfig()
if err != nil {
fmt.Fprintf(os.Stderr, "Error reading config file: %s\n", err)
} else {
// color.Red(err.Error())
fmt.Fprintf(os.Stderr, "Using config file: %s\n", viper.ConfigFileUsed())
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment