@@ -32,11 +32,10 @@ const (
32
32
)
33
33
34
34
var (
35
- log = logf .Log .WithName ("kc" )
36
- ctrlConcurrency = 10
37
- ctrlNamespace = ""
38
- allowSharedServiceAccount = false
39
- enablePprof = false
35
+ log = logf .Log .WithName ("kc" )
36
+ ctrlConcurrency = 10
37
+ ctrlNamespace = ""
38
+ enablePprof = false
40
39
)
41
40
42
41
const (
@@ -46,8 +45,6 @@ const (
46
45
func main () {
47
46
flag .IntVar (& ctrlConcurrency , "concurrency" , 10 , "Max concurrent reconciles" )
48
47
flag .StringVar (& ctrlNamespace , "namespace" , "" , "Namespace to watch" )
49
- flag .BoolVar (& allowSharedServiceAccount , "dangerous-allow-shared-service-account" ,
50
- false , "If set to true, allow use of shared service account instead of per-app service accounts" )
51
48
flag .BoolVar (& enablePprof , "dangerous-enable-pprof" , false , "If set to true, enable pprof on " + pprofListenAddr )
52
49
flag .Parse ()
53
50
@@ -80,9 +77,8 @@ func main() {
80
77
}
81
78
82
79
appFactory := AppFactory {
83
- coreClient : coreClient ,
84
- appClient : appClient ,
85
- allowSharedServiceAccount : allowSharedServiceAccount ,
80
+ coreClient : coreClient ,
81
+ appClient : appClient ,
86
82
}
87
83
88
84
{ // add controller for apps
@@ -113,10 +109,6 @@ func main() {
113
109
114
110
entryLog .Info ("starting manager" )
115
111
116
- if allowSharedServiceAccount {
117
- entryLog .Info ("DANGEROUS in production setting -- allow shared service account" )
118
- }
119
-
120
112
if enablePprof {
121
113
entryLog .Info ("DANGEROUS in production setting -- pprof running" , "listen-addr" , pprofListenAddr )
122
114
go func () {
0 commit comments