Skip to content

Commit

Permalink
[create-pull-request] automated change
Browse files Browse the repository at this point in the history
  • Loading branch information
ianedwards authored Feb 9, 2024
1 parent a0b04b8 commit 2b26cb8
Show file tree
Hide file tree
Showing 10 changed files with 307 additions and 234 deletions.
4 changes: 2 additions & 2 deletions addons/apigatewayv2-chart/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v1
name: apigatewayv2-chart
description: A Helm chart for the ACK service controller for Amazon API Gateway (APIGWv2)
version: 1.0.7
appVersion: 1.0.7
version: 1.0.8
appVersion: 1.0.8
home: https://github.com/aws-controllers-k8s/apigatewayv2-controller
icon: https://raw.githubusercontent.com/aws/eks-charts/master/docs/logo/aws.png
sources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,10 @@ spec:
description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
name:
description: 'Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names'
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names'
type: string
uid:
description: 'UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids'
description: 'UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids'
type: string
required:
- apiVersion
Expand Down
2 changes: 1 addition & 1 deletion addons/apigatewayv2-chart/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{ .Chart.Name }} has been installed.
This chart deploys "public.ecr.aws/aws-controllers-k8s/apigatewayv2-controller:1.0.7".
This chart deploys "public.ecr.aws/aws-controllers-k8s/apigatewayv2-controller:1.0.8".

Check its status by running:
kubectl --namespace {{ .Release.Namespace }} get pods -l "app.kubernetes.io/instance={{ .Release.Name }}"
Expand Down
211 changes: 211 additions & 0 deletions addons/apigatewayv2-chart/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,214 @@ If release name contains chart name it will be used as a full name.
{{- define "aws.credentials.path" -}}
{{- printf "%s/%s" (include "aws.credentials.secret_mount_path" .) .Values.aws.credentials.secretKey -}}
{{- end -}}

{{/* The rules a of ClusterRole or Role */}}
{{- define "controller-role-rules" }}
rules:
- apiGroups:
- ""
resources:
- configmaps
verbs:
- get
- list
- patch
- watch
- apiGroups:
- ""
resources:
- namespaces
verbs:
- get
- list
- watch
- apiGroups:
- ""
resources:
- secrets
verbs:
- get
- list
- patch
- watch
- apiGroups:
- apigatewayv2.services.k8s.aws
resources:
- apis
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- apigatewayv2.services.k8s.aws
resources:
- apis/status
verbs:
- get
- patch
- update
- apiGroups:
- apigatewayv2.services.k8s.aws
resources:
- authorizers
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- apigatewayv2.services.k8s.aws
resources:
- authorizers/status
verbs:
- get
- patch
- update
- apiGroups:
- apigatewayv2.services.k8s.aws
resources:
- deployments
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- apigatewayv2.services.k8s.aws
resources:
- deployments/status
verbs:
- get
- patch
- update
- apiGroups:
- apigatewayv2.services.k8s.aws
resources:
- integrations
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- apigatewayv2.services.k8s.aws
resources:
- integrations/status
verbs:
- get
- patch
- update
- apiGroups:
- apigatewayv2.services.k8s.aws
resources:
- routes
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- apigatewayv2.services.k8s.aws
resources:
- routes/status
verbs:
- get
- patch
- update
- apiGroups:
- apigatewayv2.services.k8s.aws
resources:
- stages
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- apigatewayv2.services.k8s.aws
resources:
- stages/status
verbs:
- get
- patch
- update
- apiGroups:
- apigatewayv2.services.k8s.aws
resources:
- vpclinks
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- apigatewayv2.services.k8s.aws
resources:
- vpclinks/status
verbs:
- get
- patch
- update
- apiGroups:
- services.k8s.aws
resources:
- adoptedresources
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- services.k8s.aws
resources:
- adoptedresources/status
verbs:
- get
- patch
- update
- apiGroups:
- services.k8s.aws
resources:
- fieldexports
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- services.k8s.aws
resources:
- fieldexports/status
verbs:
- get
- patch
- update
{{- end }}
26 changes: 26 additions & 0 deletions addons/apigatewayv2-chart/templates/caches-role-binding.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: ack-namespaces-cache-apigatewayv2-controller
roleRef:
kind: ClusterRole
apiGroup: rbac.authorization.k8s.io
name: ack-namespaces-cache-apigatewayv2-controller
subjects:
- kind: ServiceAccount
name: ack-apigatewayv2-controller
namespace: {{ .Release.Namespace }}
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: ack-configmaps-cache-apigatewayv2-controller
namespace: {{ .Release.Namespace }}
roleRef:
kind: Role
apiGroup: rbac.authorization.k8s.io
name: ack-configmaps-cache-apigatewayv2-controller
subjects:
- kind: ServiceAccount
name: ack-apigatewayv2-controller
namespace: {{ .Release.Namespace }}
28 changes: 28 additions & 0 deletions addons/apigatewayv2-chart/templates/caches-role.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: ack-namespaces-cache-apigatewayv2-controller
rules:
- apiGroups:
- ""
resources:
- namespaces
verbs:
- get
- list
- watch
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: ack-configmaps-cache-apigatewayv2-controller
namespace: {{ .Release.Namespace }}
rules:
- apiGroups:
- ""
resources:
- configmaps
verbs:
- get
- list
- watch
28 changes: 21 additions & 7 deletions addons/apigatewayv2-chart/templates/cluster-role-binding.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,35 @@
apiVersion: rbac.authorization.k8s.io/v1
{{ if eq .Values.installScope "cluster" }}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: {{ include "app.fullname" . }}
roleRef:
kind: ClusterRole
{{ else }}
apiGroup: rbac.authorization.k8s.io
name: ack-apigatewayv2-controller
subjects:
- kind: ServiceAccount
name: {{ include "service-account.name" . }}
namespace: {{ .Release.Namespace }}
{{ else if .Values.watchNamespace }}
{{ $namespaces := split "," .Values.watchNamespace }}
{{ $fullname := include "app.fullname" . }}
{{ $releaseNamespace := .Release.Namespace }}
{{ $serviceAccountName := include "service-account.name" . }}
{{ range $namespaces }}
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: {{ include "app.fullname" . }}
namespace: {{ .Release.Namespace }}
name: {{ $fullname }}
namespace: {{ . }}
roleRef:
kind: Role
{{ end }}
apiGroup: rbac.authorization.k8s.io
name: ack-apigatewayv2-controller
subjects:
- kind: ServiceAccount
name: {{ include "service-account.name" . }}
namespace: {{ .Release.Namespace }}
name: {{ $serviceAccountName }}
namespace: {{ $releaseNamespace }}
{{ end }}
{{ end }}
Loading

0 comments on commit 2b26cb8

Please sign in to comment.