Giter Club home page Giter Club logo

kubecrypt's People

Contributors

danielb42 avatar jonny08152 avatar sebidude 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

Watchers

 avatar  avatar  avatar

kubecrypt's Issues

Multiple clusters in config

Hi, seems like i have a small issue with multiple configured clusters.

$ echo $KUBECONFIG
/opt/kubectl/one_dev.yaml:/opt/kubectl/two_prod.yaml
$ kubecrypt
panic: stat /opt/kubectl/one_dev.yaml:/opt/kubectl/two_prod.yaml: no such file or directory

goroutine 1 [running]:
main.main()
/home/me/go/src/github.com/sebidude/kubecrypt/cmd/kubecrypt/main.go:99 +0x40fc
$ kubectx
loc1
loc2
loc3

error when compiling with go 1.15.5

I get the following error when compiling with go version 1.15.5

# github.com/sebidude/kubecrypt/kube
/opt/go/src/github.com/sebidude/kubecrypt/kube/kube.go:21:60: not enough arguments in call to clientset.CoreV1().Secrets(namespace).List
        have ("k8s.io/apimachinery/pkg/apis/meta/v1".ListOptions)
        want (context.Context, "k8s.io/apimachinery/pkg/apis/meta/v1".ListOptions)
/opt/go/src/github.com/sebidude/kubecrypt/kube/kube.go:79:56: not enough arguments in call to clientset.CoreV1().Secrets(namespace).Create
        have (*"k8s.io/api/core/v1".Secret)
        want (context.Context, *"k8s.io/api/core/v1".Secret, "k8s.io/apimachinery/pkg/apis/meta/v1".CreateOptions)

Seems to be the arguments in the interface "SecretInterface" have been changed

type SecretInterface interface {
    Create(ctx context.Context, secret *v1.Secret, opts metav1.CreateOptions) (*v1.Secret, error)
    Update(ctx context.Context, secret *v1.Secret, opts metav1.UpdateOptions) (*v1.Secret, error)
    Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
    DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
    Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.Secret, error)
    List(ctx context.Context, opts metav1.ListOptions) (*v1.SecretList, error)
    Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
    Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Secret, err error)
    SecretExpansion
}

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.