Skip to content

Commit

Permalink
V0.6.x ConvertUnstructured cronjob (#50)
Browse files Browse the repository at this point in the history
* Update unstructured.go

* changelogs

* Rerun ci
  • Loading branch information
sheidkamp authored May 15, 2024
1 parent bd5031e commit 8d3909d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
File renamed without changes.
3 changes: 3 additions & 0 deletions changelog/v0.6.3/structured-cron-job.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
changelog:
- type: NON_USER_FACING
description: Add "CronJob" to the list of unstructured resources that can be converted to structured.
2 changes: 2 additions & 0 deletions installutils/kuberesource/unstructured.go
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down

0 comments on commit 8d3909d

Please sign in to comment.