执行命令如下 helm upgrade –install -n kubesphere-system –create-namespace ks-core https://charts.kubesphere.io/main/ks-core-1.1.4.tgz –debug –wait –set global.imageRegistry=swr.cn-southwest-2.myhuaweicloud.com/ks –set extension.imageRegistry=swr.cn-southwest-2.myhuaweicloud.com/ks
报错
upgrade.go:466: [debug] warning: Upgrade “ks-core” failed: failed to create resource: Repository.kubesphere.io “extensions-museum” is invalid: status.lastSyncTime: Invalid value: “null”: status.lastSyncTime in body must be of type string: “null”
Error: UPGRADE FAILED: failed to create resource: Repository.kubesphere.io “extensions-museum” is invalid: status.lastSyncTime: Invalid value: “null”: status.lastSyncTime in body must be of type string: “null”
helm.go:84: [debug] Repository.kubesphere.io “extensions-museum” is invalid: status.lastSyncTime: Invalid value: “null”: status.lastSyncTime in body must be of type string: “null”
failed to create resource
helm.sh/helm/v3/pkg/kube.(*Client).Update.func1
helm.sh/helm/v3/pkg/kube/client.go:410
helm.sh/helm/v3/pkg/kube.ResourceList.Visit
helm.sh/helm/v3/pkg/kube/resource.go:32
helm.sh/helm/v3/pkg/kube.(*Client).Update
helm.sh/helm/v3/pkg/kube/client.go:394
helm.sh/helm/v3/pkg/action.(*Upgrade).releasingUpgrade
helm.sh/helm/v3/pkg/action/upgrade.go:408
runtime.goexit
runtime/asm_amd64.s:1598
UPGRADE FAILED
main.newUpgradeCmd.func2
helm.sh/helm/v3/cmd/helm/upgrade.go:229
github.com/spf13/cobra.(*Command).execute
github.com/spf13/cobra@v1.7.0/command.go:940
github.com/spf13/cobra.(*Command).ExecuteC
github.com/spf13/cobra@v1.7.0/command.go:1068
github.com/spf13/cobra.(*Command).Execute
github.com/spf13/cobra@v1.7.0/command.go:992
main.main
helm.sh/helm/v3/cmd/helm/helm.go:83
runtime.main
runtime/proc.go:250
runtime.goexit
runtime/asm_amd64.s:1598