Skip to content

Instantly share code, notes, and snippets.

@cpanato
cpanato / .md
Last active June 10, 2022 13:52
CAPG / CAPI bootstrap with clusterctl

CAPG / CAPI bootstrap with clusterctl

This example uses the latest clusterctl (v1.0.0) and also the latest CAPG release with suports v1beta1 (v1.0.0)

steps to get a running workload cluster, for testing/development purposes

this is a quick overview for more in depth you can check https://cluster-api.sigs.k8s.io/user/quick-start.html

  1. create a kind cluster
@cpanato
cpanato / .testenv
Created September 25, 2018 17:05
.testenv for helm chart testing
# The name of the Git remote
REMOTE=origin
# The name of the Git target branch
TARGET_BRANCH=master
# Chart directories separated by a space
CHART_DIRS=(
mattermost-helm
)
import jenkins.model.Jenkins
import hudson.model.ParametersAction
import hudson.model.BooleanParameterValue
import hudson.model.Result
import hudson.model.Run
import org.jenkinsci.plugins.workflow.job.WorkflowRun
import org.jenkinsci.plugins.workflow.support.steps.StageStepExecution
import org.jenkinsci.plugins.workflow.job.WorkflowJob
//Get the PR Number
def sout = new StringBuilder(), serr = new StringBuilder()
def proc = 'ls /var/jenkins_home/plugins/'.execute()
proc.consumeProcessOutput(sout, serr)
proc.waitForOrKill(1000)
println "out> $sout err> $serr"
File file = new File("/var/jenkins_home/plugins/")
println "The file ${file.absolutePath} has ${file.length()} bytes"

Keybase proof

I hereby claim:

  • I am cpanato on github.
  • I am cpanato (https://keybase.io/cpanato) on keybase.
  • I have a public key ASDhgxhNK8XbsEMDe3RtbRTtcxCP2DdgQbj7uLSvWXS7CQo

To claim this, I am signing this object:

@cpanato
cpanato / gist:dab93f875e72889ea511
Created May 9, 2014 15:01
Running Parallel Tests with watir in Sauce Labs
require 'rubygems'
require 'selenium/webdriver'
require 'selenium/webdriver/remote'
require "watir-webdriver"
platform_browser_version = [
[:XP, "ie", "8"],
[:XP, "firefox", "11"],
[:XP, "chrome"],