Skip to content

Instantly share code, notes, and snippets.

View Miciah's full-sized avatar

Miciah Dashiel Butler Masters Miciah

  • Red Hat, Inc.
  • North Carolina
View GitHub Profile
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
creationTimestamp: null
name: ingresscontrollers.operator.openshift.io
spec:
group: operator.openshift.io
names:
% oc -n openshift-ingress-operator logs deploy/ingress-operator -f --tail=0
2019-06-19T15:32:04.820Z INFO operator.controller controller/controller.go:78 queueing ingress {"name": "default", "related": "/apis/apps/v1/namespaces/openshift-ingress/deployments/router-default"}
2019-06-19T15:32:04.821Z INFO operator.controller controller/controller.go:78 queueing ingress {"name": "default", "related": "/apis/apps/v1/namespaces/openshift-ingress/deployments/router-default"}
2019-06-19T15:32:04.821Z INFO operator.controller controller/controller.go:119 reconciling {"request": "openshift-ingress-operator/default"}
2019-06-19T15:32:04.837Z INFO operator.controller controller/controller.go:78 queueing ingress {"name": "default", "related": "/apis/apps/v1/namespaces/openshift-ingress/deployments/router-default"}
2019-06-19T15:32:04.838Z INFO operator.controller controller/controller.go:78 queueing ingress
@Miciah
Miciah / crd.diff
Last active June 12, 2019 20:22
CRD regenerated with openshift/api b8110efdf3e540766a9a4131323495d9fbf1f8f2
diff --git a/manifests/00-custom-resource-definition.yaml b/manifests/00-custom-resource-definition.yaml
index f049c627..56c5e0fa 100644
--- a/manifests/00-custom-resource-definition.yaml
+++ b/manifests/00-custom-resource-definition.yaml
@@ -435,9 +435,30 @@ spec:
controller endpoints to other networks, enable load balancer integrations,
etc. \n If unset, the default is based on infrastructure.config.openshift.io/cluster
.status.platform: \n AWS: LoadBalancerService Azure: LoadBalancerService
- \ Libvirt: HostNetwork \n Any other platform types (including None)
- default to HostNetwork. \n endpointPublishingStrategy cannot be updated."
[OSEv3:children]
masters
nodes
etcd
[OSEv3:vars]
ansible_ssh_user=centos
ansible_become=yes
openshift_enable_service_catalog=false
#!/bin/bash
set -euo pipefail
name="$(find ~/tmp -name mmasters\* |
awk '{ match($0,"([0-9]+)$",arr); if (arr[1] > n) { n = arr[1] } }
END { print "mmasters" strtonum(n+1) }')"
mkdir ~/tmp/"$name"
cd ~/tmp/"$name"
---
- name: Print the version of the atomic-openshift-master package from Yum
hosts: all
tasks:
- name: Get package information
yum:
list: atomic-openshift-master
register: pkg
#!/bin/bash
for fn
do
declare -A seen
while [[ -h "$fn" ]]
do
if [[ -n "${seen[$fn]}" ]]
then
printf 'Cycle detected; terminating.\n'
package collaboration
const (
// CollaboratorAnnotation is the key for an annotation on Namespace that
// specifies collaborators on the namespace.
CollaboratorAnnotation = "authorization.openshift.io/collaborators"
)
// CollaboratorType is a type of collaborator on a project.
type CollaboratorType string
@Miciah
Miciah / phone
Created September 7, 2016 18:46
#!/bin/bash
set -euo pipefail
uid=
rhuser "$*" rhatPhoneExt telephoneNumber homePhone |
while IFS=' ' read -r key value
do
if [[ "$key" = 'dn:' ]]
then
#!/bin/bash
set -euo pipefail
declare -a uids_ary=( ${1//,/ } )
printf -v uids_list '(uid=%s)' "${uids_ary[@]}"
shift
declare -a criteria=( "(|$uids_list)" )
while [[ "${1-}" = *=* ]]
do