Skip to content

Commit

Permalink
Merge pull request #28 from warm-metal/release-4
Browse files Browse the repository at this point in the history
Prepares a new release
  • Loading branch information
kitt1987 authored May 8, 2021
2 parents a2bcfaf + ac56d86 commit 7786f03
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 18 deletions.
17 changes: 14 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Currently, the plugin can only work on **containerd**.

## Features
* Debug workloads or images,
* Image Builder for containerd, w/ host HTTP_PROXY settings,
* Multi-arch image Builder for containerd, w/ host HTTP_PROXY settings,
* [CliApp](https://github.com/warm-metal/cliapp#cliapp).

## Installation
Expand All @@ -24,10 +24,10 @@ You can also download the pre-built binary.

```shell script
# For MacOS, the administrator privilege is required to save kubectl-dev to /usr/local/bin. Run
sudo sh -c 'curl -skL https://github.com/warm-metal/kubectl-dev/releases/download/v0.3.0/kubectl-dev.darwin-amd64.tpxz | tar -C /usr/local/bin/ -xpf -'
sudo sh -c 'curl -skL https://github.com/warm-metal/kubectl-dev/releases/download/v0.4.0/kubectl-dev.darwin-amd64.tpxz | tar -C /usr/local/bin/ -xpf -'

# For Linux, run
sudo sh -c 'curl -skL https://github.com/warm-metal/kubectl-dev/releases/download/v0.3.0/kubectl-dev.linux-amd64.tpxz | tar -C /usr/local/bin/ -xpf -'
sudo sh -c 'curl -skL https://github.com/warm-metal/kubectl-dev/releases/download/v0.4.0/kubectl-dev.linux-amd64.tpxz | tar -C /usr/local/bin/ -xpf -'
```

## Initialization
Expand Down Expand Up @@ -68,6 +68,17 @@ The build command also can copy artifacts from a stage to a local directory.
kubectl dev build -f hack/dev/Dockerfile --local _output/ --target mac-cli
```

### Private image and insecure image registry
The builder also support pushing private images and insecure registries.

```shell script
# Log into a image registry as using "docker login"
kubectl dev login

# Build image and push it to an insecure registry.
kubectl dev build -t foo:bar --push --insecure
```

### Debug workloads

If an app failed, it would crash, wait for deps and has no responding, fails on some libraries,
Expand Down
30 changes: 15 additions & 15 deletions pkg/cmd/prepare_manifests.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ spec:
description: CliAppStatus defines the observed state of CliApp
properties:
error:
description: Specify Errors on reconcile
description: Specify Errors on reconcile.
type: string
lastPhaseTransition:
description: Timestamp of the last phase transition
Expand Down Expand Up @@ -530,7 +530,7 @@ data:
debug = true
# root is where all buildkit state is stored.
root = "/var/lib/buildkit"
snapshot-root = "/var/lib/buildkit/local-snapshot"
local-mount-source-root = "/var/lib/buildkit/local-mnt-src"
# insecure-entitlements allows insecure entitlements, disabled by default.
insecure-entitlements = [ "network.host", "security.insecure" ]
Expand All @@ -545,15 +545,15 @@ data:
[worker.containerd]
address = "/run/containerd/containerd.sock"
enabled = true
platforms = [ "linux/amd64" ]
platforms = [ "linux/amd64", "linux/arm64", "linux/arm/v7", "linux/arm/v6", "linux/riscv64", "linux/ppc64le", "linux/s390x", "linux/386", "linux/mips64le", "linux/mips64" ]
namespace = "k8s.io"
gc = true
[[worker.containerd.gcpolicy]]
keepBytes = 10240000000
keepDuration = 3600
kind: ConfigMap
metadata:
name: buildkitd.toml-55httfg5dm
name: buildkitd.toml-2fc6k85c68
---
apiVersion: v1
kind: Service
Expand Down Expand Up @@ -623,7 +623,7 @@ spec:
- --config=controller_manager_config.yaml
command:
- /manager
image: docker.io/warmmetal/cliapp-controller:v0.3.0
image: docker.io/warmmetal/cliapp-controller:v0.4.0
livenessProbe:
httpGet:
path: /healthz
Expand Down Expand Up @@ -686,7 +686,7 @@ spec:
app: session-gate
spec:
containers:
- image: docker.io/warmmetal/session-gate:v0.2.0
- image: docker.io/warmmetal/session-gate:v0.3.0
name: session-gate
ports:
- containerPort: 8001
Expand Down Expand Up @@ -718,7 +718,7 @@ spec:
- env:
- name: BUILDKIT_STEP_LOG_MAX_SIZE
value: "-1"
image: docker.io/warmmetal/buildkit:0.8.1-1
image: docker.io/warmmetal/buildkit:v0.8.3-0
livenessProbe:
exec:
command:
Expand Down Expand Up @@ -1106,7 +1106,7 @@ spec:
description: CliAppStatus defines the observed state of CliApp
properties:
error:
description: Specify Errors on reconcile
description: Specify Errors on reconcile.
type: string
lastPhaseTransition:
description: Timestamp of the last phase transition
Expand Down Expand Up @@ -1479,7 +1479,7 @@ data:
debug = true
# root is where all buildkit state is stored.
root = "/var/lib/buildkit"
snapshot-root = "/var/lib/buildkit/local-snapshot"
local-mount-source-root = "/var/lib/buildkit/local-mnt-src"
# insecure-entitlements allows insecure entitlements, disabled by default.
insecure-entitlements = [ "network.host", "security.insecure" ]
Expand All @@ -1494,15 +1494,15 @@ data:
[worker.containerd]
address = "/run/containerd/containerd.sock"
enabled = true
platforms = [ "linux/amd64" ]
platforms = [ "linux/amd64", "linux/arm64", "linux/arm/v7", "linux/arm/v6", "linux/riscv64", "linux/ppc64le", "linux/s390x", "linux/386", "linux/mips64le", "linux/mips64" ]
namespace = "k8s.io"
gc = true
[[worker.containerd.gcpolicy]]
keepBytes = 10240000000
keepDuration = 3600
kind: ConfigMap
metadata:
name: buildkitd.toml-55httfg5dm
name: buildkitd.toml-2fc6k85c68
namespace: cliapp-system
---
apiVersion: v1
Expand Down Expand Up @@ -1609,7 +1609,7 @@ spec:
- env:
- name: BUILDKIT_STEP_LOG_MAX_SIZE
value: "-1"
image: docker.io/warmmetal/buildkit:0.8.1-1
image: docker.io/warmmetal/buildkit:v0.8.3-0
livenessProbe:
exec:
command:
Expand Down Expand Up @@ -1665,7 +1665,7 @@ spec:
items:
- key: buildkitd.toml
path: buildkitd.toml
name: buildkitd.toml-55httfg5dm
name: buildkitd.toml-2fc6k85c68
name: buildkitd-conf
- hostPath:
path: /run/containerd
Expand Down Expand Up @@ -1694,7 +1694,7 @@ spec:
- --config=controller_manager_config.yaml
command:
- /manager
image: docker.io/warmmetal/cliapp-controller:v0.3.0
image: docker.io/warmmetal/cliapp-controller:v0.4.0
livenessProbe:
httpGet:
path: /healthz
Expand Down Expand Up @@ -1757,7 +1757,7 @@ spec:
app: session-gate
spec:
containers:
- image: docker.io/warmmetal/session-gate:v0.2.0
- image: docker.io/warmmetal/session-gate:v0.3.0
name: session-gate
ports:
- containerPort: 8001
Expand Down

0 comments on commit 7786f03

Please sign in to comment.