Tree after init
.
├── .ksonnet
│ └── registries
local env = std.extVar("__ksonnet/environments"); | |
local params = std.extVar("__ksonnet/params").components["guestbook-ui"]; | |
local k = import "k.libsonnet"; | |
local deployment = k.apps.v1beta1.deployment; | |
local container = k.apps.v1beta1.deployment.mixin.spec.template.spec.containersType; | |
local containerPort = container.portsType; | |
local service = k.core.v1.service; | |
local servicePort = k.core.v1.service.mixin.spec.portsType; | |
local targetPort = params.containerPort; |
local params = import "../../components/params.libsonnet"; | |
params { | |
components+: { | |
// Insert component parameter overrides here. Ex: | |
// guestbook +: { | |
// name: "guestbook-dev", | |
// replicas: params.global.replicas, | |
// }, | |
workflows+: { | |
name: "jlewi-notebook-release-317-c33e", |
local env = std.extVar("__ksonnet/environments"); | |
local params = std.extVar("__ksonnet/params").components.kuard; | |
local k = import "k.libsonnet"; | |
local deployment = k.apps.v1beta1.deployment; | |
local container = k.apps.v1beta1.deployment.mixin.spec.template.spec.containersType; | |
local containerPort = container.portsType; | |
local service = k.core.v1.service; | |
local servicePort = k.core.v1.service.mixin.spec.portsType; | |
local targetPort = params.containerPort; |
apiVersion: 0.1.0 | |
environments: | |
default: | |
destination: | |
namespace: default | |
server: https://127.0.0.1 | |
k8sVersion: v1.7.0 | |
path: default | |
targets: | |
- cert-manager |
{ | |
meta:: { | |
v1:: { | |
local apiVersion = {apiVersion: "v1"}, | |
// Status is a return value for calls that don't return other objects. | |
status:: { | |
local kind = {kind: "Status"}, | |
new():: apiVersion + kind, | |
// Suggested HTTP return code for this status, 0 if not set. | |
withCode(code):: self + {code: code}, |
--- | |
environments: | |
dev: | |
- server: https://server-1 | |
namespace: dev | |
- server: https://server-2 | |
namespace: dev |
Manage ksonnet components | |
Usage: | |
ks component [flags] | |
ks component [command] | |
Available Commands: | |
list List known components | |
rm Delete a component from the ksonnet application |
class Alacritty < Formula | |
desc "Cross-platform, GPU-accelerated terminal emulator" | |
homepage "https://github.com/jwilm/alacritty" | |
revision 1 | |
head "https://github.com/jwilm/alacritty.git", :using => :git | |
option "with-rustc-version", "Use 'rustc' version from distribution" | |
def install | |
unless build.head? |
#!/usr/bin/env bash | |
# | |
# Copyright (c) Microsoft Corporation. All rights reserved. | |
# Licensed under the MIT License. See License.txt in the project root for license information. | |
function realpath() { /usr/bin/python -c "import os,sys; print os.path.realpath(sys.argv[1])" "$0"; } | |
CONTENTS="$(dirname "$(dirname "$(dirname "$(dirname "$(realpath "$0")")")")")" | |
ELECTRON="$CONTENTS/MacOS/Electron" | |
CLI="$CONTENTS/Resources/app/out/cli.js" | |
ELECTRON_RUN_AS_NODE=1 "$ELECTRON" "$CLI" "$@" |