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
4 changes: 2 additions & 2 deletions config/default/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Adds namespace to all resources.
namespace: cluster-api-provider-stackit-system
namespace: capstk-system

# Value of this field is prepended to the
# names of all resources, e.g. a deployment named
# "wordpress" becomes "alices-wordpress".
# Note that it should also match with the prefix (text before '-') of the namespace
# field above.
namePrefix: cluster-api-provider-stackit-
namePrefix: capstk-

# Labels to add to all resources and selectors.
labels:
Expand Down
6 changes: 3 additions & 3 deletions docs/src/development/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ Wait until the locally built provider is ready:

```sh
kubectl rollout status \
--namespace cluster-api-provider-stackit-system \
deployment/cluster-api-provider-stackit-controller-manager
--namespace capstk-system \
deployment/capstk-controller-manager
```

## Configure STACKIT and create a workload cluster
Expand Down Expand Up @@ -184,7 +184,7 @@ If resources persist after several minutes:
kubectl logs -n capi-system deployment/capi-controller-manager -c manager --tail=100

# STACKIT provider controller
kubectl logs -n cluster-api-provider-stackit-system deployment/cluster-api-provider-stackit-controller-manager --tail=100
kubectl logs -n capstk-system deployment/capstk-controller-manager --tail=100
```

3. If a `StackitMachine` cannot finish deletion and blocks its parent resources, you can remove its finalizer:
Expand Down
6 changes: 3 additions & 3 deletions docs/src/development/tilt-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ Tilt should deploy:
Verify the provider pod:

```sh
kubectl get pods -n cluster-api-provider-stackit-system
kubectl logs -n cluster-api-provider-stackit-system \
deployment/cluster-api-provider-stackit-controller-manager \
kubectl get pods -n capstk-system
kubectl logs -n capstk-system \
deployment/capstk-controller-manager \
-c manager
```

Expand Down
6 changes: 3 additions & 3 deletions docs/src/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ Wait for the provider controller:

```sh
kubectl rollout status \
--namespace cluster-api-provider-stackit-system \
deployment/cluster-api-provider-stackit-controller-manager
--namespace capstk-system \
deployment/capstk-controller-manager
```

## Set credentials and cluster settings
Expand Down Expand Up @@ -207,7 +207,7 @@ If resources persist after several minutes:
kubectl logs -n capi-system deployment/capi-controller-manager -c manager --tail=100

# STACKIT provider controller
kubectl logs -n cluster-api-provider-stackit-system deployment/cluster-api-provider-stackit-controller-manager --tail=100
kubectl logs -n capstk-system deployment/capstk-controller-manager --tail=100
```

3. If a `StackitMachine` cannot finish deletion and blocks its parent resources, you can remove its finalizer:
Expand Down
24 changes: 12 additions & 12 deletions test/e2e/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,16 @@ import (
)

// namespace where the project is deployed in
const namespace = "cluster-api-provider-stackit-system"
const namespace = "capstk-system"

// serviceAccountName created for the project
const serviceAccountName = "cluster-api-provider-stackit-controller-manager"
const serviceAccountName = "capstk-controller-manager"

// metricsServiceName is the name of the metrics service of the project
const metricsServiceName = "cluster-api-provider-stackit-controller-manager-metrics-service"
const metricsServiceName = "capstk-controller-manager-metrics-service"

// metricsRoleBindingName is the name of the RBAC that will be created to allow get the metrics data
const metricsRoleBindingName = "cluster-api-provider-stackit-metrics-binding"
const metricsRoleBindingName = "capstk-metrics-binding"

const stackitE2EMachineType = "c2i.2"

