Skip to content

Instantly share code, notes, and snippets.

View jfrancoa's full-sized avatar

Jose Luis Franco Arza jfrancoa

View GitHub Profile
@aravindhp
aravindhp / gcp-machineset.yaml
Created April 26, 2022 18:54
gcp-machineset
apiVersion: machine.openshift.io/v1beta1
kind: MachineSet
metadata:
labels:
machine.openshift.io/cluster-api-cluster: aravindh-winc-6h9df
name: aravindh-winc-6h9df-windows-worker-a
namespace: openshift-machine-api
spec:
replicas: 1
selector:
@jlojosnegros
jlojosnegros / main.md
Last active September 13, 2022 08:45
Swtiching contexts with Git

Switching Development Contexts with Git

Context

On my daily work I have to switch context while in the middle of a modification many times, or I just have to work on two different versions in parallel. Working with git there are many ways to save your work and come back later, but I have found all of them too cumbersome in the process to resume work.

I do not need this, I already have stash to save my work

## OpenShift4 pull-secret:
1. Download your pull-secret from [console.redhat.com](https://console.redhat.com/openshift/install/aws/installer-provisioned)
- click on “Download Pull Secret”. Save it somewhere, e.g. ~/some-dir/pull-secret
2. Add the apps.ci auth to pull-secret! _internal OpenShift developers only_
- Obtain an API token by visiting https://oauth-openshift.apps.ci.l2s4.p1.openshiftapps.com/oauth/token/request
copy the oc login cmd and paste in terminal to login to the ci cluster, then run this:
- `$ oc registry login --to ~/some-dir/pull-secret`
This will append the auth from registry.ci.openshift.org to your cloud.openshift.com pull-secret but it will also
make the pull-secret multi-line.