diff --git a/charts/kubeadm/templates/aws-iam-authenticator/deployment.yaml b/charts/kubeadm/templates/aws-iam-authenticator/deployment.yaml index 968e78ee..6d6d235c 100644 --- a/charts/kubeadm/templates/aws-iam-authenticator/deployment.yaml +++ b/charts/kubeadm/templates/aws-iam-authenticator/deployment.yaml @@ -151,3 +151,14 @@ spec: - name: state hostPath: path: /var/aws-iam-authenticator/ +--- +apiVersion: iamauthenticator.k8s.aws/v1alpha1 +kind: IAMIdentityMapping +metadata: + name: kubernetes-admin +spec: + # Arn of the User or Role to be allowed to authenticate + arn: {{ .Values.kubeAdminRole }} + username: kubernetes-admin + groups: + - system:masters diff --git a/scripts/update_helm.sh b/scripts/update_helm.sh index 50abd1c5..4ded25b5 100755 --- a/scripts/update_helm.sh +++ b/scripts/update_helm.sh @@ -13,6 +13,7 @@ do then echo "Processing chart dependencies" rm -rf $dir/tmpcharts + rm -rf $dir/charts/*.tgz helm dependency update --skip-refresh $dir fi