diff --git a/changelog/v0.7.1/sanitize.yaml b/changelog/v0.6.2/sanitize.yaml similarity index 100% rename from changelog/v0.7.1/sanitize.yaml rename to changelog/v0.6.2/sanitize.yaml diff --git a/changelog/v0.6.3/structured-cron-job.yaml b/changelog/v0.6.3/structured-cron-job.yaml new file mode 100644 index 0000000..09d0b87 --- /dev/null +++ b/changelog/v0.6.3/structured-cron-job.yaml @@ -0,0 +1,3 @@ +changelog: + - type: NON_USER_FACING + description: Add "CronJob" to the list of unstructured resources that can be converted to structured. \ No newline at end of file diff --git a/installutils/kuberesource/unstructured.go b/installutils/kuberesource/unstructured.go index 4cfbd2f..951d514 100644 --- a/installutils/kuberesource/unstructured.go +++ b/installutils/kuberesource/unstructured.go @@ -166,6 +166,8 @@ func ConvertUnstructured(res *unstructured.Unstructured) (runtime.Object, error) obj = &rbac.RoleBinding{TypeMeta: typeMeta} case "Job": obj = &batch.Job{TypeMeta: typeMeta} + case "CronJob": + obj = &batch.CronJob{TypeMeta: typeMeta} case "ConfigMap": obj = &core.ConfigMap{TypeMeta: typeMeta} case "Service":