Skip to content

Instantly share code, notes, and snippets.

Avatar

Dr. Stefan Schimanski sttts

  • Red Hat
  • Germany
View GitHub Profile
View gist:5e837fe18c64fe2f32828b2674cc3947
diff --git a/pkg/start/start.go b/pkg/start/start.go
index 01a0ce30..e8811fb4 100644
--- a/pkg/start/start.go
+++ b/pkg/start/start.go
@@ -127,8 +127,6 @@ func (b *startCommand) Run() error {
if err = waitUntilPodsRunning(ctx, client, b.requiredPodPrefixes); err != nil {
return err
}
- cancel()
- assetsDone.Wait()
View gist:dcedc86effa7b2306b57c1afafc08c3e
diff --git a/pkg/start/start.go b/pkg/start/start.go
index 01a0ce30..f972bcdc 100644
--- a/pkg/start/start.go
+++ b/pkg/start/start.go
@@ -127,8 +127,11 @@ func (b *startCommand) Run() error {
if err = waitUntilPodsRunning(ctx, client, b.requiredPodPrefixes); err != nil {
return err
}
- cancel()
- assetsDone.Wait()
@sttts
sttts / gist:32c2d3916e94895ed6f66f11f7f06009
Created Oct 8, 2020
kubectl get nodes | grep master | awk '{print $1;}' | while read NODE; do echo $NODE; { oc debug node/$NODE -- chroot /host bash -c 'tail -f /var/log/kube-apiserver/audit.log' | grep subjectaccessreview | jq '{"w":.responseObject.spec, "u":.userAgent, "r":.annotations."authorization.k8s.io/decision"}' | tee $NODE.log; } &; done
View gist:32c2d3916e94895ed6f66f11f7f06009
{
"w": {
"nonResourceAttributes": {
"path": "/metrics",
"verb": "get"
},
"user": "system:serviceaccount:openshift-monitoring:prometheus-k8s",
"groups": [
"system:serviceaccounts",
"system:serviceaccounts:openshift-monitoring",
View gist:0e111761714ed2af2bdd07b977161ce9
commit 0cefdb7c7aa6af140515b042bc1e1b0c7b03f78c
Author: Dr. Stefan Schimanski <stefan.schimanski@gmail.com>
Date: Tue Sep 29 14:00:56 2020 +0200
Fix OpenAPI
diff --git a/securityinternal/v1/0000_04_securityinternal-openshift_01_rangeallocation.crd.yaml b/securityinternal/v1/0000_04_securityinternal-openshift_01_rangeallocation.crd.yaml
index 1d8e85be..b3bda333 100644
--- a/securityinternal/v1/0000_04_securityinternal-openshift_01_rangeallocation.crd.yaml
+++ b/securityinternal/v1/0000_04_securityinternal-openshift_01_rangeallocation.crd.yaml
View gist:3d858df53a5787d6b5304461d552e8dd
diff --git a/openshift-kube-apiserver/admission/customresourcevalidation/customresourcevalidationregistration/cr_validation_registration.go b/openshift-kube-apiserver/admission/customresourcevalidation/customresourcevalidationregistration/cr_validation_registration.go
index 2495d4eb67b..07e98bf41d5 100644
--- a/openshift-kube-apiserver/admission/customresourcevalidation/customresourcevalidationregistration/cr_validation_registration.go
+++ b/openshift-kube-apiserver/admission/customresourcevalidation/customresourcevalidationregistration/cr_validation_registration.go
@@ -2,6 +2,7 @@ package customresourcevalidationregistration
import (
"k8s.io/apiserver/pkg/admission"
+ "k8s.io/kubernetes/openshift-kube-apiserver/admission/customresourcevalidation/proxy"
View gist:d558405ecaaa23eadb6d48cee2158993
diff --git a/pkg/operator/stalecontroller/stale_controller.go b/pkg/operator/stalecontroller/stale_controller.go
index a9b979c..c3db448 100644
--- a/pkg/operator/stalecontroller/stale_controller.go
+++ b/pkg/operator/stalecontroller/stale_controller.go
@@ -25,6 +25,8 @@ var priorityTransitions = []config.Transition{
{From: "unspecified", To: "low"},
}
+const MinimumStaleDuration = time.Hour * 24 * 30
+
View gist:b32f338d0fc221d68cf7088ff44fcdeb
This file has been truncated, but you can view the full file.
diff --git a/ci-operator/jobs/cloud-bulldozer/plow/cloud-bulldozer-plow-master-periodics.yaml b/ci-operator/jobs/cloud-bulldozer/plow/cloud-bulldozer-plow-master-periodics.yaml
index eef3202b0d..95bb641e67 100644
--- a/ci-operator/jobs/cloud-bulldozer/plow/cloud-bulldozer-plow-master-periodics.yaml
+++ b/ci-operator/jobs/cloud-bulldozer/plow/cloud-bulldozer-plow-master-periodics.yaml
@@ -62,17 +62,11 @@ periodics:
- mountPath: /etc/pull-secret
name: pull-secret
readOnly: true
- - mountPath: /etc/sentry-dsn
View debug.patch
diff --git a/test/extended/oauth/token.go b/test/extended/oauth/token.go
index 1e40791b8f8..61612b75b1e 100644
--- a/test/extended/oauth/token.go
+++ b/test/extended/oauth/token.go
@@ -4,11 +4,15 @@ import (
"context"
"crypto/sha256"
"encoding/base64"
+ "flag"
"fmt"
View gist:ec42789a28d77b416355ec45879ff42c
This file has been truncated, but you can view the full file.
apiVersion: v1
items:
- apiVersion: v1
count: 1
eventTime: null
firstTimestamp: "2020-07-23T10:54:55Z"
involvedObject:
apiVersion: v1
kind: Endpoints
You can’t perform that action at this time.