Skip to content

Instantly share code, notes, and snippets.

View rgolangh's full-sized avatar

Roy Golan rgolangh

View GitHub Profile
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 6.
"ID","Title","Status","Priority","Assignee(s)","Planned In","Initial Estimate","Remaining Estimate","Created"
"MTV-599","[Copyoffload] Set wrong password on the secret mentioned on storagemap’s parameters","Draft","Medium [50.0]","Tzach Shefi (tshefi)","","","","2025-11-25 09:00"
"MTV-598","[Copyoffload] [WIP] Set wrong secret name on storagemap’s parameters","Draft","Medium [50.0]","Tzach Shefi (tshefi)","","","","2025-11-25 08:59"
"MTV-597","[Copyoffload] Warm migration of a vm with compatibility-mode virtual/dependent RDM disk","Draft","Medium [50.0]","Tzach Shefi (tshefi)","","","","2025-11-25 08:57"
"MTV-596","[Copyoffload] Migrate a VM with a compatibility-mode physical RDM disk","Draft","Medium [50.0]","Tzach Shefi (tshefi)","","","","2025-11-25 08:56"
"MTV-595","[Copyoffload] Migrate a multi disk VM, one of the disks resides on a different VM path/folder which resides on a different datastores, each datastore backed by a different storage","Draft","Medium [50.0]","Tzach Shefi (tshefi)","","","","2025
FROM quay.io/containerdisks/fedora:42 as builder
FROM quay.io/fedora/fedora:42
COPY --from=builder /disk/* /
RUN dnf install qemu-img -y
RUN ls -lrt /
RUN qemu-img convert -f qcow2 -O vmdk disk.img output.vmdk
package populator
//go:generate mockgen -destination=mocks/storage_mock_client.go -package=storage_mocks . StorageApi
type StorageApi interface {
StorageMapper
StorageResolver
}
type StorageAdapterID string
---
- name: Install and configure HAProxy for OpenShift
hosts: all
become: yes
user: root
vars:
openshift_api_vip: 192.168.122.90
openshift_apps_vip: 192.168.122.63
tasks:
- name: Install HAProxy

Adding a custom CA Certificate to a Container Running Java

If you’re working with containers running Java applications and need to add a CA (Certificate Authority) certificate for secure communication, you can follow these steps. This guide assumes you are familiar with containers and have basic knowledge of working with YAML files.

Problem Space

apiVersion: v1
kind: Pod
metadata:
name: root-ca-to-cacerts
spec:
initContainers:
- name: add-kube-root-ca-to-cacerts
image: registry.access.redhat.com/ubi9/openjdk-21
volumeMounts:
- mountPath: /opt/new-cacerts
@rgolangh
rgolangh / Main.java
Last active March 28, 2024 17:58
simple curl in java
import java.util.stream.*;
import java.net.http.HttpRequest;
import java.net.http.HttpClient;
import java.net.URI;
import java.net.http.HttpResponse;
import java.net.http.HttpClient.Version;
import java.net.http.HttpRequest.BodyPublishers;
import java.net.http.HttpResponse.BodyHandlers;
import java.time.Duration;
#/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:

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)
@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)