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
28 changes: 28 additions & 0 deletions bootstrap/drc/helm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Per-provider DeploymentRuntimeConfig for provider-helm (local dev).
#
# Each provider gets its OWN uniquely-named DRC + cluster-admin ServiceAccount.
# Providers must NOT share a DRC: a shared runtime config lets one provider's
# image/SA silently clobber the other's pod (and makes drift impossible to
# attribute). This mirrors the per-provider DRCs the
# crossplane-helm-provider-stack composes for remote clusters.
apiVersion: pkg.crossplane.io/v1beta1
kind: DeploymentRuntimeConfig
metadata:
name: local-dev-helm
spec:
serviceAccountTemplate:
metadata:
name: local-dev-helm
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: local-dev-helm-cluster-admin
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin
subjects:
- kind: ServiceAccount
name: local-dev-helm
namespace: crossplane-system
28 changes: 28 additions & 0 deletions bootstrap/drc/kubernetes.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Per-provider DeploymentRuntimeConfig for provider-kubernetes (local dev).
#
# Each provider gets its OWN uniquely-named DRC + cluster-admin ServiceAccount.
# Providers must NOT share a DRC: a shared runtime config lets one provider's
# image/SA silently clobber the other's pod (and makes drift impossible to
# attribute). This mirrors the per-provider DRCs the
# crossplane-kubernetes-provider-stack composes for remote clusters.
apiVersion: pkg.crossplane.io/v1beta1
kind: DeploymentRuntimeConfig
metadata:
name: local-dev-kubernetes
spec:
serviceAccountTemplate:
metadata:
name: local-dev-kubernetes
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: local-dev-kubernetes-cluster-admin
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin
subjects:
- kind: ServiceAccount
name: local-dev-kubernetes
namespace: crossplane-system
21 changes: 0 additions & 21 deletions bootstrap/drc/local-dev.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion bootstrap/providers/provider-helm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ metadata:
spec:
package: xpkg.crossplane.io/crossplane-contrib/provider-helm:v1.1.0
runtimeConfigRef:
name: local-dev
name: local-dev-helm
2 changes: 1 addition & 1 deletion bootstrap/providers/provider-kubernetes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ metadata:
spec:
package: xpkg.crossplane.io/crossplane-contrib/provider-kubernetes:v1.2.0
runtimeConfigRef:
name: local-dev
name: local-dev-kubernetes
Loading