This file contains hidden or 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
| SHELL := bash | |
| .ONESHELL: | |
| .SHELLFLAGS := -eu -o pipefail -c -x | |
| .DELETE_ON_ERROR: | |
| MAKEFLAGS += --warn-undefined-variables | |
| MAKEFLAGS += --no-builtin-rules | |
| MKFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST))) | |
| CURRENT_DIR := $(notdir $(patsubst %/,%,$(dir $(MKFILE_PATH)))) |
This file contains hidden or 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
| for ctx in west east; do | |
| echo "Checking cluster: ${ctx} .........\n" | |
| linkerd --context=${ctx} check || break | |
| echo "-------------\n" | |
| done |
This file contains hidden or 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
| linkerd install \ | |
| --identity-trust-anchors-file root.crt \ | |
| --identity-issuer-certificate-file issuer.crt \ | |
| --identity-issuer-key-file issuer.key \ | |
| | tee \ | |
| >(kubectl --context=west apply -f -) \ | |
| >(kubectl --context=east apply -f -) |
This file contains hidden or 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 errexit -o nounset -o pipefail | |
| function -h { | |
| cat <<USAGE | |
| USAGE: demo | |
| USAGE | |
| }; function --help { -h ;} # A nice way to handle -h and --help | |
| export LC_ALL=en_US.UTF-8 # A locale that works consistently |
This file contains hidden or 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
| import _merge from 'lodash/merge' | |
| import { useEffect, useState } from 'react' | |
| import { BehaviorSubject, combineLatest, interval, of, Subject } from 'rxjs' | |
| import { fromFetch } from 'rxjs/fetch' | |
| import { | |
| filter, | |
| map, | |
| materialize, | |
| pairwise, | |
| pluck, |
This file contains hidden or 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
| :root { | |
| --toolbar-regular-height: 56px; | |
| } | |
| @media (min-width: 0px) and (orientation: landscape) { | |
| :root { | |
| --toolbar-regular-height: 48px; | |
| } | |
| } |
This file contains hidden or 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
| SHELL := bash | |
| .ONESHELL: | |
| .SHELLFLAGS := -eu -o pipefail -c -x | |
| .DELETE_ON_ERROR: | |
| MAKEFLAGS += --warn-undefined-variables | |
| MAKEFLAGS += --no-builtin-rules | |
| MKFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST))) | |
| CURRENT_DIR := $(notdir $(patsubst %/,%,$(dir $(MKFILE_PATH)))) |
This file contains hidden or 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: extensions/v1beta1 | |
| kind: Deployment | |
| metadata: | |
| name: fortune-teller-app | |
| labels: | |
| k8s-app: fortune-teller-app | |
| spec: | |
| replicas: 1 | |
| template: |
This file contains hidden or 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
| import React, { useState, useEffect, useRef } from 'react'; | |
| import fetch from 'fetch-hoc'; | |
| import classNames from 'classnames'; | |
| import { useHotkeys } from 'react-hotkeys-hook'; | |
| const scrollOpts = { behavior: "smooth", block: "nearest" }; | |
| const Row = props => { | |
| const {data, selected} = props; | |
| const [visible, setVisible] = useState(true); |
This file contains hidden or 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: TrafficTarget | |
| apiVersion: access.smi-spec.io/v1alpha1 | |
| metadata: | |
| name: path-specific | |
| namespace: default | |
| destination: | |
| # Note: no service account name | |
| name: service-a | |
| # Note: no namespace, these policies should live in the namespace they are matching. |