Skip to content

Commit 8fba3b2

Browse files
committed
Adapt manifests
1 parent dd608ce commit 8fba3b2

File tree

12 files changed

+21
-21
lines changed

12 files changed

+21
-21
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ SHARD_NAME ?= shard-$(shell tr -dc bcdfghjklmnpqrstvwxz2456789 </dev/urandom | h
141141

142142
.PHONY: run-shard
143143
run-shard: $(KUBECTL) ## Run a shard from your host and deploy prerequisites.
144-
$(KUBECTL) apply --server-side --force-conflicts -k hack/config/shard/clusterring
144+
$(KUBECTL) apply --server-side --force-conflicts -k hack/config/shard/controllerring
145145
go run ./cmd/shard --shard=$(SHARD_NAME) --lease-namespace=default --zap-log-level=debug
146146

147147
PUSH ?= false

config/rbac/role.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@ rules:
4040
- apiGroups:
4141
- sharding.timebertt.dev
4242
resources:
43-
- clusterrings
43+
- controllerrings
4444
verbs:
4545
- get
4646
- list
4747
- watch
4848
- apiGroups:
4949
- sharding.timebertt.dev
5050
resources:
51-
- clusterrings/status
51+
- controllerrings/status
5252
verbs:
5353
- patch
5454
- update

hack/config/shard/clusterring/clusterring.yaml renamed to hack/config/shard/controllerring/controllerring.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
apiVersion: sharding.timebertt.dev/v1alpha1
2-
kind: ClusterRing
2+
kind: ControllerRing
33
metadata:
44
name: example
55
spec:

hack/config/shard/clusterring/kustomization.yaml renamed to hack/config/shard/controllerring/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
33

44
resources:
5-
- clusterring.yaml
5+
- controllerring.yaml
66
- sharder_rbac.yaml

hack/config/shard/clusterring/sharder_rbac.yaml renamed to hack/config/shard/controllerring/sharder_rbac.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# These manifests grant the sharder controller permissions to act on resources that we listed in the ClusterRing.
1+
# These manifests grant the sharder controller permissions to act on resources that we listed in the ControllerRing.
22
# We need to grant these permissions explicitly depending on what we configured. Otherwise, the sharder would require
33
# cluster-admin access.
44
---
55
apiVersion: rbac.authorization.k8s.io/v1
66
kind: ClusterRole
77
metadata:
8-
name: sharding:clusterring:example
8+
name: sharding:controllerring:example
99
rules:
1010
- apiGroups:
1111
- ""
@@ -19,11 +19,11 @@ rules:
1919
apiVersion: rbac.authorization.k8s.io/v1
2020
kind: ClusterRoleBinding
2121
metadata:
22-
name: sharding:clusterring:example
22+
name: sharding:controllerring:example
2323
roleRef:
2424
apiGroup: rbac.authorization.k8s.io
2525
kind: ClusterRole
26-
name: sharding:clusterring:example
26+
name: sharding:controllerring:example
2727
subjects:
2828
- kind: ServiceAccount
2929
name: sharder

hack/config/shard/shard/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ images:
1313
newTag: latest
1414

1515
resources:
16-
- ../clusterring
16+
- ../controllerring
1717
- deployment.yaml
1818
- rbac.yaml
1919
- serviceaccount.yaml

hack/config/skaffold.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ build:
208208
manifests:
209209
kustomize:
210210
paths:
211-
- hack/config/shard/clusterring
211+
- hack/config/shard/controllerring
212212
- hack/config/shard/shard
213213
deploy:
214214
kubectl:
@@ -333,7 +333,7 @@ build:
333333
manifests:
334334
kustomize:
335335
paths:
336-
# default configuration: only run operator shards and use external sharding implementation via ClusterRing
336+
# default configuration: only run operator shards and use external sharding implementation via ControllerRing
337337
- webhosting-operator/config/manager/overlays/default
338338
- webhosting-operator/config/monitoring/default
339339
deploy:
@@ -372,7 +372,7 @@ profiles:
372372
patches:
373373
- op: replace
374374
path: /manifests/kustomize/paths/0
375-
# default configuration: only run operator shards and use external sharding implementation via ClusterRing
375+
# default configuration: only run operator shards and use external sharding implementation via ControllerRing
376376
value: webhosting-operator/config/manager/overlays/shoot/default
377377
- op: add
378378
path: /manifests/kustomize/paths/-
@@ -441,7 +441,7 @@ profiles:
441441
- bash
442442
- -c
443443
- |
444-
if kubectl get clusterring example &>/dev/null || kubectl -n default get deploy shard &>/dev/null ; then
444+
if kubectl get controllerring example &>/dev/null || kubectl -n default get deploy shard &>/dev/null ; then
445445
echo "Example shard is still running, refusing to run a load test experiment."
446446
echo "Ensure a clean load test environment, i.e., run 'make down SKAFFOLD_MODULE=shard'."
447447
exit 1

webhosting-operator/config/manager/clusterring/clusterring.yaml renamed to webhosting-operator/config/manager/controllerring/controllerring.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
apiVersion: sharding.timebertt.dev/v1alpha1
2-
kind: ClusterRing
2+
kind: ControllerRing
33
metadata:
44
name: webhosting-operator
55
spec:

webhosting-operator/config/manager/clusterring/kustomization.yaml renamed to webhosting-operator/config/manager/controllerring/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: kustomize.config.k8s.io/v1alpha1
22
kind: Component
33

44
resources:
5-
- clusterring.yaml
5+
- controllerring.yaml
66
- sharder_rbac.yaml
77

88
patches:

0 commit comments

Comments
 (0)