Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error while getting serviceaccount for crossplane #49

Open
roynilanjan opened this issue May 20, 2023 · 2 comments
Open

error while getting serviceaccount for crossplane #49

roynilanjan opened this issue May 20, 2023 · 2 comments

Comments

@roynilanjan
Copy link

Hi,
I am following this tutorial - https://github.com/salaboy/from-monolith-to-k8s/blob/main/platform/crossplane-dapr/pre-requisites.md
In the step - Getting providers credentials:

SA=$(kubectl -n crossplane-system get sa -o name | grep provider-kubernetes | sed -e 's|serviceaccount/|crossplane-system:|g')
kubectl create clusterrolebinding provider-kubernetes-admin-binding --clusterrole cluster-admin --serviceaccount="${SA}"
I am getting the following error :
error: serviceaccount must be :

However when I run this :
kubectl -n crossplane-system get sa -o name :
I get the following output :
serviceaccount/default
serviceaccount/crossplane
serviceaccount/rbac-manager
I am running it on k3s and all the pods in crossplane-system are running.
Can you share some help ?

Thanks

@mickdelaney
Copy link

@roynilanjan did u figure it out ?
i'm having the same problem.

@mickdelaney
Copy link

ok, the issue was when installing the current crossplane-contrib provider helm you should use yml like this.

apiVersion: pkg.crossplane.io/v1
kind: Provider
metadata:
  name: provider-helm
spec:
  package: "crossplanecontrib/provider-helm:master"

then you can follow the steps as normal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants