Git Product home page Git Product logo

kpt's People

Contributors

bgrant0607 avatar bharathkkb avatar christopherfry avatar datosh avatar dependabot[bot] avatar droot avatar etefera avatar frankfarzan avatar johnbelamaric avatar justinsb avatar karlkfi avatar kptdev-robot[bot] avatar liujingfang1 avatar martinmaly avatar mikebz avatar monopole avatar mortent avatar nagaharshita avatar natasha41575 avatar phanimarupaka avatar prachirp avatar pwittrock avatar rquitales avatar runewake2 avatar sdowell avatar seans3 avatar selfmanagingresource avatar shell32-natsu avatar yuwenma avatar zhugongpu 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

kpt's Issues

add realistic simple examples in the comprehensive guide

Example Set 1:

  • Generate: Create a Deployment + Service from an image (as data on ConfigMap input)
  • Validate: Make sure Deployments have Resources reservations set
  • Inject: Set Resource reservations to a default if unset

Example Set 2:

  • Inject: a side-car into a Deployment
  • Inject: an init container into a Deployment
  • Validate: Deployment and Service labels match if names match

Sample hello world images don't seem to be accessible

Trying to deploy the sample to a test GKE cluster failed with:

Failed to pull image "gcr.io/kpt-dev/helloworld-gke:0.1.0": rpc error: code = Unknown desc = Error response from daemon: pull access denied for gcr.io/kpt-dev/helloworld-gke, repository does not exist or may require 'docker login'

Do the images need to be made public?

Don't introduce CRD support as first thinking

Defer explaining CRD support until the basics are clear.

npm init should install the Kubernetes 1.17 types by default without the need for a cluster. generating from a cluster should be opt-in

Follow up on yaml decoding / encoding issue for copyright header comments

There is a bug where the yaml libraries decode

old: resource
---
# Copyright
new: resource

as

old: resource
# Copyright
---
new: resource

To work around this, the ByteWriter replaces --- with \n---\n, which fixes the issue so that the decoded properly recognizes the resource / comment boundaries.

Follow up on this to see if it is an issue in the underlying libraries, or just how we use them.

In comprehensive guide -- inline examples

The guide links to a set of examples, but its unclear which ones are good examples to start with. Also just show me the example next to the interface so I can compare them.

[doc] Walkthroughs would be helpful to get started

Spending some time in the docs and playing with some of it, what I feel is missing the most is a good walkthrough that takes the user through an entire scenario command by command.

As it stands, there is a lot of great information, but you have to go to the doc for each command one by one and try to figure out how it all fits together.

The walkthrough doesn't have to cover everything, but could include e.g.:

  • Starting from nothing
  • Pulling down a demo package at some older revision using pkg
  • Applying the config to a cluster using svr
  • Making local changes to the package, e.g. by using cfg set
  • Pulling from the package source and showing how things get can get merged
  • Showing off functions

A nice screencast following the same walkthrough would be nice as well.

[doc] Binary installation should be more details

Right now, it's just a link to some binary, and you're on your own. Some people like more guidance. e.g. on my Mac, there were a bunch of extra step after clicking the link:

  • First I had to `chmod +x'
  • Then it was still blocked by the OS and I had to go in the system settings to allow it
  • The file needed to be renamed to kpt
  • It also needed to be moved to some folder on the path

Those may seem trivial, but I think it will lose some readers.

[doc] Sample `kpt pkg get` command doesn't work

Doc has this example:

$ kpt pkg get https://github.com/GoogleContainerTools/\
  kpt.git/package-examples/[email protected] helloworld

But pasting it as is fails because it ends up with an extra space in the middle of the url:

Error: accepts 2 arg(s), received 3
Usage:
  kpt pkg get REPO_URI[.git]/PKG_PATH[@VERSION] LOCAL_DEST_DIRECTORY [flags]

Documentation usability feedback for run.md

https://github.com/GoogleContainerTools/kpt/blob/master/docs/fn/run.md

  • Caveats section is very long since it's explaining multiple concepts. It's probably worth creating subsection for each
  • Need to use verbatim code style in many instances. e.g. metadata.annotations.[config.kubernetes.io/function]. Otherwise, it's hard to read.
  • Config Functions -> KPT Functions ?
  • We should simplify number of ways to invoke functions declarativey. Or at least, emphasize one approach in docs so user doesn't get overwhelmed.
  • It's ambiguous whether functions directory is required or just a convention used (functions dir is in fact a special dir recognized by kpt).
  • Also note that the implicit pattern is currently broken: #188

Things to Test umbrella issue

kpt:

  • get with tag including the path -- e.g. @v01.0 --> @package-examples/[email protected]
  • sync
  • environment variable controls

kustomize:

  • Merge -- Invert order
  • Cat Styles
  • Cat Strip comments
  • Fmt override file annotations
  • RC kind=false
  • ElementSetter
  • IsAssociative
  • ElementValues
  • MapSlice
  • filters.merge
  • filters.merg3
  • filters.IsReconciler

Support Diff

  • between local and upstream source
  • between local and upstream source at some version

[doc] `kpt svr apply` doc needs to be more detailed

I thought it would be mostly similar to kubectl apply, but I got an error that didn't make sense to me:

$ kpt svr apply .
error: unable to find one of 'kustomization.yaml', 'kustomization.yml' or 'Kustomization' in directory '/Users/davidebbo/tmp/tmp/helloworld'

The doc doesn't mention needing a kustomization file, so I'm not sure what I did wrong.

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.