Skip to content

Instantly share code, notes, and snippets.

View rohitkrai03's full-sized avatar

Rohit Rai rohitkrai03

  • Red Hat
  • Bangalore
View GitHub Profile
@rohitkrai03
rohitkrai03 / gitops-demo.md
Last active September 15, 2020 22:04
Demo steps for gitops pipelines setup

Steps to follow for seting up a sample GitOps pipelines using gitops-cli

  • Complete all the pre-requisite steps mentioned in the docs

  • Bootstrap a GitOps repository following steps mentioned in the docs

    odo pipelines bootstrap --service-repo-url https://github.com/<username>/taxi.git \          
      --dockercfgjson ~/Downloads/<username>-gitops-auth.json \
      --gitops-repo-url https://github.com/<username>/gitops-example.git \

--image-repo quay.io//taxi --prefix demo --output \

@rohitkrai03
rohitkrai03 / helm-chart-schema.md
Last active June 18, 2021 15:53
Better Helm Chart installation experience in OpenShift Console using `values.schema.json`

Better Helm Chart installation experience in OpenShift Console using values.schema.json

Introduction

OCP 4.4 introduced native support for Helm Charts including a UI experience in OpenShift Developer Console to install and manage charts.

Release of OCP 4.6 will enhance the Helm experience further more in Developer Console by introducing dynamic form generation in chart installation using values schema.

A chart maintainer can define a schema in values.schema.json file to enable dynamic form chart installation experience in console. A schema is represented as a JSON Schema. It might look something like this:

@rohitkrai03
rohitkrai03 / manjaro-fresh-install.md
Last active August 15, 2020 04:45
How to setup freshly installed Manjaro for development

How to setup freshly installed Manjaro for development.

OS Settings

  • Pamac
    • Enable AUR support.
    • Enable Snap support.
    • Enable fastest mirrors.
      • Select India from the list of mirrors.
      • Click Refresh Mirrors List
    • Rankmirrors to Set the Fastest Download Server
export TERM="xterm-256color" # This sets up colors properly
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/home/rohit/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=/Users/rohit/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="robbyrussell"
@rohitkrai03
rohitkrai03 / upgrade-ocp-cluster.sh
Created July 30, 2019 20:37
Upgrade Openshift Cluster from 4.1 to 4.2
oc adm upgrade --to-image=registry.svc.ci.openshift.org/origin/release:4.2 --force
@rohitkrai03
rohitkrai03 / replace-console-image.sh
Last active September 9, 2019 08:56
Replace console image on a 4.1 Openshift cluster with latest 4.2 image.
oc patch consoles.operator.openshift.io cluster --patch '{ "spec": { "managementState": "Unmanaged" } }' --type=merge
oc set image deploy console console=quay.io/openshift/origin-console:4.2 -n openshift-console
oc rollout status -w deploy/console -n openshift-console