Skip to content

Commit

Permalink
Add rbac for eks aws-auth configmap (#840)
Browse files Browse the repository at this point in the history
* Add rbac for eks aws-auth configmap

* update changelog
  • Loading branch information
jinja2 authored Jul 11, 2023
1 parent 70fb9d3 commit 81ed9e1
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
### Added

- Update PodDisruptionBudgets API version to allow both `policy/v1beta1` and `policy/v1` [#835](https://github.com/signalfx/splunk-otel-collector-chart/pull/835)
- Update clusterrole to allow collector to check for the `aws-auth` configmap in EKS clusters [#840](https://github.com/signalfx/splunk-otel-collector-chart/pull/840)

## [0.80.0] - 2023-06-27

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,11 @@ rules:
- nodes
verbs:
- patch
- apiGroups:
- ""
resources:
- configmaps
verbs:
- get
resourceNames:
- aws-auth
8 changes: 8 additions & 0 deletions examples/distribution-eks/rendered_manifests/clusterRole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,11 @@ rules:
- get
- list
- watch
- apiGroups:
- ""
resources:
- configmaps
verbs:
- get
resourceNames:
- aws-auth
10 changes: 10 additions & 0 deletions helm-charts/splunk-otel-collector/templates/clusterRole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,16 @@ rules:
verbs:
- patch
{{- end }}
{{- if hasPrefix "eks" (include "splunk-otel-collector.distribution" .) }}
- apiGroups:
- ""
resources:
- configmaps
verbs:
- get
resourceNames:
- aws-auth
{{- end }}
{{- with .Values.rbac.customRules }}
{{ toYaml . }}
{{- end }}
Expand Down

0 comments on commit 81ed9e1

Please sign in to comment.