Skip to content

Instantly share code, notes, and snippets.

View sabre1041's full-sized avatar

Andrew Block sabre1041

View GitHub Profile

Prerequisites:

  1. OpenShift 4.18+
  2. OpenShift Command Line installed and authenticated to target Cluster
  3. Git
  4. Helm

Deploy the Zero Trust Workload Identity Manager (ZTWIM Operator)

Keybase proof

I hereby claim:

  • I am sabre1041 on github.
  • I am sabre1041 (https://keybase.io/sabre1041) on keybase.
  • I have a public key whose fingerprint is 2CE5 F1FB 9E8C 59B8 7BBD 5F2B 02DF E631 AEF3 5EBC

To claim this, I am signing this object:

Integration of Red Hat Advanced Cluster Security (ACS) with OpenShift Authentication Using Dex

This walkthrough provides the steps for integrating Red Hat Advanced Cluster Security (ACS) with OpenShift Authentication with dex

Prerequisites

  1. OpenShift Cluster
  2. OpenShift CLI
  3. Helm CLI
  4. Existing Installation of Red Hat Advanced Cluster Security (ACS)
@sabre1041
sabre1041 / etcd-pv-renamer.go
Created November 13, 2020 14:50
etcd-pv-renamer.go
package main
import (
"bytes"
"context"
"crypto/tls"
"flag"
"fmt"
"os"
"strconv"
@sabre1041
sabre1041 / validation.py
Created May 16, 2017 23:29
Validation script for SVT conformance
#!/usr/bin/env python
import json, subprocess, time, copy, sys, os, yaml, tempfile, shutil, math, urllib2
from datetime import datetime
from clusterloaderstorage import *
from multiprocessing import Process
from flask import Flask, request
globalvars = {}
@sabre1041
sabre1041 / alexa-openshift-dev-preview-privacy-policy.md
Created March 22, 2017 03:54
alexa-openshift-dev-preview-privacy-policy

Alexa OpenShift Online Developer Preview Skill Privacy Statement

Your privacy is important to us. This privacy statement provides information about the personal information that the Alexa OpenShift Online Developer Preview Skill collects, and the ways in which we uses that personal information.

The services provided by this applications are to be utilized as an integration with the OpenShift Online Developer Preview environment where is the ultimate source of truth and contains any and all personal information. Please refer to the official policy statement for additional details.

Personal Information Collection

The Alexa OpenShift Online Developer Preview Skill collects the following kinds of personal information:

export SECRET_VALUE=openshiftsecretvalue
#!/usr/bin/groovy
String ocpApiServer = env.OCP_API_SERVER ? "${env.OCP_API_SERVER}" : "https://openshift.default.svc.cluster.local"
node('maven') {
def artifactory = Artifactory.server(env.ARTIFACTORY_SERVER)
def artifactoryMaven = Artifactory.newMavenBuild()
def buildInfo = Artifactory.newBuildInfo()
def scannerHome = tool env.SONARQUBE_TOOL
def namespace = readFile('/var/run/secrets/kubernetes.io/serviceaccount/namespace').trim()
@sabre1041
sabre1041 / openshift-management-prune.yml
Created September 22, 2016 00:56
Ansible OpenShift Management Script - Pruning
---
- hosts: openshift
force_handlers: True
vars:
openshift_master_url: localhost
openshift_login_insecure_flag: --insecure-skip-tls-verify=true
openshift_login_insecure: False
openshift_prune_builds_complete: 5
openshift_prune_builds_failed: 1
@sabre1041
sabre1041 / gist:d734b9c0757f8c36e3e5cd36de6233ab
Last active August 3, 2016 03:53
Continuous Integration

Continuous Integration and Continuous Delivery

One of the core components of this demonstration is to utilize the principles and tools emphasized by continuous integration and continuous delivery. This document explains how these tools and concepts are achieved.

Jenkins

The Jenkins Continuous Integration Server is being used to orchestrate the building, deploying and promoting of applications to OpenShift. It builds upon the official [Jenkins xPaaS image] (https://docs.openshift.com/enterprise/latest/using_images/other_images/jenkins.html) by adding essential plugins and configurations to enable continuous integration and delivery functionality and behavior driven development.

Jenkins Agents