Giter Club home page Giter Club logo

googlecontainertools / skaffold Goto Github PK

View Code? Open in Web Editor NEW
14.7K 14.7K 1.6K 141.06 MB

Easy and Repeatable Kubernetes Development

Home Page: https://skaffold.dev/

License: Apache License 2.0

Makefile 0.19% Go 96.23% Python 0.06% Shell 0.72% Ruby 0.01% Dockerfile 0.34% JavaScript 1.52% Java 0.04% HTML 0.52% CSS 0.16% Groovy 0.01% Batchfile 0.02% Starlark 0.02% PHP 0.02% NSIS 0.05% TypeScript 0.01% Mustache 0.01% Procfile 0.01% Smarty 0.03% Slim 0.06%
containers developer-tools docker kubernetes

skaffold's People

Contributors

aaron-prindle avatar ahmetb avatar balopat avatar briandealwis avatar cedrickring avatar chrisge4 avatar coollog avatar corneliusweig avatar dependabot[bot] avatar dgageot avatar dlorenc avatar ericzzzzzzz avatar felixtran39 avatar garethjevans avatar gsquared94 avatar halvards avatar isaacpd avatar loosebazooka avatar marlongamez avatar michaelfig avatar nkubala avatar prary avatar priyamodali avatar pscarey avatar r2d4 avatar renzodavid9 avatar tadcordle avatar tejal29 avatar tstromberg avatar yuwenma avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

skaffold's Issues

Handle optional port-forwarding

I started to go down the route of figuring out how to work with Skaffold and use a remote debugger (delve in my case).

The only thing I really needed from Skaffold was for it to be able to reconfigure a port-forwarding setup to one of the new pods that was created.

I think it could look something like:

portForwarding:
  - labelSelector:
      app: my-app
      component: backend
    port: 2345
  - labelSelector:
      app: my-app
      component: frontend
    port: 8080:80

Skaffold could pick the most recently deployed pod that matches the selectors, although some more precise detection of the "right pod" may be necessary.

Updates of workloads due to ConfigMap changes

When a ConfigMap manifest is updated, users may want that to automatically update the workload that it references. Unfortunately the deployment will only update if the configmap name or any other field changes in the spec.

envsubst on certain skaffold fields

Do we want to expand bash substitutions in some skaffold fields? It is a bit of feature creep, but might be useful for complete portability of skaffold.yaml

We could ship examples for other repos by including a workspace: $GOPATH/src/path/to/project, so that we don't need to keep all of the example code here, only the example configuration.

It also makes paths less fragile, since its not so dependent on where the user actually runs skaffold run.

Here's a library we could use (note: haven't used it before, this is just the result of a quick google search)
https://github.com/drone/envsubst

Build and deploy prechecks

Add prechecks to both builders and deployers to ensure basic conditions before the pipeline is ran. This could be implemented as an interface that both Builder and Deployer embed.

Some ideas for prechecks:

  • LocalBuilder: Ensure connection to docker daemon
  • KubectlDeploy: Ensure connection to cluster, kubectl installed
  • HelmDeploy: Ensure connection to cluster, helm installed, (tiller installed?)

Should these prechecks also verify manifest conditions? I think eventually we might want to add some sort of linting of kubernetes resources, and possibly extend that to skaffold resources.

Dockerfile, Context resolution should have its own function

https://github.com/GoogleCloudPlatform/skaffold/blob/910aa891c5f2dc28cdc95602067f0a1ca45f5806/pkg/skaffold/build/local.go#L60-L62

https://github.com/GoogleCloudPlatform/skaffold/blob/87beed031679b0e350ef6e3c07c3fa57001f43cb/pkg/skaffold/watch/watch.go#L107-L109

We should mimic the resolution that the docker cli does here. We support a very basic version here, but it should be its own function to infer workspace and dockerfile paths.

Dockerfile="" ====> Dockerfile="Dockerfile"
Workspace="" ====> Workspace="."

Dockerfile="" ====> Dockerfile="Dockerfile"
Workspace="dir/Dockerfile" ====> Workspace="dir"

Integration tests for all examples

All examples should be covered by integration tests. We should always keep examples up to date with new changes, and convey to the users clearly when there are breaking change. We can do this with release notes or config comments.

Improve build and deploy output from docker daemon/registry

We are not processing the messages from the docker daemon or registry properly, so output isn't as pretty as it should be. We should compress status updates for the same layers, add progress bars, etc.

Example:

abe52c89597f: Verifying Checksum
abe52c89597f: Download complete
96e333289084: Verifying Checksum
96e333289084: Download complete
39cd5f38ffb8: Verifying Checksum
39cd5f38ffb8: Download complete
503166935590: Verifying Checksum
503166935590: Download complete
ce145c5cf4da: Verifying Checksum
ce145c5cf4da: Download complete
503166935590: Pull complete
abe52c89597f: Pull complete
ce145c5cf4da: Pull complete
96e333289084: Pull complete
39cd5f38ffb8: Pull complete

Command that helps maintainers debug user issues

In other projects I've worked on, there has been a command (something like skaffold debug) that puts together either a bundle of artifacts or prints out information that can be useful for maintainers to either reproduce or further debug issues that are reported. We could add a note to the issue template that asks users to run this command and add the info to their report.

Tag Spec Validation

We need to make sure that some parameters are valid docker tags before it gets to the downstream tools and fails. We should vendor in the validation from docker/moby

Subcommands for build and deploy implementations

Exposing the build and deploy steps as single runnable commands

$ skaffold build local
$ skaffold deploy helm --chart-path

We could autogenerate most, if not all, of the command by iterating over BuildType and DeployType and then generating flags based on the parameters on the subtypes like LocalBuild. Each command would output a go-template BuildResult or DeployResult.

[Meta] How do we want to use GitHub Projects?

A few possible ideas:

  1. Have a new "project" for every release
  • Might make more sense once we've gotten some users
  1. Have a new "project" for alpha, beta, GA
  • At the early stages (pre-release), tracking alpha and beta features might be more valuable than releases
  1. Don't use it at all
  • GitHub projects just recently added support for automatically moving "cards" from different stages based on status. In short, there are a lot of features missing and its historically been hard to use.
  1. One large meta project that has subtabs broken down by releases or milestones

I've started a basic version of 2. I don't have strong opinions here and would love to hear your thoughts or what you've seen work well @viglesiasce @dlorenc

[Dockerfile] Resolve envvar when ENV inherited from parent image

We don't currently support the scenario when an ENV is inherited from the parent image and then used in the source of a COPY or ADD. As a short term solution, we can add the entire context, but we might want to figure out a way to resolve those ENVs without adding everything.

Track Deployed Artifacts

Opening an issue to get some discussion started on how skaffold can keep track of what it's deploying through the various deployers we support (helm, kubectl apply, ksonnet, etc.).

Tracking these artifacts can help with things like #94 and deletion cases.

For kubectl, we know the manifest paths so we could parse those YAMLs and apply labels, or build a label selector?

For helm, we know the release names so we can query them with helm list or something similar.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.