Skip to content

Instantly share code, notes, and snippets.

View afrittoli's full-sized avatar
💭
🤖 🐱

Andrea Frittoli afrittoli

💭
🤖 🐱
View GitHub Profile
### Keybase proof
I hereby claim:
* I am afrittoli on github.
* I am andreaf (https://keybase.io/andreaf) on keybase.
* I have a public key ASBT3Z_cIZNJBOOG8UTVXXRNd2_rvCmTd3az3Ppaug51TQo
@afrittoli
afrittoli / gist:48129a3315b30d77afc839234e0617fb
Created March 6, 2019 21:43
Git precommit to check if a tex source can be compiled and if the pdf is up to date
#!/bin/sh
#
# pre-commit hook.
# It runs xelatex, and if changes are detected, it fails.
# Reproducible latex builds
SOURCE_DATE_EPOCH=0 SOURCE_DATE_EPOCH_TEX_PRIMITIVES=1 xelatex tekton_knative.tex &> /dev/null
if [ ! $? -eq 0 ]; then
echo tekton_knative.tex cannot be compiled
@afrittoli
afrittoli / tekton0.7.0-release-notes.md
Last active September 19, 2019 16:45
tekton 0.7 preparation
Setting up watches. Beware: since -r was given, this may take a while!
Watches established.
/tmp/ansible-operator/runner/openaihub.ibm.com/v1alpha1/Kubeflow/kubeflow/kubeflow-cr/artifacts/7097250052950339713//stdout
ansible-playbook 2.7.10
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/usr/share/ansible/openshift']
ansible python module location = /usr/lib/python2.7/site-packages/ansible
executable location = /usr/bin/ansible-playbook
python version = 2.7.5 (default, Oct 30 2018, 23:45:53) [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]
Using /etc/ansible/ansible.cfg as config file
@afrittoli
afrittoli / gist:8440b545a6601f60aa233b8e70fc2b62
Created October 11, 2019 13:23
Configuring IBM COS as artifact storage for Tekton
# Create a COS service instance in IBM Cloud
# Create Service credentials for the service - tick "Include HMAC Credentials"
# Copy your key id access key into variables
export AWS_ACCESS_KEY_ID=[your key]
export AWS_SECRET_ACCESS_KEY=[your secret]
# Create a boto config file
# Note that I'm using the eu-geo endpoint, you can switch to the one local to you
# but make sure your bucket is either replicated across geos or created in the same
# geo you're using here.
[lint : git-source-tekton-pipelines-git-m9ptj] {"level":"warn","ts":1571050993.8798616,"logger":"fallback-logger","caller":"logging/config.go:69","msg":"Fetch GitHub commit ID from kodata failed: \"ref: refs/heads/master\" is not a valid GitHub commit ID"}
[lint : git-source-tekton-pipelines-git-m9ptj] {"level":"info","ts":1571050996.1504257,"logger":"fallback-logger","caller":"git/git.go:102","msg":"Successfully cloned https://github.com/tektoncd/pipeline @ e01fe60d0f7ab31e2182835f9b9891f2c72700b9 in path /workspace/src/github.com/tektoncd/pipeline"}
[lint : lint] level=info msg="[config_reader] Config search paths: [./ /workspace/src/github.com/tektoncd/pipeline /workspace/src/github.com/tektoncd /workspace/src/github.com /workspace/src /workspace /]"
[lint : lint] level=info msg="[config_reader] Used config file .golangci.yml"
[lint : lint] level=info msg="[lintersdb] Active 15 linters: [deadcode errcheck gocritic gofmt goimports gosec gosimple govet ineffassign staticcheck structcheck typecheck unparam u
ERROR: logging before flag.Parse: E1015 14:50:07.910232 45439 runtime.go:69] Observed a panic: "invalid memory address or nil pointer dereference" (runtime error: invalid memory address or nil pointer dereference)
/go/pkg/mod/k8s.io/[email protected]/pkg/util/runtime/runtime.go:76
/go/pkg/mod/k8s.io/[email protected]/pkg/util/runtime/runtime.go:65
/go/pkg/mod/k8s.io/[email protected]/pkg/util/runtime/runtime.go:51
/usr/local/Cellar/go/1.12.4/libexec/src/runtime/panic.go:522
/usr/local/Cellar/go/1.12.4/libexec/src/runtime/panic.go:82
/usr/local/Cellar/go/1.12.4/libexec/src/runtime/signal_unix.go:390
/go/src/github.com/tektoncd/cli/pkg/helper/pipelinerun/tracker.go:113
/go/src/github.com/tektoncd/cli/pkg/helper/pipelinerun/tracker.go:113
/go/src/github.com/tektoncd/cli/pkg/helper/pipelinerun/tracker.go:76
commit 0386243440fdbf81c5a6c8dcdf0e281237ef5415
Author: Andrea Frittoli <[email protected]>
Date: Mon Oct 21 14:10:11 2019 +0100
Support more GJSON syntax for the body
Extend the supported GJSON syntax to include queries on arrays,
which can be useful when dealing with JSON that describes
k8s resources.
[git-source-git-source-7g2ch-qfj7f] {"level":"warn","ts":1572104369.5343614,"logger":"fallback-logger","caller":"logging/config.go:69","msg":"Fetch GitHub commit ID from kodata failed: \"ref: refs/heads/master\" is not a valid GitHub commit ID"}
[git-source-git-source-7g2ch-qfj7f] {"level":"info","ts":1572104369.9381568,"logger":"fallback-logger","caller":"git/git.go:103","msg":"Successfully cloned https://github.com/tektoncd/plumbing @ master in path /workspace/source"}
[kubeconfig-6n6wt] {"level":"warn","ts":1572104370.767113,"logger":"fallback-logger","caller":"logging/config.go:69","msg":"Fetch GitHub commit ID from kodata failed: open /var/run/ko/HEAD: no such file or directory"}
[kubeconfig-6n6wt] {"level":"info","ts":1572104370.770527,"logger":"fallback-logger","caller":"kubeconfigwriter/main.go:101","msg":"kubeconfig file successfully written to /workspace/prow/kubeconfig"}
[deploy] diff [current-config] [new config]
[
[git-source-git-source-rbszd-jgw5q] {"level":"warn","ts":1572105243.044545,"logger":"fallback-logger","caller":"logging/config.go:69","msg":"Fetch GitHub commit ID from kodata failed: \"ref: refs/heads/master\" is not a valid GitHub commit ID"}
[git-source-git-source-rbszd-jgw5q] {"level":"info","ts":1572105243.7168236,"logger":"fallback-logger","caller":"git/git.go:103","msg":"Successfully cloned https://github.com/tektoncd/plumbing @ master in path /workspace/source"}
[kubeconfig-wp8c2] {"level":"warn","ts":1572105244.2574344,"logger":"fallback-logger","caller":"logging/config.go:69","msg":"Fetch GitHub commit ID from kodata failed: open /var/run/ko/HEAD: no such file or directory"}
[kubeconfig-wp8c2] {"level":"info","ts":1572105244.2613432,"logger":"fallback-logger","caller":"kubeconfigwriter/main.go:101","msg":"kubeconfig file successfully written to /workspace/prow/kubeconfig"}
[deploy] diff [current-config] [new config]