Skip to content

Conversation

surajkota
Copy link
Member

@surajkota surajkota commented Jul 30, 2021

  • cluster role and role binding name mismatch
  • update controller image location to official public repository

Tested by creating sagemaker controller

Thanks @RedbackThomson for helping out

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@RedbackThomson
Copy link
Contributor

For reference,

was no longer matching https://github.com/aws-controllers-k8s/sagemaker-controller/blob/f5f5e2bfa7756432ae350c3383349ebb47252829/helm/templates/cluster-role-controller.yaml#L7 after we changed the chart name from ack-sagemaker-controller to sagemaker-chart. This PR will hardcode the ClusterRole name to ack-<service>-controller, which matches
K8S_RBAC_ROLE_NAME=${K8S_RBAC_ROLE_NAME:-"ack-$SERVICE-controller"}
.

@RedbackThomson
Copy link
Contributor

Thanks @surajkota !
/lgtm

@ack-bot ack-bot added the lgtm Indicates that a PR is ready to be merged. label Jul 30, 2021
@ack-bot
Copy link
Collaborator

ack-bot commented Jul 30, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: RedbackThomson, surajkota

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@surajkota
Copy link
Member Author

surajkota commented Aug 2, 2021

for reference
cluster role binding name was set to {{ include "app.name" . }} which got changed from ack-$service-controller to $service-charts but controller-gen which generated the cluster-role got the role name as ack-$service-controller from here https://github.com/aws-controllers-k8s/code-generator/blob/main/scripts/build-controller-release.sh#L135

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants