Skip to content

Instantly share code, notes, and snippets.

@bomboclat
bomboclat / convert-deploymentconfig-to-deployment.py
Last active October 8, 2024 19:38
convert-deploymentconfig-to-deployment.py
#!/usr/bin/env python3
import sys
import re
import yaml
class YamlTransform():
def __init__(self, filename, keys_sub):
self.filename = filename
@bmaupin
bmaupin / convert-deploymentconfig-to-deployment.md
Last active October 8, 2024 19:38
Convert OpenShift DeploymentConfig to Kubernetes Deployment
  1. Change apiVersion from:

    - apiVersion: v1

    (or apiVersion: apps.openshift.io/v1)

    to:

@igrigorik
igrigorik / github.bash
Last active October 23, 2024 10:43
Open GitHub URL for current directory/repo...
alias gh="open \`git remote -v | grep [email protected] | grep fetch | head -1 | cut -f2 | cut -d' ' -f1 | sed -e's/:/\//' -e 's/git@/http:\/\//'\`"