Skip to content

Instantly share code, notes, and snippets.

View eriknelson's full-sized avatar
🤘

Erik Nelson eriknelson

🤘
View GitHub Profile
package main
import (
"fmt"
)
type APBAction string
type COEType string
type Result string
From 5d9afb10f694bc0a0d34ddfc43c545d546ed1351 Mon Sep 17 00:00:00 2001
From: Erik Nelson <[email protected]>
Date: Wed, 23 Aug 2017 17:11:41 -0400
Subject: [PATCH] initial relist commit
* Adds proposed fields to the ServiceBroker
---
pkg/apis/servicecatalog/testing/fuzzer.go | 4 ++++
pkg/apis/servicecatalog/types.go | 22 ++++++++++++++++++++++
pkg/apis/servicecatalog/v1alpha1/defaults.go | 12 ++++++++++++
ERROR: logging before flag.Parse: I0831 20:40:43.977411 1 flags.go:52] FLAG: --address="0.0.0.0"
ERROR: logging before flag.Parse: I0831 20:40:43.977779 1 flags.go:52] FLAG: --alsologtostderr="false"
ERROR: logging before flag.Parse: I0831 20:40:43.977796 1 flags.go:52] FLAG: --api-content-type="application/json"
ERROR: logging before flag.Parse: I0831 20:40:43.977809 1 flags.go:52] FLAG: --broker-relist-interval="24h0m0s"
ERROR: logging before flag.Parse: I0831 20:40:43.977827 1 flags.go:52] FLAG: --contention-profiling="false"
ERROR: logging before flag.Parse: I0831 20:40:43.977846 1 flags.go:52] FLAG: --enable-osb-api-context-profile="true"
ERROR: logging before flag.Parse: I0831 20:40:43.977853 1 flags.go:52] FLAG: --k8s-api-server-url=""
ERROR: logging before flag.Parse: I0831 20:40:43.977861 1 flags.go:52] FLAG: --k8s-kubeconfig=""
ERROR: logging before flag.Parse: I0831 20:40:43.977867 1 flags.go:52] FLAG: --leader-elect="false"
ERROR: logging befor
============================================================
Checking for List-Unsubscribe headers...
============================================================
Found unsub header in msg [ 2 ] from: [ "Qatar Airways" <[email protected]> ]
List-Unsubscribe: <http://qr.qatarairways.com/pub/optout/UnsubscribeOneStepConfirmAction?YES=true&_ri_=X0Gzc2X%3DYQpglLjHJlTQGmCEwzcJNPyWAvKkzdzg4ykAoezgzdLzazbzfyg7E4NzakgzaCTzfLRzedzgt8R&_ei_=EolaGGF4SNMvxFF7KucKuWObEvbgz_lhDCu4wSJxEH3Z_JWEZp1n8F_ZWur6_mDUeaRx0KaRl21dG6NK>, <mailto:unsubscribe-YQpglLjHJlTQGmCEwzcJNPyWAvKkzdzg4ykAoezgzdLzazbzfyg7E4NzakgzaCTzfLRzedzgt8R@imh.rsys2.com?subject=List-Unsubscribe>
Found unsub header in msg [ 6 ] from: [ "Kite" <[email protected]> ]
List-Unsubscribe: <mailto:32.LJEWU5KBO5AUEWDNJIYEIMBNKZBFINLHKZVW4RTJJRGES===@unsubscribe2.customer.io>, <http://track.customer.io/unsubscribe/ZIjuAwABXmJ0D0-VBT5gVknFiLLI>
============================================================
#!/usr/bin/env python
import imaplib
import re
import email
################################################################################
# RULE DEFINITIONS
################################################################################
class ListHeaderRule:
#!/usr/bin/env python
import imaplib
import re
import email
import os
################################################################################
# RULE DEFINITIONS
################################################################################
Step 5/7 : RUN glide install && mkdir 3rdparty && cd 3rdparty && git clone -b 2.x https://github.com/swagger-api/swagger-ui.git && cd ../docs && ln -s ../3rdparty/swagger-ui/dist swagger-ui && cd ../ && go build
---> Running in ad7baa9a26bc
[WARN] The name listed in the config file (kore-poc) does not match the current location (github.com/dahendel/kore-poc)
[INFO] Downloading dependencies. Please wait...
[INFO] --> Fetching golang.org/x/net.
[INFO] --> Fetching github.com/emicklei/go-restful-swagger12.
[INFO] --> Fetching github.com/emicklei/go-restful.
[INFO] --> Fetching github.com/mattn/go-sqlite3.
[INFO] Setting references.
[INFO] --> Setting version for github.com/mattn/go-sqlite3 to ca5e3819723d8eeaf170ad510e7da1d6d2e94a08.
{
"kind": "APIResourceList",
"apiVersion": "v1",
"groupVersion": "servicecatalog.k8s.io/v1alpha1",
"resources": [
{
"name": "servicebrokers",
"singularName": "",
"namespaced": false,
"kind": "ServiceBroker",
agg := make(chan string)
for _, ch := range chans {
go func(c chan string) {
for msg := range c {
agg <- msg
}
}(ch)
}
select {
diff --git a/pkg/apb/secrets.go b/pkg/apb/secrets.go
index 8b856e9c..d4f2a627 100644
--- a/pkg/apb/secrets.go
+++ b/pkg/apb/secrets.go
@@ -103,11 +103,11 @@ func InitializeSecretsCache(config []SecretsConfig, log *logging.Logger) {
// FilterSecrets - Filters all parameters masked by a secret out of the given
// specs
-func FilterSecrets(inSpecs []*Spec) ([]*Spec, error) {
+func FilterSecrets(inSpecs []*Spec, config ClusterConfig) ([]*Spec, error) {