Skip to content

Instantly share code, notes, and snippets.

View mabulgu's full-sized avatar
🏔️
The obstacle is the way

Aykut M. Bulgu mabulgu

🏔️
The obstacle is the way
View GitHub Profile
@mabulgu
mabulgu / create_topic.sh
Last active August 10, 2020 23:20
Strimzi Kafka CLI: Managing Strimzi in a Kafka Native Way - Code Snippets
bin/kafka-topics.sh --create --topic messages --partitions 24 --replication-factor 3 --zookeeper [zk_ip_here]:2181
stage('Validate') {
openshift.withCluster(clusterName) {
openshift.withProject("${projectName}") {
def counter = 0
def delay = 10
def maxCounter = 1000
println "Validating deployment of ${appName} in project ${projectName}"
def latestDCVersion = openshift.selector("dc","${appName}").object().status.latestVersion
def rcName = "${appName}-${latestDCVersion}"