Skip to content

Commit

Permalink
update README.md, remove unused env (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
nnmin-aws authored Jun 13, 2024
1 parent 607f061 commit e44e5d3
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 44 deletions.
29 changes: 2 additions & 27 deletions charts/eks-pod-identity-agent/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,8 @@ This agent is required for EKS pods to get granular IAM permissions with EKS Pod

## Installing the Chart

First add the EKS repository to Helm:

```shell
helm repo add eks https://aws.github.io/eks-charts
```

To install the chart with the release name `eks-pod-identity-agent` and default configuration:

```shell
$ helm install eks-pod-identity-agent --namespace kube-system eks/eks-pod-identity-agent
```

To install manually, clone the repository to your local machine.
Then, use the helm install command to install the chart into your Kubernetes cluster:

```shell
$ helm install eks-pod-identity-agent --namespace kube-system ./charts/eks-pod-identity-agent
$ helm install eks-pod-identity-agent --namespace kube-system ./charts/eks-pod-identity-agent --values ./charts/eks-pod-identity-agent/values.yaml
```

To uninstall:
Expand Down Expand Up @@ -63,14 +48,4 @@ The following table lists the configurable parameters for this chart and their d
| `updateStrategy` | Optional update strategy | `type: RollingUpdate` |

Specify each parameter using the `--set key=value[,key=value]` argument to `helm install` or provide a YAML file
containing the values for the above parameters:

```shell
$ helm install eks-pod-identity-agent --namespace kube-system eks/eks-pod-identity-agent --values values.yaml
```

Manual install:

```shell
$ helm install eks-pod-identity-agent --namespace kube-system ./charts/eks-pod-identity-agent --values values.yaml
```
containing the values for the above parameters.
11 changes: 0 additions & 11 deletions charts/eks-pod-identity-agent/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,4 @@ The eks-pod-identity-agent image to use
{{- else }}
{{- printf "%s/eks/eks-pod-identity-agent:%s" .Values.image.containerRegistry .Values.image.tag }}
{{- end }}
{{- end }}

{{/*
The eks-auth endpoint to use
*/}}
{{- define "eks-pod-identity-agent.eks-auth-endpoint" -}}
{{ if or (eq "cn-north-1" (.Values.env.AWS_REGION)) (eq "cn-northwest-1" (.Values.env.AWS_REGION)) }}
{{- printf "https://%s.%s.auth.eks.a2z.org.cn" (lower .Values.eksStageName) .Values.env.AWS_REGION }}
{{- else }}
{{- printf "https://%s.%s.auth.eks.aws.dev" (lower .Values.eksStageName) .Values.env.AWS_REGION }}
{{- end }}
{{- end }}
4 changes: 0 additions & 4 deletions charts/eks-pod-identity-agent/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,6 @@ spec:
- {{ .Values.clusterName | quote }}
- "--probe-port"
- {{ .Values.agent.probePort | quote }}
{{- if or (eq "beta" (lower .Values.eksStageName)) (eq "gamma" (lower .Values.eksStageName)) }}
- "--endpoint"
- {{ include "eks-pod-identity-agent.eks-auth-endpoint" . | quote }}
{{- end }}
{{- range $key, $value := .Values.agent.additionalArgs }}
- {{ $key | quote }}
- {{ $value | quote }}
Expand Down
2 changes: 0 additions & 2 deletions charts/eks-pod-identity-agent/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ agent:

clusterName: EKS_CLUSTER_NAME

eksStageName: EKS_STAGE_NAME

env:
AWS_REGION: AWS_REGION_NAME

Expand Down

0 comments on commit e44e5d3

Please sign in to comment.