Skip to content

Commit 7f97d5a

Browse files
Add k8s cron job import command (#2522)
--------- Co-authored-by: Sri Ramanujam <[email protected]>
1 parent 310648c commit 7f97d5a

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

docs/resources/cron_job.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2363,3 +2363,10 @@ resource "kubernetes_cron_job" "demo" {
23632363
}
23642364
}
23652365
```
2366+
2367+
2368+
## Import
2369+
2370+
```
2371+
$ terraform import kubernetes_cron_job_v1/example default/example
2372+
```

templates/resources/cron_job.md.tmpl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,10 @@ Note: All CronJob `schedule` times are based on the timezone of the master where
2020
## Example Usage
2121

2222
{{tffile "examples/resources/cron_job/example_1.tf"}}
23+
24+
25+
## Import
26+
27+
```
28+
$ terraform import kubernetes_corn_job_v1/example default/example
29+
```

0 commit comments

Comments
 (0)