Git Product home page Git Product logo

a9s-cli-v2's People

Contributors

a9s-cli-ci avatar abdulhaseeb3 avatar fischerjulian avatar mafolz avatar skretzschmann avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

a9s-cli-v2's Issues

Allow Backup Store Configuration

Currently the backup store configuration is static in the code.

	blobStoreConfig := BlobStore{
			Config: BlobStoreConfig{
				CloudConfig: BlobStoreCloudConfiguration{
					Provider:  "AWS",
					Container: "a8s-backups",
					Region:    "eu-central-0",
				},
			},
		}

In a first step, the backup store configuration values should be prompted: in particular the Container and Region should be configurable.

In a future step, it would be nice to:

a) Have the cli create and configure an appropriate s3 bucket
b) Allow for alternative object stores such as those of other hyper scalers as well as on-premise solutions such as mini.io

CLI panics with error `flag redefined: kubeconfig` during installation of Cert-Manager

While testing out the demo cli I ran into an issue where the code was crashing as kubeconfig flag was already defined ๐Ÿคท

Installing the cert-manager
                            
 Checking whether there are pods in the cluster...
 Kubernetes configuration is set by $HOME/.kube/config.
/var/folders/0m/7r6d53g5459bqs669p047hq80000gn/T/go-build3997491302/b001/exe/main flag redefined: kubeconfig
panic: /var/folders/0m/7r6d53g5459bqs669p047hq80000gn/T/go-build3997491302/b001/exe/main flag redefined: kubeconfig

goroutine 1 [running]:
flag.(*FlagSet).Var(0x140000b6180, {0x102205db8, 0x1400041fad0}, {0x101cf338b, 0xa}, {0x101d2bfc3, 0x2f})
        /usr/local/go/src/flag/flag.go:982 +0x2a4
flag.(*FlagSet).StringVar(...)
        /usr/local/go/src/flag/flag.go:847
flag.(*FlagSet).String(0x14000569b08?, {0x101cf338b, 0xa}, {0x14000500160, 0x1f}, {0x101d2bfc3, 0x2f})
        /usr/local/go/src/flag/flag.go:860 +0x9c
flag.String(...)
        /usr/local/go/src/flag/flag.go:867
github.com/fischerjulian/a8s-demo/demo.GetKubernetesConfigPath()
        /Users/abdulhaseeb/Desktop/Github/a9s-cli-v2/demo/pg_create.go:439 +0x10c
github.com/fischerjulian/a8s-demo/demo.GetKubernetesClientSet()
        /Users/abdulhaseeb/Desktop/Github/a9s-cli-v2/demo/pg_create.go:456 +0x1c
github.com/fischerjulian/a8s-demo/demo.countPodsInNamespace({0x101cf61fd, 0xc})
        /Users/abdulhaseeb/Desktop/Github/a9s-cli-v2/demo/pg_create.go:479 +0x38
github.com/fischerjulian/a8s-demo/demo.ApplyCertManagerManifests()
        /Users/abdulhaseeb/Desktop/Github/a9s-cli-v2/demo/pg_create.go:564 +0x38
github.com/fischerjulian/a8s-demo/cmd.glob..func1(0x102c7b080?, {0x101ceacff?, 0x0?, 0x0?})
        /Users/abdulhaseeb/Desktop/Github/a9s-cli-v2/cmd/a8s_pg_demo.go:45 +0xa4
github.com/spf13/cobra.(*Command).execute(0x102c7b080, {0x102cca9c0, 0x0, 0x0})
        /Users/abdulhaseeb/go/pkg/mod/github.com/spf13/[email protected]/command.go:944 +0x5b0
github.com/spf13/cobra.(*Command).ExecuteC(0x102c7b360)
        /Users/abdulhaseeb/go/pkg/mod/github.com/spf13/[email protected]/command.go:1068 +0x35c
github.com/spf13/cobra.(*Command).Execute(...)
        /Users/abdulhaseeb/go/pkg/mod/github.com/spf13/[email protected]/command.go:992
github.com/fischerjulian/a8s-demo/cmd.Execute()
        /Users/abdulhaseeb/Desktop/Github/a9s-cli-v2/cmd/root.go:25 +0x28
main.main()
        /Users/abdulhaseeb/Desktop/Github/a9s-cli-v2/main.go:36 +0x40
exit status 2

To reproduce the issue

  • Execute export KUBECONFIG=""
  • Run the demo CLI

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.