Skip to content

Instantly share code, notes, and snippets.

View eriknelson's full-sized avatar
🤘

Erik Nelson eriknelson

🤘
View GitHub Profile
diff --git a/pkg/broker/broker.go b/pkg/broker/broker.go
index 4064d314..eeb8f4d8 100644
--- a/pkg/broker/broker.go
+++ b/pkg/broker/broker.go
@@ -277,6 +277,7 @@ func (a AnsibleBroker) Bootstrap() (*BootstrapResponse, error) {
for _, p := range s.Plans {
if p.ID == "" {
a.log.Errorf("We have a plan that did not get its id generated: %v", p.Name)
+ continue
}
[2017-10-18T20:32:20.868Z] [INFO] Request: "PATCH /ansible-service-broker/v2/service_instances/08331836-fe2e-44c5-9618-7d79b3f0115d?accepts_incomplete=true HTTP/1.1\r\nHost: asb.ansible-service-broker.svc:1338\r\n
Accept-Encoding: gzip\r\nContent-Length: 2\r\nContent-Type: application/json\r\nUser-Agent: Go-http-client/1.1\r\nX-Broker-Api-Originating-Identity: kubernetes eyJncm91cHMiOlsic3lzdGVtOmF1dGhlbnRpY2F0ZWQ6b2F1dGgiL
CJzeXN0ZW06YXV0aGVudGljYXRlZCJdLCJzY29wZXMuYXV0aG9yaXphdGlvbi5vcGVuc2hpZnQuaW8iOlsidXNlcjpmdWxsIl0sInVpZCI6IiIsInVzZXJuYW1lIjoiYWRtaW4ifQ==\r\nX-Broker-Api-Version: 2.12\r\n\r\n{}"
This file has been truncated, but you can view the full file.
I1019 15:41:11.145069 62 feature_gate.go:156] feature gates: map[OriginatingIdentity:true]
I1019 15:41:11.145200 62 flags.go:52] FLAG: --address="0.0.0.0"
I1019 15:41:11.145212 62 flags.go:52] FLAG: --alsologtostderr="false"
I1019 15:41:11.145217 62 flags.go:52] FLAG: --api-content-type="application/json"
I1019 15:41:11.145222 62 flags.go:52] FLAG: --broker-relist-interval="5m0s"
I1019 15:41:11.145227 62 flags.go:52] FLAG: --contention-profiling="false"
I1019 15:41:11.145232 62 flags.go:52] FLAG: --enable-osb-api-context-profile="true"
I1019 15:41:11.145235 62 flags.go:52] FLAG: --feature-gates="OriginatingIdentity=true"
I1019 15:41:11.145244 62 flags.go:52] FLAG: --k8s-api-server-url=""
I1019 15:41:11.145250 62 flags.go:52] FLAG: --k8s-kubeconfig=""
This file has been truncated, but you can view the full file.
I1106 20:12:56.922297 38 feature_gate.go:156] feature gates: map[OriginatingIdentity:true]
I1106 20:12:56.922470 38 controller_manager.go:96] Building k8s kubeconfig
I1106 20:12:56.924966 38 controller_manager.go:124] Building service-catalog kubeconfig for url:
I1106 20:12:56.924987 38 controller_manager.go:131] Using inClusterConfig to talk to service catalog API server -- make sure your API server is registered with the aggregator
I1106 20:12:56.925594 38 controller_manager.go:144] Starting http server and mux
I1106 20:12:56.925642 38 controller_manager.go:173] Creating event broadcaster
I1106 20:12:56.925746 38 healthz.go:74] Installing healthz checkers:"ping", "checkAPIAvailableResources"
I1106 20:12:56.925826 38 controller_manager.go:213] Using namespace kube-service-catalog for leader election lock
I1106 20:12:56.925853 38 leaderelection.go:174] attempting to acquire leader lease...
E1106 20:12:56.956947 38 event.go:260] Could not construct reference t
I1106 21:30:01.223074 64 feature_gate.go:156] feature gates: map[OriginatingIdentity:true]
I1106 21:30:01.223186 64 controller_manager.go:96] Building k8s kubeconfig
I1106 21:30:01.224824 64 controller_manager.go:124] Building service-catalog kubeconfig for url:
I1106 21:30:01.224834 64 controller_manager.go:131] Using inClusterConfig to talk to service catalog API server -- make sure your API server is registered with the aggregator
I1106 21:30:01.224919 64 controller_manager.go:144] Starting http server and mux
I1106 21:30:01.224930 64 controller_manager.go:173] Creating event broadcaster
I1106 21:30:01.225438 64 healthz.go:74] Installing healthz checkers:"ping", "checkAPIAvailableResources"
I1106 21:30:01.225449 64 controller_manager.go:213] Using namespace kube-service-catalog for leader election lock
I1106 21:30:01.225512 64 leaderelection.go:174] attempting to acquire leader lease...
E1106 21:30:01.340228 64 event.go:260] Could not construct reference t
diff --git a/cmd/broker/main.go b/cmd/broker/main.go
index 15895167..0e0af329 100644
--- a/cmd/broker/main.go
+++ b/cmd/broker/main.go
@@ -16,11 +16,103 @@
package main
-import "github.com/openshift/ansible-service-broker/pkg/app"
+import (
[vagrant@localhost ~]$ cat /etc/sysconfig/docker
# /etc/sysconfig/docker
# Modify these options if you want to change the way the docker daemon runs
OPTIONS=' --selinux-enabled --log-driver=journald --signature-verification=False'
if [ -z "${DOCKER_CERT_PATH}" ]; then
DOCKER_CERT_PATH=/etc/docker
fi
# Do not add registries in this file anymore. Use /etc/containers/registries.conf
---
- hosts: localhost
roles:
- ansible.kubernetes-modules
vars:
interface: eth1
ip: "{{ hostvars[inventory_hostname]['ansible_' + interface]['ipv4']['address'] }}"
hostname: "{{ ip }}.nip.io"
tasks:
@eriknelson
eriknelson / History|-1065f4d2|entries.json
Last active June 29, 2023 17:29
Visual Studio Code Settings Sync Gist
{"version":1,"resource":"file:///git/backupr/scripts/ci/deep_int_test.py","entries":[{"id":"J3km.py","timestamp":1681534606443},{"id":"yP4f.py","timestamp":1681534660886},{"id":"9jF4.py","timestamp":1681534707110},{"id":"Iihf.py","timestamp":1681534734046},{"id":"w5Nk.py","timestamp":1681534746260}]}
[root@host-172-16-120-150 ~]# cat /etc/sysconfig/docker
# /etc/sysconfig/docker
# Modify these options if you want to change the way the docker daemon runs
OPTIONS=' --selinux-enabled --insecure-registry=172.30.0.0/16 --log-driver=journald --signature-verification=False'
if [ -z "${DOCKER_CERT_PATH}" ]; then
DOCKER_CERT_PATH=/etc/docker
fi
# Do not add registries in this file anymore. Use /etc/containers/registries.conf