Skip to content

Commit

Permalink
Update deploy/kube elastic agent templates (add cronjob) (#279) (#280)
Browse files Browse the repository at this point in the history
* update changes

* changelog

(cherry picked from commit e80913a)

Co-authored-by: Mariana Dima <[email protected]>
  • Loading branch information
mergify[bot] and narph authored Apr 1, 2022
1 parent 9e048cd commit 6e9037f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 8 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -178,3 +178,4 @@
- Agent can be built for `darwin/arm64`. When it's built for both `darwin/arm64` and `darwin/adm64` a universal binary is also built and packaged. {pull}203[203]
- Add support for Cloudbeat. {pull}179[179]
- Fix download verification in snapshot builds. {issue}252[252]
- Add support for kubernetes cronjobs {pull}279[279]
3 changes: 1 addition & 2 deletions deploy/kubernetes/elastic-agent-managed-kubernetes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,7 @@ rules:
- apiGroups: [ "batch" ]
resources:
- jobs
# Uncomment if need metadata for cronjob objects in versions >= v1.21
#- cronjobs
- cronjobs
verbs: [ "get", "list", "watch" ]
# required for apiserver
- nonResourceURLs:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ rules:
- apiGroups: [ "batch" ]
resources:
- jobs
# Uncomment if need metadata for cronjob objects in versions >= v1.21
#- cronjobs
- cronjobs
verbs: [ "get", "list", "watch" ]
# required for apiserver
- nonResourceURLs:
Expand Down
3 changes: 1 addition & 2 deletions deploy/kubernetes/elastic-agent-standalone-kubernetes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -733,8 +733,7 @@ rules:
- apiGroups: ["batch"]
resources:
- jobs
# Uncomment if need metadata for cronjob objects in versions >= v1.21
#- cronjobs
- cronjobs
verbs: ["get", "list", "watch"]
- apiGroups:
- ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ rules:
- apiGroups: ["batch"]
resources:
- jobs
# Uncomment if need metadata for cronjob objects in versions >= v1.21
#- cronjobs
- cronjobs
verbs: ["get", "list", "watch"]
- apiGroups:
- ""
Expand Down

0 comments on commit 6e9037f

Please sign in to comment.