kubernetes/kops · error
parsing ConfigStore.Base %q: %w
Error message
parsing ConfigStore.Base %q: %w
What it means
Wraps vfsContext.BuildVfsPath failure while parsing the ConfigStore.Base URL to extract the Azure storage account name. Fires when the config base string is not a parseable VFS path (bad scheme, malformed azureblob:// URL).
Source
Thrown at upup/pkg/fi/cloudup/defaults.go:177
if err != nil {
return err
}
klog.Infof("Found storage account %q", *sa.ID)
c.Spec.CloudProvider.Azure.StorageAccountID = *sa.ID
}
return ensureKubernetesVersion(vfsContext, c)
}
// azureStorageAccountFromConfigStore extracts the Azure storage account
// from an azureblob:// ConfigStore.Base.
func azureStorageAccountFromConfigStore(vfsContext *vfs.VFSContext, configBase string) (string, error) {
if configBase == "" {
return "", fmt.Errorf("ConfigStore.Base is not set; cannot determine Azure storage account")
}
p, err := vfsContext.BuildVfsPath(configBase)
if err != nil {
return "", fmt.Errorf("parsing ConfigStore.Base %q: %w", configBase, err)
}
azurePath, ok := p.(*vfs.AzureBlobPath)
if !ok {
return "", fmt.Errorf("expected azureblob:// ConfigStore.Base for Azure cluster, got %q", configBase)
}
return azurePath.Account(), nil
}
// ensureKubernetesVersion populates KubernetesVersion, if it is not already set
// It will be populated with the latest stable kubernetes version, or the version from the channel
func ensureKubernetesVersion(vfsContext *vfs.VFSContext, c *kops.Cluster) error {
if c.Spec.KubernetesVersion == "" {
if c.Spec.Channel != "" {
channel, err := kops.LoadChannel(vfsContext, c.Spec.Channel)
if err != nil {
return err
}
kubernetesVersion := kops.RecommendedKubernetesVersion(channel, kopsversion.Version)View on GitHub (pinned to 4c8573c808)
Solutions
- Correct the config base to a well-formed azureblob://<container>/... URL
- Check for typos in the --state flag
- Re-run the operation after fixing the state path
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at upup/pkg/fi/cloudup/defaults.go:177 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of kubernetes/kops@4c8573c808 (2026-09-05).
Data as JSON: /api/errors/a7d0c8354004250a.
Report an issue: GitHub.