Skip to content

Instantly share code, notes, and snippets.

View aaron-prindle's full-sized avatar
💭
📦

Aaron Prindle aaron-prindle

💭
📦
  • Google
  • San Francisco
View GitHub Profile
@aaron-prindle
aaron-prindle / gist:c1e0d94314effa5cb6a796ea5a75d677
Created February 13, 2024 03:07
Pyhon script to get all contributors for GoogleContainerTools/kaniko repository
import requests
def get_all_contributors(owner, repo):
contributors = []
per_page = 100 # Max value allowed by GitHub API
page = 1
while True:
url = f"https://api.github.com/repos/{owner}/{repo}/contributors"
params = {'per_page': per_page, 'page': page}
headers = {'Accept': 'application/vnd.github.v3+json'}
apiVersion: v1
kind: Pod
metadata:
name: kaniko-root-go-ethereum-v2
namespace: wi
labels:
kaniko-test-category: root
spec:
serviceAccountName: <SA>
nodeSelector:
diff --git a/pkg/commands/copy_test.go b/pkg/commands/copy_test.go
index 3eba9c6b..795ca577 100755
--- a/pkg/commands/copy_test.go
+++ b/pkg/commands/copy_test.go
@@ -465,6 +465,12 @@ func TestCopyCommand_ExecuteCommand_Extended(t *testing.T) {
t.Run("copy dir to another dir - with ignored files", func(t *testing.T) {
testDir, srcDir := setupDirs(t)
defer os.RemoveAll(testDir)
+ util.Lstat = func(name string) (fs.FileInfo, error) {
+ fi, err := os.Lstat(name)
diff --git a/pkg/commands/copy_test.go b/pkg/commands/copy_test.go
index 3eba9c6b..795ca577 100755
--- a/pkg/commands/copy_test.go
+++ b/pkg/commands/copy_test.go
@@ -465,6 +465,12 @@ func TestCopyCommand_ExecuteCommand_Extended(t *testing.T) {
t.Run("copy dir to another dir - with ignored files", func(t *testing.T) {
testDir, srcDir := setupDirs(t)
defer os.RemoveAll(testDir)
+ util.Lstat = func(name string) (fs.FileInfo, error) {
+ fi, err := os.Lstat(name)
diff --git a/pkg/commands/copy_test.go b/pkg/commands/copy_test.go
index 3eba9c6b..795ca577 100755
--- a/pkg/commands/copy_test.go
+++ b/pkg/commands/copy_test.go
@@ -465,6 +465,12 @@ func TestCopyCommand_ExecuteCommand_Extended(t *testing.T) {
t.Run("copy dir to another dir - with ignored files", func(t *testing.T) {
testDir, srcDir := setupDirs(t)
defer os.RemoveAll(testDir)
+ util.Lstat = func(name string) (fs.FileInfo, error) {
+ fi, err := os.Lstat(name)
@aaron-prindle
aaron-prindle / gist:336b8922a8468a230ed682c7e523bb3b
Created July 7, 2023 21:11
kubectl logs kaniko-root-grafana -n workload-identity
Defaulted container "kaniko" out of: kaniko, prepare (init)
INFO[0000] Resolved base name tonistiigi/xx:1.2.1 to xx
INFO[0000] Resolved base name busybox to build-dummy
INFO[0000] Resolved base name scratch to binary-dummy
INFO[0000] Resolved base name golang:1.20.5-bullseye to base
INFO[0000] Resolved base name base to criu
INFO[0000] Resolved base name base to registry-src
INFO[0000] Resolved base name base to registry
INFO[0000] Resolved base name base to swagger-src
INFO[0000] Resolved base name base to swagger
aprindle@aprindle-ssd ~/kaniko [main]./run_in_docker.sh /workspace/Dockerfile /usr/local/google/home/aprindle/kaniko-ctx-dir gcr.io/aprindle-test-cluster/kaniko-test:latest
INFO[0000] Retrieving image manifest node:14-buster
INFO[0000] Retrieving image node:14-buster from registry index.docker.io
INFO[0001] Built cross stage deps: map[]
INFO[0001] Retrieving image manifest node:14-buster
INFO[0001] Returning cached image manifest
INFO[0001] Executing 0 build triggers
INFO[0001] Building stage 'node:14-buster' [idx: '0', base-idx: '-1']
INFO[0001] Unpacking rootfs as cmd RUN apt-get update && apt-get -y install libgtk-3-0 requires it.
INFO[0012] RUN apt-get update && apt-get -y install libgtk-3-0
aprindle@aprindle-ssd ~/skaffold/examples/helm-deployment [(HEAD detached at v2.0.4)]$ skaffold dev --default-repo=gcr.io/aprindle-test-cluster
Listing files to watch...
- skaffold-helm
- skaffold-helm-2
Generating tags...
- skaffold-helm -> gcr.io/aprindle-test-cluster/skaffold-helm:v2.0.4-dirty
- skaffold-helm-2 -> gcr.io/aprindle-test-cluster/skaffold-helm-2:v2.0.4-dirty
Checking cache...
- skaffold-helm: Found Remotely
- skaffold-helm-2: Not found. Building
Generating tags...
- skaffold-example -> gcr.io/aprindle-test-cluster/skaffold-example:v2.0.0-beta1-36-ge210f1ea8-dirty
Starting build...
Building [skaffold-example]...
Target platforms: [linux/amd64,linux/arm64]
#1 [internal] load build definition from Dockerfile
#1 sha256:94490ca7b29bc20c1a6c25393a52f605c68d27f0e5384848dab6835af3f380be
#1 transferring dockerfile: 40B done
#1 DONE 0.0s
/*
Copyright 2022 The Skaffold Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and