Skip to content

Commit

Permalink
kso-issue-376: Add installKind() to setupCluster()
Browse files Browse the repository at this point in the history
  • Loading branch information
domhanak committed Feb 5, 2024
1 parent 2023587 commit a97ad7a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .ci/jenkins/Jenkinsfile.e2e.cluster
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pipeline {
options {
timeout(time: 3, unit: 'HOURS')
timestamps()
}p/kind-logs/
}

stages {
stage('Setup pipeline') {
Expand Down Expand Up @@ -155,6 +155,7 @@ String getOperatorVersion() {
void setupCluster() {
switch (getClusterName()) {
case kindClusterPlatform:
installKind()
setupKind()
break
case openshiftClusterPlatform:
Expand All @@ -165,6 +166,10 @@ void setupCluster() {
}
}

void installKind() {
return sh(script: "command -v kind >/dev/null || go install sigs.k8s.io/kind@${KIND_VERSION}", returnStdout: true).trim()
}

void setupKind() {
// Start kind
kind.start()
Expand Down

0 comments on commit a97ad7a

Please sign in to comment.