This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kind: ValidatingAdmissionPolicy | |
apiVersion: admissionregistration.k8s.io/v1alpha1 | |
metadata: | |
name: pdb | |
spec: | |
matchConstraints: | |
resourceRules: | |
- operations: | |
- CREATE | |
apiGroups: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: v1 | |
kind: PersistentVolumeClaim | |
metadata: | |
name: httpd-pv-claim | |
labels: | |
app: httpd-frontend | |
spec: | |
accessModes: | |
- ReadWriteMany |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
DETAILS=$(nginx -V 2>&1) | |
# 2.1.1 Ensure only required modules are installed (Manual) | |
#echo $DETAILS | |
# 2.1.2 Ensure HTTP WebDAV module is not installed (Automated) | |
echo -n '2.1.2: ' | |
if [[ $DETAILS =~ 'http_dav_module' ]]; then echo 'fail'; else echo 'pass'; fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM registry.access.redhat.com/ubi9 | |
MAINTAINER Dan Clark <danclark@redhat.com> | |
LABEL description="IBM RTC SCM CLI" | |
COPY EWM-scmTools-Linux64-7.0.3.zip /usr/local | |
RUN dnf -y update && \ | |
dnf -y install unzip && \ | |
dnf clean all && \ | |
pushd /usr/local && \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: mirror.openshift.io/v1alpha2 | |
kind: ImageSetConfiguration | |
archiveSize: 2 | |
storageConfig: | |
local: | |
path: /opt/data/mirror | |
mirror: | |
platform: | |
channels: | |
- name: stable-4.10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global | |
log /dev/log local0 | |
log /dev/log local1 notice | |
stats socket /var/lib/haproxy/stats level admin | |
chroot /var/lib/haproxy | |
user haproxy | |
group haproxy | |
daemon | |
defaults |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
az login | |
az account set --subscription "Azure subscription 1" | |
az account show | |
OCP_TENANT_ID=$(az account show --query tenantId -o tsv) | |
echo $OCP_TENANT_ID | |
OCP_SUBSCRIPTION_ID=$(az account show --query id -o tsv) | |
echo $OCP_SUBSCRIPTION_ID | |
PREFIX=$SUBSCRIPTION_CODE-ocp-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Tool to generate an ACS scan of container images needed for any particular operator/version | |
# Requires a running ACS system. | |
OC_MIRROR="${OC_MIRROR:-oc-mirror}" | |
OCP_VERSION="${OCP_VERSION:-4.11}" | |
OPERATOR_CATALOG="${OPERATOR_CATALOG:-registry.redhat.io/redhat/redhat-operator-index}" | |
OPERATOR="${OPERATOR:-compliance-operator}" | |
#OPERATOR_CHANNEL="" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -xe | |
REGEX="registry.redhat.io|registry.access.redhat.com|quay.io" | |
OCP_VER="4.11.13" | |
CONT_NAME="samples_export" | |
IMG=$(curl -s https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp/${OCP_VER}/release.txt | grep cluster-samples-operator | awk '{print $2}') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
QUERY="kube_pod_status_phase{phase='Running'}" | |
HEADER="Authorization: Bearer sha256~....." | |
API="https://prometheus-k8s-openshift-monitoring.apps.ocp4.something.io/api/v1/query_range?query" | |
START="2022-09-02T19:10:30.781Z" | |
END="2022-09-02T19:11:30.781Z" | |
STEP="15s" | |
rawurlencode_vladr() { | |
local LANG=C | |
local IFS= |
NewerOlder