Do not use initial-values.yaml
. It's an example for our blog post and does not show values safe to use in production.
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
# GOBIN indicates the path where go tooling is put. | |
GOBIN=$(shell go env GOPATH)/bin | |
##@ Tooling | |
# Versions | |
GOLANGCI_LINT_VER=v1.52.2 | |
PROTOC_GEN_GO_VERSION=v1.30.0 | |
PROTOC_GEN_GO_GRPC_VERSION=v1.3.0 | |
PROTOC_GEN_VALIDATE_VERSION=v1.0.0 |
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: v1 | |
kind: Secret | |
metadata: | |
name: index-template | |
stringData: | |
template: '{"index_patterns":["logstash-*"],"template":{"aliases":{"logstash":{}},"mappings":{"dynamic":"true","dynamic_date_formats":["strict_date_optional_time","yyyy/MM/dd HH:mm:ss Z||yyyy/MM/dd Z"],"dynamic_templates":[]},"settings":{"index":{"lifecycle":{"name":"logstash_policy","rollover_alias":"logstash"},"number_of_shards":"1","number_of_replicas":"0"}}}}' |
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
Workflow | |
Main* | |
Unknown* | |
transmit downstream cluster -> Transmitting | |
Transmitting | |
transmitted -> Agent | |
Agent | |
Agent Unknown | |
storage provisioning -> Provisioning |
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 -o pipefail -o errexit -o nounset -o errtrace | |
mkdir -p backup/ | |
for ns in $(kubectl get ns --no-headers -o jsonpath='{range .items[*]}{.metadata.name}{"\n"}{end}'); do | |
kubectl --namespace="${ns}" get -o=yaml role,rolebinding,secret,configmap | \ | |
yq eval ' | |
del( |
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
// dbgObject is useful when you have no access to console.log, to debug (e.g. using alert()) a built-in object. | |
function dbgObject(obj) { | |
if (Array.isArray(obj)) { | |
return obj | |
} | |
if (typeof obj !== "object") { | |
return obj | |
} | |
const dbg = {} | |
for (var k in obj) { |
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: Workflow | |
metadata: | |
generateName: artifact-passing-linux- | |
spec: | |
entrypoint: artifact-example | |
artifactRepositoryRef: | |
key: gcs | |
templates: | |
- name: artifact-example |
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
BEGIN MESSAGE. | |
MtURVCRvQXV1jha GLHReUbv5IY2aon p2MjDWtTt0MRYtb JXnc8xAmAqzGbQa | |
DnlO3pIFlj66crL uP1ccDkGxWWTCKq 6Xr2MZHgg6XWBAT 0Bb2PcWp4Zy6F4W | |
Zpati5yDaOHwZSQ 5dW9lDqTYNXY4yz LmfaJJSBca5W7BF ikbAy7IPFAMyAHu | |
EqrsljYIMg0Q00F eFxEL2b7yOYBwoX BVgF02IP. | |
END MESSAGE. |
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
const schema = { | |
email: { | |
presence: { allowEmpty: false, message: "required" }, | |
email: { | |
message: "valid" | |
} | |
} | |
}; | |
interface LoginFormFields { |
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
// mocks react-beautiful-dnd Droppable without the need of a DragDropContext etc. | |
jest.mock('react-beautiful-dnd', () => ({ | |
Droppable: jest.fn( | |
// params to children are `provider`, `snapshot` | |
({children}) => children({}, {}) | |
) | |
})); |
NewerOlder