Skip to content

Commit 54614ee

Browse files
Add configmap watch and list permission (#35)
Signed-off-by: rasel <rasel@appscode.com> Signed-off-by: Tamal Saha <tamal@appscode.com> Co-authored-by: Tamal Saha <tamal@appscode.com>
1 parent 7b9bec3 commit 54614ee

File tree

9 files changed

+26
-32
lines changed

9 files changed

+26
-32
lines changed

apis/installer/v1alpha1/aws_credential_manager_types.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ type AwsCredentialManagerSpec struct {
8282
ServiceAccount ServiceAccountSpec `json:"serviceAccount"`
8383
Volumes []core.Volume `json:"volumes"`
8484
VolumeMounts []core.VolumeMount `json:"volumeMounts"`
85-
Args []string `json:"args"`
8685
}
8786

8887
type ImageReference struct {

apis/installer/v1alpha1/zz_generated.deepcopy.go

Lines changed: 0 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

catalog/imagelist.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
- ghcr.io/appscode/aws-credential-manager:v0.0.1
1+
- ghcr.io/appscode/aws-credential-manager:v0.0.2
22
- ghcr.io/appscode/capa-vpc-peering-operator:v0.0.4
33
- ghcr.io/appscode/capi-ops-manager:v0.0.5
44
- ghcr.io/appscode/docker-machine-operator:v0.0.4

charts/aws-credential-manager/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ apiVersion: v2
22
name: aws-credential-manager
33
description: A Helm chart for AWS Credential Manager
44
type: application
5-
version: v2025.3.14
6-
appVersion: v0.0.1
5+
version: v2025.4.30
6+
appVersion: v0.0.2
77
home: https://github.com/appscode-cloud
88
icon: https://cdn.appscode.com/images/products/bytebuilders/icons/android-icon-192x192.png
99
sources:

charts/aws-credential-manager/README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
```bash
88
$ helm repo add appscode https://charts.appscode.com/stable
99
$ helm repo update
10-
$ helm search repo appscode/aws-credential-manager --version=v2025.3.14
11-
$ helm upgrade -i aws-credential-manager appscode/aws-credential-manager -n kubeops --create-namespace --version=v2025.3.14
10+
$ helm search repo appscode/aws-credential-manager --version=v2025.4.30
11+
$ helm upgrade -i aws-credential-manager appscode/aws-credential-manager -n kubeops --create-namespace --version=v2025.4.30
1212
```
1313

1414
## Introduction
@@ -24,7 +24,7 @@ This chart deploys a AWS Credential Manager on a [Kubernetes](http://kubernetes.
2424
To install/upgrade the chart with the release name `aws-credential-manager`:
2525

2626
```bash
27-
$ helm upgrade -i aws-credential-manager appscode/aws-credential-manager -n kubeops --create-namespace --version=v2025.3.14
27+
$ helm upgrade -i aws-credential-manager appscode/aws-credential-manager -n kubeops --create-namespace --version=v2025.4.30
2828
```
2929

3030
The command deploys a AWS Credential Manager on the Kubernetes cluster in the default configuration. The [configuration](#configuration) section lists the parameters that can be configured during installation.
@@ -79,18 +79,17 @@ The following table lists the configurable parameters of the `aws-credential-man
7979
| nodeSelector | | <code>{}</code> |
8080
| tolerations | | <code>[]</code> |
8181
| affinity | | <code>{}</code> |
82-
| args | | <code>["irsa"]</code> |
8382

8483

8584
Specify each parameter using the `--set key=value[,key=value]` argument to `helm upgrade -i`. For example:
8685

8786
```bash
88-
$ helm upgrade -i aws-credential-manager appscode/aws-credential-manager -n kubeops --create-namespace --version=v2025.3.14 --set replicaCount=1
87+
$ helm upgrade -i aws-credential-manager appscode/aws-credential-manager -n kubeops --create-namespace --version=v2025.4.30 --set replicaCount=1
8988
```
9089

9190
Alternatively, a YAML file that specifies the values for the parameters can be provided while
9291
installing the chart. For example:
9392

9493
```bash
95-
$ helm upgrade -i aws-credential-manager appscode/aws-credential-manager -n kubeops --create-namespace --version=v2025.3.14 --values values.yaml
94+
$ helm upgrade -i aws-credential-manager appscode/aws-credential-manager -n kubeops --create-namespace --version=v2025.4.30 --values values.yaml
9695
```

charts/aws-credential-manager/templates/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ spec:
3333
image: "{{ include "image.registry" . }}/{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
3434
imagePullPolicy: {{ .Values.image.pullPolicy }}
3535
args:
36-
{{- toYaml .Values.args | nindent 12 }}
36+
- run
3737
- --metrics-bind-address=:8443
3838
- --leader-elect=false
3939
- --health-probe-bind-address=:{{ .Values.service.port }}

charts/aws-credential-manager/templates/rbac.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,22 @@ metadata:
4545
labels:
4646
{{- include "aws-credential-manager.labels" . | nindent 4 }}
4747
rules:
48+
- apiGroups:
49+
- ""
50+
resources:
51+
- configmaps
52+
verbs:
53+
- get
54+
- list
55+
- watch
56+
- apiGroups:
57+
- ""
58+
resources:
59+
- namespaces
60+
verbs:
61+
- get
62+
- list
63+
- watch
4864
- apiGroups:
4965
- ""
5066
resources:

charts/aws-credential-manager/templates/serviceaccount.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
apiVersion: v1
33
kind: ServiceAccount
44
metadata:
5-
name: {{ include "aws-credential-manager.serviceAccountName" . }}
5+
name: aws-credential-manager
66
namespace: {{ .Release.Namespace }}
77
labels:
88
{{- include "aws-credential-manager.labels" . | nindent 4 }}

charts/aws-credential-manager/values.yaml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,19 @@
33
# Declare variables to be passed into your templates.
44

55
replicaCount: 1
6-
76
# Docker registry fqdn used to pull app related images.
87
# Set this to use docker registry hosted at ${registryFQDN}/${registry}/${image}
98
registryFQDN: ghcr.io
10-
119
image:
1210
# Docker registry used to pull app container image
1311
registry: appscode
1412
repository: aws-credential-manager
1513
pullPolicy: IfNotPresent
1614
# Overrides the image tag whose default is the chart appVersion.
1715
tag: ""
18-
1916
imagePullSecrets: []
2017
nameOverride: ""
2118
fullnameOverride: ""
22-
2319
serviceAccount:
2420
# Specifies whether a service account should be created
2521
create: true
@@ -28,10 +24,8 @@ serviceAccount:
2824
# The name of the service account to use.
2925
# If not set and create is true, a name is generated using the fullname template
3026
name: ""
31-
3227
podAnnotations: {}
3328
podLabels: {}
34-
3529
podSecurityContext: {}
3630
# fsGroup: 2000
3731

@@ -44,11 +38,9 @@ securityContext: # +doc-gen:break
4438
runAsUser: 65534
4539
seccompProfile:
4640
type: RuntimeDefault
47-
4841
service:
4942
type: ClusterIP
5043
port: 8081
51-
5244
resources: {}
5345
# We usually recommend not to specify default resources and to leave this as a conscious
5446
# choice for the user. This also increases chances charts run on environments with little
@@ -73,7 +65,6 @@ readinessProbe:
7365
port: http
7466
initialDelaySeconds: 5
7567
periodSeconds: 10
76-
7768
# Additional volumes on the output Deployment definition.
7869
volumes: []
7970
# - name: foo
@@ -88,11 +79,5 @@ volumeMounts: []
8879
# readOnly: true
8980

9081
nodeSelector: {}
91-
9282
tolerations: []
93-
9483
affinity: {}
95-
96-
args: # +doc-gen:break
97-
- irsa
98-

0 commit comments

Comments
 (0)