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
// EnsureInitialized checks that the necessary custom resource definitions
146
+
// exist in the backend. This usually passes when using etcd
147
+
// as a backend but can often fail when using KDD as it relies
148
+
// on various custom resources existing.
149
+
// To ensure the datastore is initialized, this function checks that a
150
+
// known custom resource is defined: GlobalFelixConfig. It accomplishes this
151
+
// by trying to set the ClusterType (an instance of GlobalFelixConfig).
145
152
func (c*KubeClient) EnsureInitialized() error {
146
-
// Ensure ClusterType is set.
147
-
log.Info("Ensuring ClusterType is set")
153
+
log.Info("Ensuring datastore has been initialized.")
148
154
err:=c.waitForClusterType()
149
155
iferr!=nil {
150
-
returnfmt.Errorf("Failed to ensure ClusterType is set: %s", err)
156
+
returnfmt.Errorf("Failed to ensure datastore has been initialized: \"%s\". Make sure the Custom Resource Definitions have been created and Calico has been authorized to access them.", err)
151
157
}
152
-
log.Info("ClusterType is set")
158
+
log.Info("Confirmed datastore has been initialized.")
0 commit comments