Skip to content

Commit 50b0a3c

Browse files
author
Oleg Sucharevich
authored
BREAKING CHNGE! rename the environment variable that are used to work with codefresh (#32)
1 parent 042fd39 commit 50b0a3c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "venona",
3-
"version": "0.19.0",
3+
"version": "0.20.0",
44
"description": "Codefresh agent to run on Codefresh's runtime environment and execute pipeline",
55
"main": "index.js",
66
"scripts": {

venonactl/cmd/root.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ func init() {
3838
viper.BindEnv("kubeconfig", "KUBECONFIG")
3939
viper.BindEnv("cfconfig", "CFCONFIG")
4040

41-
viper.BindEnv("apihost", "API_HOST")
42-
viper.BindEnv("apitoken", "API_TOKEN")
41+
viper.BindEnv("apihost", "CODEFRESH_API_HOST")
42+
viper.BindEnv("apitoken", "CODEFRESH_API_TOKEN")
4343

4444
rootCmd.PersistentFlags().StringVar(&configPath, "cfconfig", viper.GetString("cfconfig"), "Config file (default is $HOME/.cfconfig) [$CFCONFIG]")
45-
rootCmd.PersistentFlags().StringVar(&cfAPIHost, "api-host", viper.GetString("apihost"), "Host of codefresh [$API_HOST]")
46-
rootCmd.PersistentFlags().StringVar(&cfAPIToken, "api-token", viper.GetString("apitoken"), "Codefresh API token [$API_TOKEN]")
45+
rootCmd.PersistentFlags().StringVar(&cfAPIHost, "api-host", viper.GetString("apihost"), "Host of codefresh [$CODEFRESH_API_HOST]")
46+
rootCmd.PersistentFlags().StringVar(&cfAPIToken, "api-token", viper.GetString("apitoken"), "Codefresh API token [$CODEFRESH_API_TOKEN]")
4747
rootCmd.PersistentFlags().StringVar(&cfContext, "context", "", "Name of the context from --cfconfig (default is current-context)")
4848

4949
rootCmd.PersistentFlags().StringVar(&kubeConfigPath, "kube-config-path", viper.GetString("kubeconfig"), "Path to kubeconfig file (default is $HOME/.kube/config) [$KUBECONFIG]")

0 commit comments

Comments
 (0)