Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

Persistent volume caching for base images#383

Merged
sharifelgamal merged 21 commits intoGoogleContainerTools:masterfrom
sharifelgamal:caching
Oct 11, 2018
Merged

Persistent volume caching for base images#383
sharifelgamal merged 21 commits intoGoogleContainerTools:masterfrom
sharifelgamal:caching

Conversation

@sharifelgamal
Copy link
Copy Markdown
Contributor

No description provided.

@sharifelgamal sharifelgamal changed the title Persistent volume caching for base images [WIP] Persistent volume caching for base images Oct 3, 2018
Comment thread cmd/warmer/cmd/root.go
func addHiddenFlags(cmd *cobra.Command) {
}

func exit(err error) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: we shouldn't need this if we return an error

Comment thread pkg/cache/cache.go Outdated

// RetrieveLayer checks the specified cache for a layer with the tag :cacheKey
func RetrieveLayer(opts *config.KanikoOptions, cacheKey string) (v1.Image, error) {
if local, _ := LocalDestination(opts, cacheKey); local != nil {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe "source" instead of "destination"?

Comment thread pkg/cache/warm.go Outdated
fmt.Print(err)
errors.Wrap(err, fmt.Sprintf("Failed to verify image name: %s", image))
}
k8sc, err := k8schain.NewNoClient()
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm, should we use a normal keychain if we're not on k8s?

@sharifelgamal sharifelgamal changed the title [WIP] Persistent volume caching for base images Persistent volume caching for base images Oct 9, 2018
Comment thread deploy/Dockerfile_warmer Outdated
WORKDIR /go/src/github.com/GoogleContainerTools/kaniko
COPY . .
RUN make
# Get GCR credential helper
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need the helpers if we're relying on open auth?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nope. removed.

Comment thread pkg/util/image_util.go Outdated
fmt.Printf("CACHEKEY=%s", cacheKey)
return cache.LocalDestination(opts, cacheKey)

k8sc, err := k8schain.NewNoClient()
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants