Skip to content

Commit 8d3909d

Browse files
authored
V0.6.x ConvertUnstructured cronjob (#50)
* Update unstructured.go * changelogs * Rerun ci
1 parent bd5031e commit 8d3909d

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed
File renamed without changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
changelog:
2+
- type: NON_USER_FACING
3+
description: Add "CronJob" to the list of unstructured resources that can be converted to structured.

installutils/kuberesource/unstructured.go

+2
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,8 @@ func ConvertUnstructured(res *unstructured.Unstructured) (runtime.Object, error)
166166
obj = &rbac.RoleBinding{TypeMeta: typeMeta}
167167
case "Job":
168168
obj = &batch.Job{TypeMeta: typeMeta}
169+
case "CronJob":
170+
obj = &batch.CronJob{TypeMeta: typeMeta}
169171
case "ConfigMap":
170172
obj = &core.ConfigMap{TypeMeta: typeMeta}
171173
case "Service":

0 commit comments

Comments
 (0)