Avoid abbreviations in user-facing parameters.

This commit is contained in:
Oleksii Kliukin
2017-05-12 17:44:51 +02:00
parent 03064637f1
commit abd04e6f5a
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -20,14 +20,14 @@ var (
configMapName spec.NamespacedName
OutOfCluster bool
noTeamsAPI bool
noDBAccess bool
noDatabaseAccess bool
version string
)
func init() {
flag.StringVar(&KubeConfigFile, "kubeconfig", "", "Path to kubeconfig file with authorization and master location information.")
flag.BoolVar(&OutOfCluster, "outofcluster", false, "Whether the operator runs in- our outside of the Kubernetes cluster.")
flag.BoolVar(&noDBAccess, "nodatabaseaccess", false, "Disable all access to the database from the operator side.")
flag.BoolVar(&noDatabaseAccess, "nodatabaseaccess", false, "Disable all access to the database from the operator side.")
flag.BoolVar(&noTeamsAPI, "noteamsapi", false, "Disable all access to the teams API")
flag.Parse()
@@ -91,8 +91,8 @@ func main() {
if configMapData["namespace"] == "" { // Namespace in ConfigMap has priority over env var
configMapData["namespace"] = podNamespace
}
if noDBAccess {
configMapData["enable_db_access"] = "false"
if noDatabaseAccess {
configMapData["enable_database_access"] = "false"
}
if noTeamsAPI {
configMapData["enable_teams_api"] = "false"