Skip to content

Instantly share code, notes, and snippets.

View settings-golang.el
(use-package go-mode
:ensure t
)
;; going to use a lot of go so go ahead and require it
(require 'go-mode)
;; gocode for autocompletion
;; https://github.com/mdempsky/gocode
(setq gocode-dir
View gist:4bba77827a56e6890f5e3633153f5153
$ tox -r -e lint
lint recreate: /Users/dhellmann/Devel/pip/pip/.tox/lint
lint installdeps: pre-commit
lint installed: -f /Users/dhellmann/.pip/wheelhouse,appdirs==1.4.4,cfgv==3.1.0,distlib==0.3.1,filelock==3.0.12,identify==1.4.21,nodeenv==1.4.0,pip==19.3.1,pre-commit==2.6.0,PyYAML==5.3.1,setuptools==42.0.2,six==1.15.0,toml==0.10.1,virtualenv==20.0.25,wheel==0.33.6
lint run-test-pre: PYTHONHASHSEED='2788464127'
lint run-test: commands[0] | pre-commit run --all-files --show-diff-on-failure
Check builtin type constructor use.......................................Passed
Check for added large files..............................................Passed
Check for case conflicts.................................................Passed
Check Toml...............................................................Passed
View metal3-deployment.yml
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
annotations:
deployment.kubernetes.io/revision: "1"
machine.openshift.io/owned: ""
creationTimestamp: "2019-11-11T16:06:00Z"
generation: 1
labels:
api: clusterapi
View gist:71f1da87f993d5825c3a0bca184ec545
$ dep ensure -update github.com/metal3-io/baremetal-operator
Solving failure: No versions of sigs.k8s.io/controller-runtime met constraints:
v0.1.10: Could not introduce sigs.k8s.io/controller-runtime@v0.1.10, as its subpackage sigs.k8s.io/controller-runtime/pkg/scheme is missing. (Package is required by github.com/metal3-io/baremetal-operator@master.)
v0.1.12: Could not introduce sigs.k8s.io/controller-runtime@v0.1.12, as its subpackage sigs.k8s.io/controller-runtime/pkg/scheme is missing. (Package is required by github.com/metal3-io/baremetal-operator@master.)
v0.1.11: Could not introduce sigs.k8s.io/controller-runtime@v0.1.11, as its subpackage sigs.k8s.io/controller-runtime/pkg/scheme is missing. (Package is required by github.com/metal3-io/baremetal-operator@master.)
v0.1.9: Could not introduce sigs.k8s.io/controller-runtime@v0.1.9, as its subpackage sigs.k8s.io/controller-runtime/pkg/scheme is missing. (Package is required by github.com/metal3-io/baremetal-operator@master.)
v0.1.8: Could not introd
View gist:2bf035eb6258b88f8ac2b43c8f3818be
$ ./node_modules/.bin/gitbook build
info: 13 plugins are installed
info: 12 explicitly listed
info: loading plugin "panel"... OK
info: loading plugin "sequence-diagrams"... OK
info: loading plugin "ga"... OK
info: loading plugin "codegroup"... OK
info: loading plugin "include-codeblock"...
warn: ace features disabled (`gitbook-plugin-ace` required)
OK
View gist:ce29ea2d3bc00de895d8553821c389e2
$ npm config ls -l
; cli configs
long = true
metrics-registry = "https://registry.npmjs.org/"
scope = ""
user-agent = "npm/6.9.0 node/v10.16.0 linux x64"
; default values
access = null
allow-same-version = false
View gist:6cbb1f2afbccc93826132207194cabdf
$ bash -x ./hack/build-gitbook.sh
+ set -o errexit
+ set -o nounset
+ set -o pipefail
++ dirname ./hack/build-gitbook.sh
+ export KUBE_ROOT=./hack/..
+ KUBE_ROOT=./hack/..
+ cd ./hack/..
+ pushd docs/book/
~/go/src/github.com/kubernetes-sigs/cluster-api/docs/book ~/go/src/github.com/kubernetes-sigs/cluster-api
View install-config.yaml
apiVersion: v1beta4
baseDomain: test.metalkube.org
metadata:
name: ostest
compute:
- name: worker
replicas: 1
controlPlane:
name: master
replicas: 3
View gist:42ce4222c3daec88b33d65239c02d3c4
level=debug msg="2019/05/31 12:55:50 [WARN] Provider \"ironic\" produced an unexpected new value for module.masters.ironic_node_v1.openshift-master-host[0], but we are tolerating it because it is using the legacy plugin SDK."
level=debug msg=" The following problems may be the cause of any confusing errors from downstream operations:"
level=debug msg=" - .driver_info: inconsistent values for sensitive attribute"
level=debug msg=" - .owner: was null, but now cty.StringVal(\"\")"
level=debug msg=" - .conductor_group: was null, but now cty.StringVal(\"\")"
level=debug msg=" - .properties[\"local_gb\"]: was cty.StringVal(\"50\"), but now cty.StringVal(\"49\")"
level=debug msg=" - .properties: new element \"capabilities\" has appeared"
level=debug msg=" - .properties: new element \"cpus\" has appeared"
level=debug msg=" - .properties: new element \"memory_mb\" has appeared"
level=debug msg="module.masters.ironic_node_v1.openshift-master-host[0]: Creation complete after 3m57s [
View gist:a9c56d76f4d2ac3a49ac4848268910e6
2019-05-31 12:45:09.780 12 ERROR ironic_inspector.process Traceback (most recent call last):
2019-05-31 12:45:09.780 12 ERROR ironic_inspector.process File "/usr/lib/python2.7/site-packages/ironic_inspector/process.py", line 228, in process
2019-05-31 12:45:09.780 12 ERROR ironic_inspector.process result = _process_node(node_info, node, introspection_data)
2019-05-31 12:45:09.780 12 ERROR ironic_inspector.process File "/usr/lib/python2.7/site-packages/ironic_inspector/node_cache.py", line 610, in inner
2019-05-31 12:45:09.780 12 ERROR ironic_inspector.process return func(node_info, *args, **kwargs)
2019-05-31 12:45:09.780 12 ERROR ironic_inspector.process File "/usr/lib/python2.7/site-packages/ironic_inspector/node_cache.py", line 588, in inner
2019-05-31 12:45:09.780 12 ERROR ironic_inspector.process node_info.finished(istate.Events.error, error=str(exc))
2019-05-31 12:45:09.780 12 ERROR ironic_inspector.process File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in
You can’t perform that action at this time.