- Init a new vm
podman machine init macvm
Extracting compressed file
podman machine list
- Start/stop/delete the VM
Special thanks to Ben Schmaus and his amazing blog post.
We also discussed the process here during the Ask an OpenShift Admin live stream on Oct 20th.
Pre-reqs
Download the tools we'll need.
This uses a GitHub Enteprise instance but the same apply to a Public GitHub you just need to use https://github.com/
https://ghe.pipelines.devcluster.openshift.com/github-apps/pipelines-as-code
#! /usr/bin/env/sh | |
# | |
# this script has not been tested nor validated, it is not, in any way | |
# supported by Red Hat or NetApp. use at your own risk. | |
# | |
# | |
# the purpose of this script is to create an OpenShift MachineConfig | |
# to apply the NetApp recommended OS configuration to RHCOS machines. |
import goyaml "github.com/go-yaml/yaml" | |
func SplitYAML(resources []byte) ([][]byte, error) { | |
dec := goyaml.NewDecoder(bytes.NewReader(resources)) | |
var res [][]byte | |
for { | |
var value interface{} | |
err := dec.Decode(&value) |
# https://github.com/kubernetes-sigs/kustomize/blob/master/examples/transformerconfigs/README.md | |
commonLabels: | |
# set labels at metadata.labels for all types | |
- path: metadata/labels | |
# create metadata.labels if it doesn't exist | |
create: true | |
- path: spec/template/metadata/labels | |
kind: DeploymentConfig | |
create: true |