Fix expected CIC status message on non-hosted control planes
This commit is contained in:
parent
9e0195e024
commit
b21b43c654
@ -97,7 +97,7 @@ func (c *createrController) Sync(ctx controllerlib.Context) error {
|
|||||||
*c.credentialIssuerConfigLocationConfig,
|
*c.credentialIssuerConfigLocationConfig,
|
||||||
c.clock,
|
c.clock,
|
||||||
c.pinnipedAPIClient,
|
c.pinnipedAPIClient,
|
||||||
constable.Error("Controller manager pod(s) could not be found"),
|
constable.Error("did not find kube-controller-manager pod(s)"),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -431,7 +431,7 @@ func TestCreaterControllerSync(t *testing.T) {
|
|||||||
Type: configv1alpha1.KubeClusterSigningCertificateStrategyType,
|
Type: configv1alpha1.KubeClusterSigningCertificateStrategyType,
|
||||||
Status: configv1alpha1.ErrorStrategyStatus,
|
Status: configv1alpha1.ErrorStrategyStatus,
|
||||||
Reason: configv1alpha1.CouldNotFetchKeyStrategyReason,
|
Reason: configv1alpha1.CouldNotFetchKeyStrategyReason,
|
||||||
Message: "Controller manager pod(s) could not be found",
|
Message: "did not find kube-controller-manager pod(s)",
|
||||||
LastUpdateTime: metav1.NewTime(frozenNow),
|
LastUpdateTime: metav1.NewTime(frozenNow),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@ -509,7 +509,7 @@ func TestCreaterControllerSync(t *testing.T) {
|
|||||||
Type: configv1alpha1.KubeClusterSigningCertificateStrategyType,
|
Type: configv1alpha1.KubeClusterSigningCertificateStrategyType,
|
||||||
Status: configv1alpha1.ErrorStrategyStatus,
|
Status: configv1alpha1.ErrorStrategyStatus,
|
||||||
Reason: configv1alpha1.CouldNotFetchKeyStrategyReason,
|
Reason: configv1alpha1.CouldNotFetchKeyStrategyReason,
|
||||||
Message: "Controller manager pod(s) could not be found",
|
Message: "did not find kube-controller-manager pod(s)",
|
||||||
LastUpdateTime: metav1.NewTime(frozenNow),
|
LastUpdateTime: metav1.NewTime(frozenNow),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -59,7 +59,7 @@ func TestCredentialIssuerConfig(t *testing.T) {
|
|||||||
} else {
|
} else {
|
||||||
require.Equal(t, configv1alpha1.ErrorStrategyStatus, actualStatusStrategy.Status)
|
require.Equal(t, configv1alpha1.ErrorStrategyStatus, actualStatusStrategy.Status)
|
||||||
require.Equal(t, configv1alpha1.CouldNotFetchKeyStrategyReason, actualStatusStrategy.Reason)
|
require.Equal(t, configv1alpha1.CouldNotFetchKeyStrategyReason, actualStatusStrategy.Reason)
|
||||||
require.Contains(t, actualStatusStrategy.Message, "did not find kube-controller-manager pod")
|
require.Contains(t, actualStatusStrategy.Message, "did not find kube-controller-manager pod(s)")
|
||||||
// For now, don't verify the kube config info because its not available on GKE. We'll need to address
|
// For now, don't verify the kube config info because its not available on GKE. We'll need to address
|
||||||
// this somehow once we starting supporting those cluster types.
|
// this somehow once we starting supporting those cluster types.
|
||||||
// Require `nil` to remind us to address this later for other types of clusters where it is available.
|
// Require `nil` to remind us to address this later for other types of clusters where it is available.
|
||||||
|
Loading…
Reference in New Issue
Block a user