You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Execute adds all child commands to the root command sets flags appropriately.
69
71
// This is called by main.main(). It only needs to happen once to the rootCmd.
70
72
funcExecute() {
73
+
deferaudit.Log(time.Now())
74
+
71
75
_, callingCmd:=filepath.Split(os.Args[0])
72
76
73
77
ifcallingCmd=="kubectl" {
@@ -170,6 +174,7 @@ func init() {
170
174
171
175
RootCmd.PersistentFlags().StringP(config.ProfileName, "p", constants.DefaultClusterName, `The name of the minikube VM being used. This can be set to allow having multiple instances of minikube independently.`)
172
176
RootCmd.PersistentFlags().StringP(configCmd.Bootstrapper, "b", "kubeadm", "The name of the cluster bootstrapper that will set up the Kubernetes cluster.")
177
+
RootCmd.PersistentFlags().String(config.User, "", "Specifies the user executing the operation. Useful for auditing operations executed by 3rd party tools. Defaults to the operating system username.")
--skip_headers If true, avoid header prefixes in the log messages
35
35
--skip_log_headers If true, avoid headers when opening log files
36
36
--stderrthreshold severity logs at or above this threshold go to stderr (default 2)
37
+
--user string Specifies the user executing the operation. Useful for auditing operations executed by 3rd party tools. Defaults to the operating system username.
37
38
-v, --v Level number for the log level verbosity
38
39
--vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging
--skip_headers If true, avoid header prefixes in the log messages
68
69
--skip_log_headers If true, avoid headers when opening log files
69
70
--stderrthreshold severity logs at or above this threshold go to stderr (default 2)
71
+
--user string Specifies the user executing the operation. Useful for auditing operations executed by 3rd party tools. Defaults to the operating system username.
70
72
-v, --v Level number for the log level verbosity
71
73
--vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging
--skip_headers If true, avoid header prefixes in the log messages
101
103
--skip_log_headers If true, avoid headers when opening log files
102
104
--stderrthreshold severity logs at or above this threshold go to stderr (default 2)
105
+
--user string Specifies the user executing the operation. Useful for auditing operations executed by 3rd party tools. Defaults to the operating system username.
103
106
-v, --v Level number for the log level verbosity
104
107
--vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging
--skip_headers If true, avoid header prefixes in the log messages
134
137
--skip_log_headers If true, avoid headers when opening log files
135
138
--stderrthreshold severity logs at or above this threshold go to stderr (default 2)
139
+
--user string Specifies the user executing the operation. Useful for auditing operations executed by 3rd party tools. Defaults to the operating system username.
136
140
-v, --v Level number for the log level verbosity
137
141
--vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging
138
142
```
@@ -167,6 +171,7 @@ minikube addons help [command] [flags]
167
171
--skip_headers If true, avoid header prefixes in the log messages
168
172
--skip_log_headers If true, avoid headers when opening log files
169
173
--stderrthreshold severity logs at or above this threshold go to stderr (default 2)
174
+
--user string Specifies the user executing the operation. Useful for auditing operations executed by 3rd party tools. Defaults to the operating system username.
170
175
-v, --v Level number for the log level verbosity
171
176
--vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging
172
177
```
@@ -206,6 +211,7 @@ minikube addons list [flags]
206
211
--skip_headers If true, avoid header prefixes in the log messages
207
212
--skip_log_headers If true, avoid headers when opening log files
208
213
--stderrthreshold severity logs at or above this threshold go to stderr (default 2)
214
+
--user string Specifies the user executing the operation. Useful for auditing operations executed by 3rd party tools. Defaults to the operating system username.
209
215
-v, --v Level number for the log level verbosity
210
216
--vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging
211
217
```
@@ -249,6 +255,7 @@ minikube addons open ADDON_NAME [flags]
249
255
--skip_headers If true, avoid header prefixes in the log messages
250
256
--skip_log_headers If true, avoid headers when opening log files
251
257
--stderrthreshold severity logs at or above this threshold go to stderr (default 2)
258
+
--user string Specifies the user executing the operation. Useful for auditing operations executed by 3rd party tools. Defaults to the operating system username.
252
259
-v, --v Level number for the log level verbosity
253
260
--vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging
Copy file name to clipboardExpand all lines: site/content/en/docs/commands/cache.md
+6
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,7 @@ Add, delete, or push a local image into minikube
30
30
--skip_headers If true, avoid header prefixes in the log messages
31
31
--skip_log_headers If true, avoid headers when opening log files
32
32
--stderrthreshold severity logs at or above this threshold go to stderr (default 2)
33
+
--user string Specifies the user executing the operation. Useful for auditing operations executed by 3rd party tools. Defaults to the operating system username.
33
34
-v, --v Level number for the log level verbosity
34
35
--vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging
35
36
```
@@ -63,6 +64,7 @@ minikube cache add [flags]
63
64
--skip_headers If true, avoid header prefixes in the log messages
64
65
--skip_log_headers If true, avoid headers when opening log files
65
66
--stderrthreshold severity logs at or above this threshold go to stderr (default 2)
67
+
--user string Specifies the user executing the operation. Useful for auditing operations executed by 3rd party tools. Defaults to the operating system username.
66
68
-v, --v Level number for the log level verbosity
67
69
--vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging
68
70
```
@@ -96,6 +98,7 @@ minikube cache delete [flags]
96
98
--skip_headers If true, avoid header prefixes in the log messages
97
99
--skip_log_headers If true, avoid headers when opening log files
98
100
--stderrthreshold severity logs at or above this threshold go to stderr (default 2)
101
+
--user string Specifies the user executing the operation. Useful for auditing operations executed by 3rd party tools. Defaults to the operating system username.
99
102
-v, --v Level number for the log level verbosity
100
103
--vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging
101
104
```
@@ -130,6 +133,7 @@ minikube cache help [command] [flags]
130
133
--skip_headers If true, avoid header prefixes in the log messages
131
134
--skip_log_headers If true, avoid headers when opening log files
132
135
--stderrthreshold severity logs at or above this threshold go to stderr (default 2)
136
+
--user string Specifies the user executing the operation. Useful for auditing operations executed by 3rd party tools. Defaults to the operating system username.
133
137
-v, --v Level number for the log level verbosity
134
138
--vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging
135
139
```
@@ -170,6 +174,7 @@ minikube cache list [flags]
170
174
--skip_headers If true, avoid header prefixes in the log messages
171
175
--skip_log_headers If true, avoid headers when opening log files
172
176
--stderrthreshold severity logs at or above this threshold go to stderr (default 2)
177
+
--user string Specifies the user executing the operation. Useful for auditing operations executed by 3rd party tools. Defaults to the operating system username.
173
178
-v, --v Level number for the log level verbosity
174
179
--vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging
175
180
```
@@ -203,6 +208,7 @@ minikube cache reload [flags]
203
208
--skip_headers If true, avoid header prefixes in the log messages
204
209
--skip_log_headers If true, avoid headers when opening log files
205
210
--stderrthreshold severity logs at or above this threshold go to stderr (default 2)
211
+
--user string Specifies the user executing the operation. Useful for auditing operations executed by 3rd party tools. Defaults to the operating system username.
206
212
-v, --v Level number for the log level verbosity
207
213
--vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging
--skip_headers If true, avoid header prefixes in the log messages
56
56
--skip_log_headers If true, avoid headers when opening log files
57
57
--stderrthreshold severity logs at or above this threshold go to stderr (default 2)
58
+
--user string Specifies the user executing the operation. Useful for auditing operations executed by 3rd party tools. Defaults to the operating system username.
58
59
-v, --v Level number for the log level verbosity
59
60
--vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging
0 commit comments