Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/generate/ack/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (

var (
releaseTemplatePaths = []string{
"helm/templates/cluster-role-binding.yaml.tpl",
"helm/Chart.yaml.tpl",
"helm/values.yaml.tpl",
"helm/templates/role-reader.yaml.tpl",
Expand All @@ -31,7 +32,6 @@ var (
releaseIncludePaths = []string{}
releaseCopyPaths = []string{
"helm/templates/_helpers.tpl",
"helm/templates/cluster-role-binding.yaml",
"helm/templates/deployment.yaml",
"helm/templates/metrics-service.yaml",
"helm/templates/service-account.yaml",
Expand Down
5 changes: 2 additions & 3 deletions scripts/build-controller-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ Environment variables:
Default: services/{SERVICE}
ACK_GENERATE_IMAGE_REPOSITORY: Specify a Docker image repository to use
for release artifacts
Default: public.ecr.aws/u2r4f3v7/{SERVICE}-controller
Default: public.ecr.aws/aws-controllers-k8s/{SERVICE}-controller
ACK_GENERATE_SERVICE_ACCOUNT_NAME: Name of the Kubernetes Service Account and
Cluster Role to use in Helm chart.
Default: $ACK_GENERATE_SERVICE_ACCOUNT_NAME
Expand Down Expand Up @@ -121,8 +121,7 @@ SERVICE=$(echo "$1" | tr '[:upper:]' '[:lower:]')
DEFAULT_SERVICE_CONTROLLER_SOURCE_PATH="$ROOT_DIR/../$SERVICE-controller"
SERVICE_CONTROLLER_SOURCE_PATH=${SERVICE_CONTROLLER_SOURCE_PATH:-$DEFAULT_SERVICE_CONTROLLER_SOURCE_PATH}

# TODO(vijat@): replace "u2r4f3v7" with aws-controllers-k8s
DEFAULT_IMAGE_REPOSITORY="public.ecr.aws/u2r4f3v7/$SERVICE-controller"
DEFAULT_IMAGE_REPOSITORY="public.ecr.aws/aws-controllers-k8s/$SERVICE-controller"
ACK_GENERATE_IMAGE_REPOSITORY=${ACK_GENERATE_IMAGE_REPOSITORY:-"$DEFAULT_IMAGE_REPOSITORY"}

if [[ ! -d $SERVICE_CONTROLLER_SOURCE_PATH ]]; then
Expand Down
12 changes: 0 additions & 12 deletions templates/helm/templates/cluster-role-binding.yaml

This file was deleted.

12 changes: 12 additions & 0 deletions templates/helm/templates/cluster-role-binding.yaml.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: {{ "{{ include \"app.fullname\" . }}" }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: ack-{{ .ServiceIDClean }}-controller
subjects:
- kind: ServiceAccount
name: {{ "{{ include \"service-account.name\" . }}" }}
namespace: {{ "{{ .Release.Namespace }}" }}