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
Merge pull request #18546 from deads2k/up-07-routerregistry
Automatic merge from submit-queue (batch tested with PRs 18437, 18546, 18550, 18579).
make oadm router and registry resiliant to missing client
`oc adm router --dry-run -o yaml` (and registry) shouldn't require an apiserver connection. This makes it tolerant for cluster up
Copy file name to clipboardExpand all lines: pkg/oc/admin/registry/registry.go
+25-15
Original file line number
Diff line number
Diff line change
@@ -119,6 +119,7 @@ type RegistryConfig struct {
119
119
120
120
ClusterIPstring
121
121
122
+
Localbool
122
123
// TODO: accept environment values.
123
124
}
124
125
@@ -191,6 +192,7 @@ func NewCmdRegistry(f *clientcmd.Factory, parentName, name string, out, errout i
191
192
cmd.Flags().StringVar(&cfg.FSGroup, "fs-group", "", "Specify fsGroup which is an ID that grants group access to registry block storage")
192
193
cmd.Flags().BoolVar(&cfg.DaemonSet, "daemonset", cfg.DaemonSet, "If true, use a daemonset instead of a deployment config.")
193
194
cmd.Flags().BoolVar(&cfg.EnforceQuota, "enforce-quota", cfg.EnforceQuota, "If true, the registry will refuse to write blobs if they exceed quota limits")
195
+
cmd.Flags().BoolVar(&cfg.Local, "local", cfg.Local, "If true, do not contact the apiserver")
194
196
195
197
cfg.Action.BindForOutput(cmd.Flags())
196
198
cmd.Flags().String("output-version", "", "The preferred API versions of the output objects")
cmd.Flags().StringVar(&cfg.MaxConnections, "max-connections", cfg.MaxConnections, "Specifies the maximum number of concurrent connections. Not supported for F5.")
315
317
cmd.Flags().StringVar(&cfg.Ciphers, "ciphers", cfg.Ciphers, "Specifies the cipher suites to use. You can choose a predefined cipher set ('modern', 'intermediate', or 'old') or specify exact cipher suites by passing a : separated list. Not supported for F5.")
316
318
cmd.Flags().BoolVar(&cfg.StrictSNI, "strict-sni", cfg.StrictSNI, "Use strict-sni bind processing (do not use default cert). Not supported for F5.")
319
+
cmd.Flags().BoolVar(&cfg.Local, "local", cfg.Local, "If true, do not contact the apiserver")
317
320
318
321
cfg.Action.BindForOutput(cmd.Flags())
319
322
cmd.Flags().String("output-version", "", "The preferred API versions of the output objects")
0 commit comments