- Logs
- Logging Decisions
- Logging Stories
- Logging Negatives - hard to know if you're not finding it, or if the log entry doesn't exist
- Logging Storage
- Structured Logging
- Include a human readable "msg" which helps reading the flow of events - tells the story
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This was the basis of the individual examples that were written. | |
Feature: Monopoly Game | |
Scenario: Player Movement | |
Given player "A" on "The Angel Islington" | |
When the player rolls a 2 and 1 | |
Then they land on "Pentonville Road" | |
Scenario: Passing through GO! | |
Given: player "B" on "Park Lane" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: capi.gitops.solutions/v1alpha1 | |
kind: ClusterBootstrapConfig | |
metadata: | |
name: clusterbootstrapconfig-sample | |
namespace: default | |
spec: | |
clusterSelector: | |
matchLabels: | |
weave.works/spike: upa | |
jobTemplates: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine:3.12 | |
RUN apk add --no-cache curl jq bash | |
CMD ["/bin/sh"] |
- Kevin McDermott kmcdermo@redhat.com
- Rob Blake rblake@redhat.com
Getting to GitOps requires that the staff tasked with looking after business services are confident that changes that are deployed automatically meet the certain standards.
How do we build that confidence?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package yaml | |
import ( | |
"sort" | |
"gopkg.in/yaml.v2" | |
sigsyaml "sigs.k8s.io/yaml" | |
) | |
type orderFunc func(a, b string) bool |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apps: | |
- name: my-application | |
description: my-app | |
repository: | |
source: https://github.com/testing/testing.git | |
secret: my-named-secret | |
token: my-named-token:token | |
environments: | |
- name: dev | |
description: for all developers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package clock | |
import ( | |
"reflect" | |
"testing" | |
"time" | |
) | |
func TestSeconds(t *testing.T) { | |
var tests = []struct { |
Please ensure you have Go 1.8 installed on your machine.
If you're on Ubuntu this might help
$ sudo add-apt-repository ppa:longsleep/golang-backports
$ sudo apt-get update
$ sudo apt-get install golang-go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import Flask | |
from logging.handlers import SysLogHandler | |
# $ python hello.py | |
# * Restarting with stat | |
# * Debugger is active! | |
# -------------------------------------------------------------------------------- | |
# INFO in hello [hello.py:9]: | |
# Getting / in the Hello flask app | |
# -------------------------------------------------------------------------------- |
NewerOlder