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
| func TestDoTheThing(t *testing.T) { | |
| cases := map[string]struct{ | |
| thingArg string | |
| want bool | |
| }{ | |
| // Add test cases here. | |
| } | |
| SetupTheThing() |
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: cache.aws.crossplane.io/v1beta1 | |
| kind: ReplicationGroup | |
| metadata: | |
| name: aws-redis | |
| labels: | |
| example: "true" | |
| spec: | |
| writeConnectionSecretToRef: | |
| namespace: crossplane-system |
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
| # In this YAML an ApplicationDefinition defines the schema of a | |
| # Wordpress, while a Composition specifies what resources the | |
| # Wordpress will be composed of, and how they'll be created. | |
| --- | |
| apiVersion: crossplane.io/v1alpha1 | |
| kind: ApplicationDefinition | |
| metadata: | |
| name: wordpresses.apps.example.org | |
| spec: | |
| crdSpecTemplate: |
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: core.crossplane.io | |
| kind: DelayedConfig | |
| metadata: | |
| # Is this cluster scoped? Namespaced | |
| name: secureazuresql | |
| spec: | |
| engine: helm.sh | |
| # This is a schemaless []string. It defines all the values that can be set. | |
| values: | |
| - administratorLogin |
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
| $ grep "kind:" gitlab.yml|awk -F ':' '{ print $2 }'|sed 's/"//g'|sort -u | |
| Certificate # certmanager CRD | |
| ClusterIssuer # certmanager CRD | |
| ClusterRole | |
| ClusterRoleBinding | |
| ConfigMap | |
| CustomResourceDefinition # Only used by certmanager chart | |
| Deployment | |
| HorizontalPodAutoscaler | |
| Ingress |
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 ( | |
| "k8s.io/apimachinery/pkg/runtime" | |
| "sigs.k8s.io/controller-runtime/pkg/reconcile" | |
| "sigs.k8s.io/controller-runtime/pkg/controller/controllerutil" | |
| "github.com/crossplaneio/crossplane/pkg/apis/cooltype/v1alpha1" | |
| ) | |
| // Result of a Sync or Delete call. | |
| type Result struct { |
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
| // 20181010231740 | |
| // http://tfk-negz-ing-8gmr.REDACTED:9990/client_state.json | |
| { | |
| "/$/inet/localhost/8001": { | |
| "state": "bound", | |
| "addresses": [ | |
| "localhost:8001" | |
| ] | |
| }, |
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
| { | |
| "/%/io.l5d.k8s.daemonset/kube-system/http-incoming/l5d/#/io.l5d.k8s.http/live/8080/tasking-api": { | |
| "state": "bound", | |
| "addresses": [ | |
| "REDACTED.0.52:4141", | |
| "REDACTED.2.173:4141", | |
| "REDACTED.0.232:4141" | |
| ] | |
| } | |
| } |
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
| { | |
| "/$/inet/localhost/8001": { | |
| "state": "bound", | |
| "addresses": [ | |
| "localhost:8001" | |
| ] | |
| }, | |
| "/%/io.l5d.k8s.daemonset/kube-system/http-incoming/l5d/#/io.l5d.k8s.http/live/80/nginx": { | |
| "state": "bound", | |
| "addresses": [ |
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 -e | |
| KUBECTL="kubectl" | |
| NODES=$($KUBECTL get nodes --no-headers -o custom-columns=NAME:.metadata.name) | |
| function usage() { | |
| local node_count=0 | |
| local total_percent_cpu=0 |