forked from k8ssandra/k8ssandra-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add kuttl test for management API heap size. * Add kuttl makefile targets.
- Loading branch information
1 parent
1dc67e4
commit 7e7185d
Showing
13 changed files
with
158 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -26,4 +26,6 @@ build | |
*~ | ||
clientconfig | ||
.vscode/ | ||
.devcontainer/ | ||
.devcontainer/ | ||
kind-log*/ | ||
kubeconfig |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestSuite | ||
testDirs: | ||
- ./test/kuttl | ||
|
||
startKIND: true | ||
kindNodeCache: true | ||
# we are using a k8s 1.21 as default. Other versions can be run using the --kind-config flag. | ||
kindConfig: test/kuttl/config/kind/w3k1.21.yaml | ||
timeout: 1400 | ||
namespace: k8ssandra-operator | ||
kindContainers: | ||
- k8ssandra/k8ssandra-operator:latest |
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,9 @@ | ||
kind: Cluster | ||
apiVersion: kind.x-k8s.io/v1alpha4 | ||
networking: | ||
apiServerPort: 45451 | ||
nodes: | ||
- role: control-plane | ||
image: kindest/node:v1.20.7 | ||
- role: worker | ||
image: kindest/node:v1.20.7 |
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,9 @@ | ||
kind: Cluster | ||
apiVersion: kind.x-k8s.io/v1alpha4 | ||
networking: | ||
apiServerPort: 45451 | ||
nodes: | ||
- role: control-plane | ||
image: kindest/node:v1.21.2 | ||
- role: worker | ||
image: kindest/node:v1.21.2 |
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,9 @@ | ||
kind: Cluster | ||
apiVersion: kind.x-k8s.io/v1alpha4 | ||
networking: | ||
apiServerPort: 45451 | ||
nodes: | ||
- role: control-plane | ||
image: kindest/node:v1.22.2 | ||
- role: worker | ||
image: kindest/node:v1.22.2 |
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,12 @@ | ||
kind: Cluster | ||
apiVersion: kind.x-k8s.io/v1alpha4 | ||
networking: | ||
apiServerPort: 45451 | ||
nodes: | ||
- role: control-plane | ||
- role: worker | ||
image: kindest/node:v1.21.2 | ||
- role: worker | ||
image: kindest/node:v1.21.2 | ||
- role: worker | ||
image: kindest/node:v1.21.2 |
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,45 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: cert-manager-cainjector | ||
namespace: "cert-manager" | ||
labels: | ||
app: cainjector | ||
app.kubernetes.io/name: cainjector | ||
status: | ||
conditions: | ||
- status: "True" | ||
type: Available | ||
- status: "True" | ||
type: Progressing | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: cert-manager | ||
namespace: "cert-manager" | ||
labels: | ||
app: cert-manager | ||
app.kubernetes.io/name: cert-manager | ||
app.kubernetes.io/instance: cert-manager | ||
status: | ||
conditions: | ||
- status: "True" | ||
type: Available | ||
- status: "True" | ||
type: Progressing | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: cert-manager-webhook | ||
namespace: "cert-manager" | ||
labels: | ||
app: webhook | ||
app.kubernetes.io/name: webhook | ||
status: | ||
conditions: | ||
- status: "True" | ||
type: Available | ||
- status: "True" | ||
type: Progressing |
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,5 @@ | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestStep | ||
commands: | ||
- command: kubectl apply -f https://github.com/jetstack/cert-manager/releases/download/v1.6.0/cert-manager.yaml | ||
ignoreFailure: false |
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,22 @@ | ||
# apiVersion: apiextensions.k8s.io/v1 | ||
# kind: CustomResourceDefinition | ||
# name: k8ssandraclusters.k8ssandra.io | ||
# spec: | ||
# group: k8ssandra.io | ||
# names: | ||
# kind: K8ssandraCluster | ||
# listKind: K8ssandraClusterList | ||
# plural: k8ssandraclusters | ||
# singular: k8ssandracluster | ||
# --- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: k8ssandra-operator | ||
namespace: k8ssandra-operator | ||
status: | ||
conditions: | ||
- status: "True" | ||
type: Available | ||
- status: "True" | ||
type: Progressing |
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,6 @@ | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestStep | ||
commands: | ||
- script: | | ||
../../../bin/kustomize build ../../../config/deployments/control-plane | kubectl apply -n $NAMESPACE --server-side --force-conflicts -f - | ||
ignoreFailure: false |
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,7 @@ | ||
apiVersion: apps/v1 | ||
kind: StatefulSet | ||
metadata: | ||
name: demo-dc1-default-sts | ||
namespace: k8ssandra-operator | ||
status: | ||
readyReplicas: 3 |
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,5 @@ | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestStep | ||
commands: | ||
- command: kubectl apply -n $NAMESPACE --server-side --force-conflicts -f ../../testdata/samples/k8ssandra-multi-kind.yaml | ||
ignoreFailure: false |