Add "can create cronjobs" to linkerd check
PR introduced a cluster heartbeat cronjob to the Linkerd
installation. This implies the user installing Linkerd requires the
privileges to create CronJobs.
Update `linkerd check` to validate the user has privileges necessary to
create CronJobs.
Fixes
@@ -387,6 +387,13 @@ func (hc *HealthChecker) allCategories() []category {
return hc.checkCanCreate(hc.ControlPlaneNamespace, "extensions", "v1beta1", "deployments")
},
},
+ {
+ description: "can create CronJobs",
+ hintAnchor: "pre-k8s",
+ check: func(context.Context) error {
+ return hc.checkCanCreate(hc.ControlPlaneNamespace, "batch", "v1beta1", "cronjobs")
+ },
+ },
{
description: "can create ConfigMaps",
hintAnchor: "pre-k8s",
