Skip to content

Commit

Permalink
Merge pull request #210 from haarchri/feature/in-cluster-runtime-config
Browse files Browse the repository at this point in the history
feat(in-cluster): update example to use native crossplane way
  • Loading branch information
turkenh authored Feb 12, 2024
2 parents 6ba133b + 6af04e9 commit dce5991
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 5 deletions.
6 changes: 1 addition & 5 deletions examples/provider-config/provider-config-incluster.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
# Make sure provider-helm has enough permissions to install your chart into cluster
#
# You can give admin permissions by running:
# SA=$(kubectl -n crossplane-system get sa -o name | grep provider-helm | sed -e 's|serviceaccount\/|crossplane-system:|g')
# kubectl create clusterrolebinding provider-helm-admin-binding --clusterrole cluster-admin --serviceaccount="${SA}"
## check provider-incluster.yaml for grant access
apiVersion: helm.crossplane.io/v1beta1
kind: ProviderConfig
metadata:
Expand Down
32 changes: 32 additions & 0 deletions examples/provider-config/provider-incluster.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
apiVersion: pkg.crossplane.io/v1
kind: Provider
metadata:
name: provider-helm
spec:
package: xpkg.upbound.io/crossplane-contrib/provider-helm:v0.16.0
runtimeConfigRef:
apiVersion: pkg.crossplane.io/v1beta1
kind: DeploymentRuntimeConfig
name: provider-helm
---
apiVersion: pkg.crossplane.io/v1beta1
kind: DeploymentRuntimeConfig
metadata:
name: provider-helm
spec:
serviceAccountTemplate:
metadata:
name: provider-helm
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: provider-helm-cluster-admin
subjects:
- kind: ServiceAccount
name: provider-helm
namespace: crossplane-system
roleRef:
kind: ClusterRole
name: cluster-admin
apiGroup: rbac.authorization.k8s.io

0 comments on commit dce5991

Please sign in to comment.