Skip to content

Commit

Permalink
Adapt scrape targets to EKS clusters (#1376)
Browse files Browse the repository at this point in the history
* Adapt scrape targets to EKS clusters

* Refactoring

* Fix test

* Fix isEKSCluster function
  • Loading branch information
marieroque authored Sep 21, 2023
1 parent 9ad013e commit 45578b4
Show file tree
Hide file tree
Showing 25 changed files with 3,831 additions and 24 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

- Adapt scrape targets to EKS clusters.
- computation of number of shards: rely on max number of series over the last 6h.

### Fixed
Expand Down
2 changes: 2 additions & 0 deletions pkg/unittest/input/case-5-cluster-api-v1alpha3.golden
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ spec:
controlPlaneEndpoint:
host: master.baz
port: 443
infrastructureRef:
kind: AWSCluster
13 changes: 13 additions & 0 deletions pkg/unittest/input/case-6-cluster-api-eks.golden
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: cluster.x-k8s.io/v1beta1
kind: Cluster
metadata:
labels:
"release.giantswarm.io/version": 18.0.0
name: eks-sample
namespace: org-my-organization
spec:
controlPlaneEndpoint:
host: master.eks-sample
port: 443
infrastructureRef:
kind: AWSManagedCluster
Loading

0 comments on commit 45578b4

Please sign in to comment.