Coder Social home page Coder Social logo

replicatedhq / krew-plugin-template Goto Github PK

View Code? Open in Web Editor NEW
63.0 19.0 14.0 219 KB

GitHub Repository Template for creating new Kubectl plugins

License: Apache License 2.0

Makefile 6.29% Go 93.71%
krew kubectl-plugins repo-template template

krew-plugin-template's People

Contributors

akrzos avatar bergerx avatar holyhope avatar laverya avatar marccampbell avatar sunny0826 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

Watchers

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

krew-plugin-template's Issues

Include LICENSE file in plugin template

While reviewing kubernetes-sigs/krew-index#365, I noticed that this template got out of sync with what we recommend in https://github.com/kubernetes-sigs/krew/blob/master/docs/DEVELOPER_GUIDE.md#writing-a-plugin-manifest. In particular, it does not install a LICENSE file, which we now require.

Besides, I'm wondering if you could include the descriptive comments for the manifest fields in your template. Of course, these should be removed before submitting the template, but it could help plugin authors to get started. WDYT?

version is repeated many times in filename

uri: https://github.com/{{ .Owner }}/{{ .Repo }}/releases/download/v0.1.0/{{ .PluginName }}_0.1.0_linux_amd64-0.1.0.tar.gz

several issues

  1. 0.1.0 appears 3 times in url
  2. consider using v0.1.0 every time you refer to the version

Setup is not working

I am trying this out and the make setup seems broken:

$ make setup
make -C setup
make[1]: Entering directory '/home/akrzos/go/src/github.com/akrzos/k8sCube/setup'
go run ./...
go: github.com/minio/[email protected] requires
	github.com/minio/gokrb5/[email protected]: reading github.com/minio/gokrb5/go.mod at revision v7.2.5: unknown revision v7.2.5
make[1]: *** [Makefile:6: all] Error 1
make[1]: Leaving directory '/home/akrzos/go/src/github.com/akrzos/k8sCube/setup'
make: *** [Makefile:29: setup] Error 2

Function "secrets" not defined

After starting a new repo with this template I run make setup. but there is an issue with the GitHub token for the goreleaser. I'm not sure if this a requirement of my system that I'm missing, as I haven't worked with GitHub actions before. I created a Personal Access Token and exported its value as the GITHUB_TOKEN environment variable locally but that didn't change the error.

This is the output from running make setup:
emphasis on template: release.yml:22: function "secrets" not defined

$ make setup 
make -C setup
make[1]: Entering directory '/home/brian/Projects/kubectl-viz/setup'
go run ./...
GitHub Organization or Usernamebrianrudolf
GitHub Repo Namekubectl-viz
Plugin Namekubectl-viz
Updating README
Updating sample code with names
template: release.yml:22: function "secrets" not defined
exit status 1
make[1]: *** [Makefile:6: all] Error 1
make[1]: Leaving directory '/home/brian/Projects/kubectl-viz/setup'
make: *** [Makefile:29: setup] Error 2

I think this is more of a GitHub secrets error I'm running into but I'm hoping someone here can point me in the right direction and we can edit the README to add this as a prerequisite for this template.

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.