Skip to content

Commit 0230b47

Browse files
authored
Add the update-auth data option to sink update and sources update (streamnative#728)
* Add the update-auth data option to sink update and sources update * solve copy paste issue
1 parent 6a08024 commit 0230b47

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

pkg/ctl/sinks/update.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,12 @@ func updateSinksCmd(vc *cmdutils.VerbCmd) {
249249
"timeout-ms",
250250
0,
251251
"The message timeout in milliseconds")
252+
253+
flagSet.BoolVar(
254+
&sinkData.UpdateAuthData,
255+
"update-auth-data",
256+
false,
257+
"Whether or not to update the auth data")
252258
})
253259
vc.EnableOutputFlagSet()
254260
}

pkg/ctl/sources/update.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,12 @@ func updateSourcesCmd(vc *cmdutils.VerbCmd) {
209209
"source-config",
210210
"",
211211
"Source config key/values")
212+
213+
flagSet.BoolVar(
214+
&sourceData.UpdateAuthData,
215+
"update-auth-data",
216+
false,
217+
"Whether or not to update the auth data")
212218
})
213219
}
214220

0 commit comments

Comments
 (0)