mirror of
https://github.com/replicatedhq/troubleshoot.git
synced 2026-09-03 00:47:17 +00:00
fix: Use correct cron job kind when discovering API versions (#1554)
* fix: Use correct cron job kind when discovering API versions * Fix failing e2e test
This commit is contained in:
@@ -801,7 +801,7 @@ func jobs(ctx context.Context, client *kubernetes.Clientset, namespaces []string
|
||||
}
|
||||
|
||||
func cronJobs(ctx context.Context, client *kubernetes.Clientset, namespaces []string) (map[string][]byte, map[string]string) {
|
||||
ok, err := discovery.HasResource(client, "batch/v1", "CronJobs")
|
||||
ok, err := discovery.HasResource(client, "batch/v1", "CronJob")
|
||||
if err != nil {
|
||||
return nil, map[string]string{"": err.Error()}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,6 @@ func TestClusterResources(t *testing.T) {
|
||||
"pvs.json",
|
||||
"pod-disruption-budgets-errors.json",
|
||||
"resources.json",
|
||||
"cronjobs-errors.json",
|
||||
"custom-resource-definitions.json",
|
||||
"groups.json",
|
||||
"priorityclasses.json",
|
||||
@@ -38,6 +37,7 @@ func TestClusterResources(t *testing.T) {
|
||||
},
|
||||
{
|
||||
paths: []string{
|
||||
"cronjobs",
|
||||
"limitranges",
|
||||
"daemonsets",
|
||||
"deployments",
|
||||
|
||||
Reference in New Issue
Block a user