Mostly geared towards GNU make
I've used ->|
to indicate a tab character, as it's clearer to read than ⇥
- Set a target, its dependencies and the commands to execute in order
target: [dependencies]
->|
package job | |
import ( | |
"fmt" | |
"github.com/go-co-op/gocron" | |
"reflect" | |
"strings" | |
"sync" | |
"time" | |
) |
package status | |
import ( | |
"experiment/pkg/k8s" | |
"experiment/pkg/util" | |
"fmt" | |
v1 "k8s.io/api/core/v1" | |
metaV1 "k8s.io/apimachinery/pkg/apis/meta/v1" | |
"k8s.io/client-go/kubernetes" | |
"time" |
package main | |
import ( | |
"bufio" | |
"bytes" | |
"fmt" | |
"io" | |
"k8s.io/client-go/kubernetes/scheme" | |
"os" | |
"os/user" |
#!/bin/bash | |
# | |
# Generates client and server certificates used to enable HTTPS | |
# remote authentication to a Docker daemon. | |
# | |
# See http://docs.docker.com/articles/https/ | |
# | |
# To start the Docker Daemon: | |
# | |
# sudo docker -d \ |
fun buildRequest( | |
userId: String, | |
pemReader: Reader | |
): HttpRequestBuilder.() -> Unit { | |
val chefServerHost = "https://chef-server.vpc" | |
val organizationPath = "/organizations/someorg" | |
return { | |
val httpMethod = method | |
val path = "$organizationPath/${url.encodedPath}" |
title |
---|
JSONPath Support |
JSONPath template is composed of JSONPath expressions enclosed by {}. And we add three functions in addition to the original JSONPath syntax:
$
operator is optional since the expression always starts from the root object by default.""
to quote text inside JSONPath expressions.range
operator to iterate lists.approvers | title | ||
---|---|---|---|
|
Overview of kubectl |
kubectl
is a command line interface for running commands against Kubernetes clusters. This overview covers kubectl
syntax, describes the command operations, and provides common examples. For details about each command, including all the supported flags and subcommands, see the kubectl reference documentation. For installation instructions see installing kubectl.
approvers | title | ||||
---|---|---|---|---|---|
|
kubectl Cheat Sheet |
See also: Kubectl Overview and JsonPath Guide.