-
Notifications
You must be signed in to change notification settings - Fork 0
/
flags.go
35 lines (27 loc) · 1.48 KB
/
flags.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Copyright 2015 Canonical Ltd.
// Licensed under the AGPLv3, see LICENCE file for details.
package feature
// TODO (anastasiamac 2015-03-02)
// Features that have commands that can be blocked,
// command list for "juju block" and "juju unblock"
// needs to be maintained until we can dynamically discover
// these commands.
// LogErrorStack is a developer feature flag to have the LoggedErrorStack
// function in the utils package write out the error stack as defined by the
// errors package to the logger. The ability to log the error stack is very
// useful in those error cases where you really don't expect there to be a
// failure. This means that the developers with this flag set will see the
// stack trace in the log output, but normal deployments never will.
const LogErrorStack = "log-error-stack"
// DeveloperMode allows access to developer specific commands and behaviour.
const DeveloperMode = "developer-mode"
// StrictMigration will cause migration to error if there are unexported
// values for annotations, status, status history, or settings.
const StrictMigration = "strict-migration"
// Branches will allow for model branches functionality to be used.
const Branches = "branches"
// Generations will allow for model generation functionality to be used.
// This is a deprecated flag name and is synonymous with "branches" above.
const Generations = "generations"
// RawK8sSpec indicates that it's allowed to set k8s spec using raw yaml format.
const RawK8sSpec = "raw-k8s-spec"