Skip to content

Instantly share code, notes, and snippets.

@benmoss
Created July 12, 2022 21:09
Show Gist options
  • Save benmoss/a1dd521cac1c43d23e375d3e810d0da8 to your computer and use it in GitHub Desktop.
Save benmoss/a1dd521cac1c43d23e375d3e810d0da8 to your computer and use it in GitHub Desktop.
+ export CGO_ENABLED=0
+ CGO_ENABLED=0
+ go mod vendor
+ go mod tidy
+ go fmt ./cmd/... ./pkg/...
+ go build -trimpath -mod=vendor -o controller ./cmd/controller/...
+ ls -la ./controller
-rwxrwxr-x 1 cesium cesium 70411152 Jul 12 17:08 ./controller
+ ./hack/gen-crds.sh
+ ytt -f config/
+ go test --exec=echo ./...
+ echo SUCCESS
SUCCESS
Target cluster 'https://192.168.49.2:8443' (nodes: minikube)
kapp-controller | starting build (using Docker buildx): . -> kbld:rand-1657660134705058436-4519215223496-kapp-controller
kapp-controller | #1 [internal] load build definition from Dockerfile
kapp-controller | #1 transferring dockerfile: 32B done
kapp-controller | #1 DONE 0.0s
kapp-controller |
kapp-controller | #2 [internal] load .dockerignore
kapp-controller | #2 transferring context: 34B done
kapp-controller | #2 DONE 0.0s
kapp-controller |
kapp-controller | #3 [internal] load metadata for docker.io/library/golang:1.18.3
kapp-controller | #3 DONE 0.2s
kapp-controller |
kapp-controller | #4 [internal] load metadata for docker.io/library/photon:4.0
kapp-controller | #4 DONE 0.2s
kapp-controller |
kapp-controller | #5 [stage-1 1/6] FROM docker.io/library/photon:4.0@sha256:eda7701c8c132956af6cb10f06d643bb1e76f372c750422f2975688ca1f9b3d1
kapp-controller | #5 DONE 0.0s
kapp-controller |
kapp-controller | #6 [deps 1/9] FROM docker.io/library/golang:1.18.3@sha256:a4198105fa93307af7518b497fc703ebbc6693ee5455ccf34e263cc545c38aa6
kapp-controller | #6 resolve docker.io/library/golang:1.18.3@sha256:a4198105fa93307af7518b497fc703ebbc6693ee5455ccf34e263cc545c38aa6 done
kapp-controller | #6 DONE 0.0s
kapp-controller |
kapp-controller | #7 [internal] load build context
kapp-controller | #7 transferring context: 49.99MB 0.8s done
kapp-controller | #7 DONE 0.8s
kapp-controller |
kapp-controller | #8 [deps 6/9] RUN mkdir out
kapp-controller | #8 CACHED
kapp-controller |
kapp-controller | #9 [deps 2/9] WORKDIR /workspace
kapp-controller | #9 CACHED
kapp-controller |
kapp-controller | #10 [deps 3/9] COPY ./hack/dependencies.* ./hack/
kapp-controller | #10 CACHED
kapp-controller |
kapp-controller | #11 [deps 4/9] COPY go.* ./
kapp-controller | #11 CACHED
kapp-controller |
kapp-controller | #12 [deps 5/9] COPY vendor vendor
kapp-controller | #12 CACHED
kapp-controller |
kapp-controller | #13 [deps 7/9] RUN go run ./hack/dependencies.go install -d out --arch amd64 --os linux
kapp-controller | #13 CACHED
kapp-controller |
kapp-controller | #14 [deps 8/9] COPY . .
kapp-controller | #14 DONE 0.7s
kapp-controller |
kapp-controller | #15 [deps 9/9] RUN --mount=type=cache,target=/root/.cache/go-build CGO_ENABLED=0 GOOS=linux GOSARCH=amd64 go build -mod=vendor -ldflags="-X 'main.Version=develop'" -trimpath -o out/kapp-controller ./cmd/controller
kapp-controller | #15 DONE 2.8s
kapp-controller |
kapp-controller | #16 [stage-1 4/6] RUN chmod g+w /etc/pki/tls/certs
kapp-controller | #16 CACHED
kapp-controller |
kapp-controller | #17 [stage-1 2/6] RUN tdnf install -y git openssh-clients
kapp-controller | #17 CACHED
kapp-controller |
kapp-controller | #18 [stage-1 3/6] RUN echo "kapp-controller:x:1000:0:/home/kapp-controller:/usr/sbin/nologin" > /etc/passwd
kapp-controller | #18 CACHED
kapp-controller |
kapp-controller | #19 [stage-1 5/6] RUN cp /etc/pki/tls/certs/ca-bundle.crt /etc/pki/tls/certs/ca-bundle.crt.orig
kapp-controller | #19 CACHED
kapp-controller |
kapp-controller | #20 [stage-1 6/6] COPY --from=deps /workspace/out/* ./
kapp-controller | #20 DONE 0.3s
kapp-controller |
kapp-controller | #21 exporting to image
kapp-controller | #21 exporting layers
kapp-controller | #21 exporting layers 0.8s done
kapp-controller | #21 writing image sha256:2c5aee5e26765cb2f84aa8d1deb627990a0120303437efb8e7fe8a6fead4029c done
kapp-controller | #21 naming to docker.io/library/kbld:rand-1657660134705058436-4519215223496-kapp-controller done
kapp-controller | #21 DONE 0.8s
kapp-controller | Untagged: kbld:rand-1657660134705058436-4519215223496-kapp-controller
kapp-controller | finished build (using Docker buildx)
resolve | final: kapp-controller -> kbld:kapp-controller-sha256-2c5aee5e26765cb2f84aa8d1deb627990a0120303437efb8e7fe8a6fead4029c
@@ update deployment/kapp-controller (apps/v1) namespace: kapp-controller @@
...
13, 13 sha: 8409bab24e7337ac3fd7527edd8fdb03f58b0c59
14 - url: kbld:kapp-controller-sha256-83e5922a70748d8d8d1a56ae27d30c6b1e4294790b98ac0e289cf3a79897eb49
14 + url: kbld:kapp-controller-sha256-2c5aee5e26765cb2f84aa8d1deb627990a0120303437efb8e7fe8a6fead4029c
15, 15 creationTimestamp: "2022-07-12T19:53:07Z"
16, 16 generation: 26
...
251,251 value: "10350"
252 - image: kbld:kapp-controller-sha256-83e5922a70748d8d8d1a56ae27d30c6b1e4294790b98ac0e289cf3a79897eb49
252 + image: kbld:kapp-controller-sha256-2c5aee5e26765cb2f84aa8d1deb627990a0120303437efb8e7fe8a6fead4029c
253,253 name: kapp-controller
254,254 ports:
...
278,278 value: /etc/kappctrl-mem-tmp/sidecarexec.sock
279 - image: kbld:kapp-controller-sha256-83e5922a70748d8d8d1a56ae27d30c6b1e4294790b98ac0e289cf3a79897eb49
279 + image: kbld:kapp-controller-sha256-2c5aee5e26765cb2f84aa8d1deb627990a0120303437efb8e7fe8a6fead4029c
280,280 name: kapp-controller-sidecarexec
281,281 resources:
Changes
Namespace Name Kind Age Op Op st. Wait to Rs Ri
kapp-controller kapp-controller Deployment 1h update - reconcile ok -
Op: 0 create, 0 delete, 1 update, 0 noop, 0 exists
Wait to: 1 reconcile, 0 delete, 0 noop
5:09:02PM: ---- applying 1 changes [0/1 done] ----
5:09:03PM: update deployment/kapp-controller (apps/v1) namespace: kapp-controller
5:09:03PM: ---- waiting on 1 changes [0/1 done] ----
5:09:03PM: ongoing: reconcile deployment/kapp-controller (apps/v1) namespace: kapp-controller
5:09:03PM: ^ Waiting for generation 28 to be observed
5:09:03PM: L ok: waiting on replicaset/kapp-controller-67699fdf44 (apps/v1) namespace: kapp-controller
5:09:03PM: L ok: waiting on replicaset/kapp-controller-5b4cb7f5dd (apps/v1) namespace: kapp-controller
5:09:03PM: L ongoing: waiting on pod/kapp-controller-67699fdf44-cvvn6 (v1) namespace: kapp-controller
5:09:03PM: ^ Pending: ContainerCreating
5:09:03PM: L ok: waiting on pod/kapp-controller-5b4cb7f5dd-crjvb (v1) namespace: kapp-controller
5:09:04PM: ok: reconcile deployment/kapp-controller (apps/v1) namespace: kapp-controller
5:09:04PM: ---- applying complete [1/1 done] ----
5:09:04PM: ---- waiting complete [1/1 done] ----
Succeeded
Skipping secretgen-controller deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment