-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #55 from projectsyn/rbac
Change RBAC management policy to Basic by default
- Loading branch information
Showing
22 changed files
with
147 additions
and
712 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,3 +19,5 @@ | |
/_public | ||
|
||
# Additional entries | ||
/.kind | ||
/.work |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
= Crossplane | ||
|
||
[discrete] | ||
== Introduction | ||
|
||
crossplane is a Commodore component to manage Crossplane. | ||
|
||
See the xref:references/parameters.adoc[parameters] reference for further details. | ||
|
||
[discrete] | ||
== Documentation | ||
|
||
How-to guides:: _Problem-oriented_: step-by-step guides to achieve a goal. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
* xref:index.adoc[Home] | ||
* xref:references/parameters.adoc[Parameters] | ||
.How To | ||
* xref:how-tos/upgrade-1.2.x-and-subsequet.adoc[Upgrade version] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
kind: Cluster | ||
apiVersion: kind.x-k8s.io/v1alpha4 | ||
nodes: | ||
- role: control-plane | ||
kubeadmConfigPatches: | ||
- | | ||
kind: InitConfiguration | ||
nodeRegistration: | ||
kubeletExtraArgs: | ||
node-labels: "ingress-ready=true" | ||
extraPortMappings: | ||
- containerPort: 80 | ||
hostPort: 8081 | ||
protocol: TCP | ||
- containerPort: 443 | ||
hostPort: 8443 | ||
protocol: TCP | ||
# registry can't be sensibly exposed via Ingress under 127.0.0.0.nip.io host with subpath | ||
- containerPort: 30500 | ||
hostPort: 5000 | ||
protocol: TCP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
kind_dir ?= $(PWD)/.kind | ||
kind_bin = $(go_bin)/kind | ||
|
||
# Prepare kind binary | ||
$(kind_bin): export GOOS = $(shell go env GOOS) | ||
$(kind_bin): export GOARCH = $(shell go env GOARCH) | ||
$(kind_bin): export GOBIN = $(go_bin) | ||
$(kind_bin): | $(go_bin) | ||
go install sigs.k8s.io/kind@latest | ||
|
||
.PHONY: kind | ||
kind: export KUBECONFIG = $(KIND_KUBECONFIG) | ||
kind: kind-setup-ingress kind-load-image ## All-in-one kind target | ||
|
||
.PHONY: kind-setup | ||
kind-setup: export KUBECONFIG = $(KIND_KUBECONFIG) | ||
kind-setup: $(KIND_KUBECONFIG) ## Creates the kind cluster | ||
|
||
.PHONY: kind-setup-ingress | ||
kind-setup-ingress: export KUBECONFIG = $(KIND_KUBECONFIG) | ||
kind-setup-ingress: kind-setup ## Install NGINX as ingress controller onto kind cluster (localhost:8081) | ||
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/main/deploy/static/provider/kind/deploy.yaml | ||
|
||
.PHONY: kind-load-image | ||
# We fix the arch to linux/amd64 since kind runs in amd64 even on Mac/arm. | ||
kind-load-image: export GOOS = linux | ||
kind-load-image: export GOARCH = amd64 | ||
kind-load-image: kind-setup build-docker ## Load the container image onto kind cluster | ||
@$(kind_bin) load docker-image --name $(KIND_CLUSTER) $(CONTAINER_IMG) | ||
|
||
.PHONY: kind-clean | ||
kind-clean: export KUBECONFIG = $(KIND_KUBECONFIG) | ||
kind-clean: delete-samples | ||
kind-clean: ## Removes the kind Cluster | ||
@$(kind_bin) delete cluster --name $(KIND_CLUSTER) || true | ||
rm -rf $(kind_dir) $(kind_bin) | ||
|
||
$(KIND_KUBECONFIG): export KUBECONFIG = $(KIND_KUBECONFIG) | ||
$(KIND_KUBECONFIG): $(kind_bin) | ||
$(kind_bin) create cluster \ | ||
--name $(KIND_CLUSTER) \ | ||
--image $(KIND_IMAGE) \ | ||
--config kind/config.yaml | ||
@kubectl version | ||
@kubectl cluster-info | ||
@kubectl config use-context kind-$(KIND_CLUSTER) | ||
@echo ======= | ||
@echo "Setup finished. To interact with the local dev cluster, set the KUBECONFIG environment variable as follows:" | ||
@echo "export KUBECONFIG=$$(realpath "$(KIND_KUBECONFIG)")" | ||
@echo ======= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
labels: | ||
app.kubernetes.io/component: controller | ||
app.kubernetes.io/name: prometheus-operator | ||
app.kubernetes.io/version: 0.62.0 | ||
name: prometheus-operator | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: prometheus-operator | ||
subjects: | ||
- kind: ServiceAccount | ||
name: prometheus-operator | ||
namespace: syn-crossplane |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.