Expand Down Expand Up @@ -96,10 +96,10 @@ var _ = Describe("Manager", Ordered, func() {
Expect(err).NotTo(HaveOccurred(), "Failed to deploy the controller-manager")

By("restarting the controller-manager to pick up the freshly loaded image")
cmd = exec.Command("kubectl", "rollout", "restart", "deployment/cluster-api-provider-stackit-controller-manager", "-n", namespace)
cmd = exec.Command("kubectl", "rollout", "restart", "deployment/capstk-controller-manager", "-n", namespace)
_, err = utils.Run(cmd)
Expect(err).NotTo(HaveOccurred(), "Failed to restart the controller-manager")
cmd = exec.Command("kubectl", "rollout", "status", "deployment/cluster-api-provider-stackit-controller-manager", "-n", namespace, "--timeout=5m")
cmd = exec.Command("kubectl", "rollout", "status", "deployment/capstk-controller-manager", "-n", namespace, "--timeout=5m")
_, err = utils.Run(cmd)
Expect(err).NotTo(HaveOccurred(), "controller-manager did not roll out")
})
Expand Down Expand Up @@ -206,7 +206,7 @@ var _ = Describe("Manager", Ordered, func() {
It("should ensure the metrics endpoint is serving metrics", func() {
By("creating a ClusterRoleBinding for the service account to allow access to metrics")
cmd := exec.Command("kubectl", "create", "clusterrolebinding", metricsRoleBindingName,
"--clusterrole=cluster-api-provider-stackit-metrics-reader",
"--clusterrole=capstk-metrics-reader",
fmt.Sprintf("--serviceaccount=%s:%s", namespace, serviceAccountName),
)
_, err := utils.Run(cmd)
Expand Down Expand Up @@ -245,7 +245,7 @@ var _ = Describe("Manager", Ordered, func() {
By("waiting for the webhook service endpoints to be ready")
verifyWebhookEndpointsReady := func(g Gomega) {
cmd := exec.Command("kubectl", "get", "endpointslices.discovery.k8s.io", "-n", namespace,
"-l", "kubernetes.io/service-name=cluster-api-provider-stackit-webhook-service",
"-l", "kubernetes.io/service-name=capstk-webhook-service",
"-o", "jsonpath={range .items[*]}{range .endpoints[*]}{.addresses[*]}{end}{end}")
output, err := utils.Run(cmd)
g.Expect(err).NotTo(HaveOccurred(), "Webhook endpoints should exist")
Expand All @@ -256,7 +256,7 @@ var _ = Describe("Manager", Ordered, func() {
By("verifying the mutating webhook server is ready")
verifyMutatingWebhookReady := func(g Gomega) {
cmd := exec.Command("kubectl", "get", "mutatingwebhookconfigurations.admissionregistration.k8s.io",
"cluster-api-provider-stackit-mutating-webhook-configuration",
"capstk-mutating-webhook-configuration",
"-o", "jsonpath={.webhooks[0].clientConfig.caBundle}")
output, err := utils.Run(cmd)
g.Expect(err).NotTo(HaveOccurred(), "MutatingWebhookConfiguration should exist")
Expand All @@ -267,7 +267,7 @@ var _ = Describe("Manager", Ordered, func() {
By("verifying the validating webhook server is ready")
verifyValidatingWebhookReady := func(g Gomega) {
cmd := exec.Command("kubectl", "get", "validatingwebhookconfigurations.admissionregistration.k8s.io",
"cluster-api-provider-stackit-validating-webhook-configuration",
"capstk-validating-webhook-configuration",
"-o", "jsonpath={.webhooks[0].clientConfig.caBundle}")
output, err := utils.Run(cmd)
g.Expect(err).NotTo(HaveOccurred(), "ValidatingWebhookConfiguration should exist")
Expand Down Expand Up @@ -349,7 +349,7 @@ var _ = Describe("Manager", Ordered, func() {
verifyCAInjection := func(g Gomega) {
cmd := exec.Command("kubectl", "get",
"mutatingwebhookconfigurations.admissionregistration.k8s.io",
"cluster-api-provider-stackit-mutating-webhook-configuration",
"capstk-mutating-webhook-configuration",
"-o", "go-template={{ range .webhooks }}{{ .clientConfig.caBundle }}{{ end }}")
mwhOutput, err := utils.Run(cmd)
g.Expect(err).NotTo(HaveOccurred())
Expand All @@ -363,7 +363,7 @@ var _ = Describe("Manager", Ordered, func() {
verifyCAInjection := func(g Gomega) {
cmd := exec.Command("kubectl", "get",
"validatingwebhookconfigurations.admissionregistration.k8s.io",
"cluster-api-provider-stackit-validating-webhook-configuration",
"capstk-validating-webhook-configuration",
"-o", "go-template={{ range .webhooks }}{{ .clientConfig.caBundle }}{{ end }}")
vwhOutput, err := utils.Run(cmd)
g.Expect(err).NotTo(HaveOccurred())
Expand Down