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: apps/v1 | |
kind: Deployment | |
metadata: | |
labels: | |
app: testapp | |
name: testapp | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: |
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
metric { | |
provider = "cloudwatch" | |
max = 10 | |
query = <<EOS | |
[ | |
{ | |
"Id": "e1", | |
"Expression": "m1", | |
"Label": "ErrorCount" | |
}, |
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
--- | |
# Source: datadog/charts/kube-state-metrics/templates/serviceaccount.yaml | |
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
labels: | |
app.kubernetes.io/name: kube-state-metrics | |
helm.sh/chart: kube-state-metrics-2.8.4 | |
app.kubernetes.io/managed-by: Helm | |
app.kubernetes.io/instance: datadog |
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
name: Pull Request ChatOps Template | |
on: | |
# https://help.github.com/en/articles/events-that-trigger-workflows#issue-comment-event-issue_comment | |
issue_comment: | |
types: [created] | |
jobs: | |
example: | |
name: Example ChatOps command | |
runs-on: ubuntu-latest |
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: argoproj.io/v1alpha1 | |
kind: Application | |
metadata: | |
name: apps | |
namespace: kube-system | |
spec: | |
project: default | |
source: | |
repoURL: https://github.com/mumoshu/configrepo.git | |
targetRevision: HEAD |
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
// See: Introduction to Range | |
// http://www.quirksmode.org/dom/range_intro.html | |
var range = document.createRange(); | |
// In which DOM node does the Range start or end? | |
range.setStart(selectionObject.anchorNode, selectionObject.anchorOffset); | |
// At which text offset does the Range start or end? The text offset is the position of the first or last character in the text node that's part of the Range. | |
range.setEnd(selectionObject.focusNode, selectionObject.focusOffset); |
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
kind: ServiceAccount | |
apiVersion: v1 | |
metadata: | |
name: datadog-cluster-agent | |
namespace: default | |
--- | |
apiVersion: rbac.authorization.k8s.io/v1 | |
kind: ClusterRole | |
metadata: | |
name: datadog-cluster-agent |
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: appmesh.k8s.aws/v1alpha1 | |
kind: VirtualNode | |
metadata: | |
# Matches APPMESH_VIRTUAL_NODE_NAME=mesh/global/virtualNode/podinfo-demo envvar injected to pods by appmesh-inject | |
# so that appmesh-controller can locate this virtual node from the pod | |
name: podinfo | |
namespace: demo | |
spec: | |
meshName: global | |
listeners: |
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
#!/bin/bash | |
set -e | |
if [ ! -z "$DEBUG" ]; then | |
set -vx | |
fi | |
kubectl get po -a --all-namespaces | grep -v ^NAME | fzf | awk '{ print $1, $2 }' > ns-pod |
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
$ HELM_HOME=$HOME/Library/helm make install | |
scripts/update-gofmt.sh | |
scripts/verify-gofmt.sh | |
scripts/verify-golint.sh | |
scripts/verify-govet.sh | |
+ go vet ./pkg/... | |
go: warning: "./pkg/..." matched no packages | |
no packages to vet | |
+ go vet ./cmd/... | |
# github.com/databus23/helm-diff/vendor/github.com/deislabs/oras/pkg/context |