Skip to content

Commit

Permalink
make a quickstart kustomization for the default/pulumi SA
Browse files Browse the repository at this point in the history
  • Loading branch information
EronWright committed Oct 11, 2024
1 parent 1b11f3e commit e2dc154
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 23 deletions.
27 changes: 7 additions & 20 deletions deploy/yaml/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28046,16 +28046,16 @@ spec:
apiVersion: v1
kind: ServiceAccount
metadata:
labels:
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/name: pulumi-kubernetes-operator
name: controller-manager
namespace: pulumi-kubernetes-operator
name: pulumi
namespace: default
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: pulumi
labels:
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/name: pulumi-kubernetes-operator
name: controller-manager
namespace: pulumi-kubernetes-operator
---
apiVersion: rbac.authorization.k8s.io/v1
Expand Down Expand Up @@ -28391,7 +28391,7 @@ roleRef:
subjects:
- kind: ServiceAccount
name: pulumi
namespace: pulumi-kubernetes-operator
namespace: default
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
Expand All @@ -28408,19 +28408,6 @@ subjects:
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: default:pulumi:system:auth-delegator
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: system:auth-delegator
subjects:
- kind: ServiceAccount
name: pulumi
namespace: pulumi-kubernetes-operator
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
labels:
app.kubernetes.io/managed-by: kustomize
Expand Down
2 changes: 1 addition & 1 deletion operator/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ docker-buildx: ## Build and push docker image for the manager for cross-platform
build-installer: manifests generate kustomize ## Generate a consolidated YAML with CRDs and deployment.
mkdir -p dist
cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG}
$(KUSTOMIZE) build config/default > dist/install.yaml
$(KUSTOMIZE) build config/quickstart > dist/install.yaml

##@ Deployment

Expand Down
2 changes: 0 additions & 2 deletions operator/config/default/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ resources:
- ../rbac
- ../manager
- metrics_service.yaml
- service_account.yaml
- rbac.yaml

patches:
- path: manager_metrics_patch.yaml
Expand Down
4 changes: 4 additions & 0 deletions operator/config/quickstart/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
resources:
- ../default
- service_account.yaml
- rbac.yaml
File renamed without changes.

0 comments on commit e2dc154

Please sign in to comment.