Merge pull request #16473 from multi-io/local-nodeupconfig-segfault

nodeup: error message instead of segfault
This commit is contained in:
Kubernetes Prow Robot 2024-04-18 03:13:53 -07:00 committed by GitHub
commit 4dd96a21b3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -209,7 +209,7 @@ func (c *NodeUpCommand) Run(out io.Writer) error {
var keyStore fi.KeystoreReader
if nodeConfig != nil {
modelContext.SecretStore = configserver.NewSecretStore(nodeConfig.NodeSecrets)
} else if nodeupConfig.ConfigStore.Secrets != "" {
} else if nodeupConfig.ConfigStore != nil && nodeupConfig.ConfigStore.Secrets != "" {
klog.Infof("Building SecretStore at %q", nodeupConfig.ConfigStore.Secrets)
p, err := vfs.Context.BuildVfsPath(nodeupConfig.ConfigStore.Secrets)
if err != nil {