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
| { | |
| local this = self, | |
| local clusterWideKinds = [ | |
| 'APIService', | |
| 'CertificateSigningRequest', | |
| 'ClusterRole', | |
| 'ClusterRoleBinding', | |
| 'ComponentStatus', | |
| 'CSIDriver', |
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: grafana.jet.crossplane.io/v1alpha1 | |
| kind: Dashboard | |
| metadata: | |
| annotations: | |
| crossplane.io/composition-resource-name: dashboard | |
| creationTimestamp: "2022-04-03T22:43:56Z" | |
| generateName: flux-mixin-6ab3a093b9e4c6d1297daf5e42988330-6m6qh- | |
| generation: 1 | |
| labels: | |
| crossplane.io/claim-name: flux-mixin-6ab3a093b9e4c6d1297daf5e42988330 |
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: grafana.com/v1alpha1 | |
| kind: Dashboard | |
| metadata: | |
| name: my-app-dashboards | |
| namespace: default | |
| spec: | |
| dashboard: | |
| <dashboard-as-yaml-here> | |
| folder: App |
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: grafana.com/v1 | |
| kind: Dashboards | |
| metadata: | |
| name: my-app-dashboards | |
| namespace: default | |
| spec: | |
| containers: | |
| - name: app-dashboards | |
| image: app-dashboard-image:v1.3 | |
| imagePullPolicy: IfNotPresent |
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
| function! GetJsonnetPath() | |
| let output=system("tk tool jpath " . shellescape(expand('%'))) | |
| if !v:shell_error | |
| let $JSONNET_PATH=output | |
| call lsp#stop_server('jsonnet-language-server') | |
| sleep 100m | |
| set filetype=jsonnet | |
| endif | |
| endfunction |
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
| local environments = [ | |
| { | |
| apiVersion: 'tanka.dev/v1alpha1', | |
| kind: 'Environment', | |
| metadata: { | |
| labels: { | |
| team: 'infra', | |
| }, | |
| name: 'default', | |
| namespace: 'environments/default/main.jsonnet', |
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 -euo pipefail | |
| #set -x | |
| IFS=$'\n\t' | |
| DIRNAME=$(dirname $0) | |
| if [ "$#" -lt 1 ]; then | |
| echo "Usage: `basename $0` <context> [<namespace>]" | |
| exit 1 |
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
| #!/usr/bin/env sh | |
| # Usage: export KUBECTL_EXTERNAL_DIFF=/path/to/diff.sh | |
| function warning() { | |
| ORANGE='\033[0;33m' | |
| NC='\033[0m' # No Color | |
| >&2 printf "${ORANGE}WARNING: ${1}${NC}\n" | |
| } | |
| warning "last-applied-configuration <redacted>" |
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
| package main | |
| import ( | |
| "bufio" | |
| "encoding/json" | |
| "fmt" | |
| "log" | |
| "os" | |
| "github.com/grafana/tanka/pkg/kubernetes/manifest" |