Skip to content

Instantly share code, notes, and snippets.

View rgolangh's full-sized avatar

Roy Golan rgolangh

View GitHub Profile
@rgolangh
rgolangh / create-bastion-machine-downstream.yaml
Last active March 7, 2019 14:45
ovirt and okd additional playbooks and vars
---
# use a vault with engine_pass rhsub_pass and so on
- name: Create a bastion machine
hosts: localhost
connection: local
gather_facts: false
vars:
engine_url: https://ovirt-engine-fqdn/ovirt-engine/api
engine_user: admin@internal
@rgolangh
rgolangh / upload-rhcos.yaml
Last active May 3, 2020 02:45
upload rhcos image template from installer
- hosts: localhost
gather_facts: no
connection: local
vars:
# customization begin
installer: bin/openshift-installer
engine_url: https://engine-fqdn/ovirt-engine/api
engine_user: admin@internal
engine_password: 123
#!/bin/bash -e
usage="
Usage:
${0##* /} <URL to prometheus.jar>|<filename>
Examples:
${0## /} https://url/of/prometheus.tar
${0## /} /path/to/prometheus.tar
"
@rgolangh
rgolangh / podman-create.sh
Last active November 23, 2021 19:37
osbuild - container setup for composer and worker
#!/usr/bin/env bash
set -e
# First build the container images
# podman build -f distribution/Dockerfile-worker -t osbuild-worker .
# podman build -f distribution/Dockerfile-ubi -t osbuild-composer .
# podman build -f Dockerfile.composer-cli -t osbuild-composer-cli .
podman network create cni-podman1 || true
@rgolangh
rgolangh / index.html
Last active August 16, 2022 05:53
tiny hangedman game for the browser
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
background: lightgray;
}
.content {
@rgolangh
rgolangh / Makefile
Created October 30, 2022 17:32
A makefile to spin rhivos 9 vm
SHELL := /bin/bash
IMG = rhivos9-x86_64.qcow
run-vm:
qemu-kvm \
-m 8G \
-cpu host \
-smp sockets=2,cores=2 \
-machine q35 \
-nographic \
kind: Template
apiVersion: template.openshift.io/v1
metadata:
name: f37-arm
namespace: openshift-cnv
labels:
os.template.kubevirt.io/fedora37: 'true'
template.kubevirt.io/type: vm
workload.template.kubevirt.io/server: 'true'
annotations:
@rgolangh
rgolangh / build-image.sh
Last active October 31, 2023 11:15
Create Janus backstage-showcase image with orchestrator plugins
#!/bin/bash -xe
pushd $(mktemp -d -p .)
cleanup() {
popd
}
trap cleanup EXIT SIGINT SIGTERM
VERDACCIO_CONF=$(mktemp -p . XXX-verdaccio.conf)
BACKSTAGE_PLUGINS_DOCKERFILE=$(mktemp -p . XXX-backstage-plugins.Dockerfile)

Setting up Local Installation of Orchestrator with Helm

This document provides step-by-step instructions for developers to set up a local installation of Orchestrator using the Helm chart provided in rgolangh/janus-idp-workflows-helm repository.

Prerequisites

Before proceeding, ensure you have the following prerequisites installed:

  • Helm v3+
  • Kubernetes cluster configured (e.g., Kind, Minikube, Docker Desktop with Kubernetes enabled)
#/bin/bash
#
set -xe
kind delete cluster orchestrator
KIND_EXPERIMENTAL_CONTAINERD_SNAPSHOTTER=native kind create cluster --config - <<EOF
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
name: orchestrator
networking: