Skip to content

Commit

Permalink
[Libbeat]Kubernetes: fix statefulset watcher typo (elastic#13905)
Browse files Browse the repository at this point in the history
* fix statefulset watcher typo
  • Loading branch information
Pablo Mercado authored Oct 4, 2019
1 parent e40fbdd commit 0bb9778
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d
- Better wording for xpack beats when the _xpack endpoint is not reachable. {pull}13771[13771]
- Recover from panics in the javascript process and log details about the failure to aid in future debugging. {pull}13690[13690]
- Make the script processor concurrency-safe. {issue}13690[13690] {pull}13857[13857]
- Kubernetes watcher at `add_kubernetes_metadata` fails with StatefulSets {pull}13905[13905]

*Auditbeat*

Expand Down
2 changes: 1 addition & 1 deletion libbeat/common/kubernetes/watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ func NewWatcher(client kubernetes.Interface, resource Resource, opts WatchOption

objType = "replicaset"
case *StatefulSet:
ss := client.AppsV1().ReplicaSets(opts.Namespace)
ss := client.AppsV1().StatefulSets(opts.Namespace)
listwatch = &cache.ListWatch{
ListFunc: func(options metav1.ListOptions) (runtime.Object, error) {
return ss.List(options)
Expand Down

0 comments on commit 0bb9778

Please sign in to comment.