Skip to content

Commit

Permalink
Fix casing on EKS related variables
Browse files Browse the repository at this point in the history
  • Loading branch information
justin-lesko committed Feb 3, 2025
1 parent 752d211 commit 1be9114
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ func getDefaultAgentClusterRolePolicyRules(excludeNonResourceRules bool) []rbacv

func getEksControlPlaneMetricsPolicyRule() rbacv1.PolicyRule {
return rbacv1.PolicyRule{
APIGroups: []string{rbac.EksMetricsApiGroup},
APIGroups: []string{rbac.EKSMetricsAPIGroup},
Resources: []string{
rbac.EksKubeControllerManagerMetrics,
rbac.EksKubeSchedulerMetrics,
rbac.EKSKubeControllerManagerMetrics,
rbac.EKSKubeSchedulerMetrics,
},
Verbs: []string{
rbac.GetVerb,
Expand Down
6 changes: 3 additions & 3 deletions pkg/kubernetes/rbac/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const (
RbacAPIGroup = "rbac.authorization.k8s.io"
RegistrationAPIGroup = "apiregistration.k8s.io"
StorageAPIGroup = "storage.k8s.io"
EksMetricsApiGroup = "metrics.eks.amazonaws.com"
EKSMetricsAPIGroup = "metrics.eks.amazonaws.com"

// Resources

Expand Down Expand Up @@ -86,8 +86,8 @@ const (
VolumeAttachments = "volumeattachments"
VPAResource = "verticalpodautoscalers"
WpaResource = "watermarkpodautoscalers"
EksKubeControllerManagerMetrics = "kcm/metrics"
EksKubeSchedulerMetrics = "ksh/metrics"
EKSKubeControllerManagerMetrics = "kcm/metrics"
EKSKubeSchedulerMetrics = "ksh/metrics"
// Non resource URLs

HealthzURL = "/healthz"
Expand Down

0 comments on commit 1be9114

Please sign in to comment.