Skip to content

Commit

Permalink
New Kanister func to create K8s resource (#1080)
Browse files Browse the repository at this point in the history
* New Kanister func to create K8s resource

Signed-off-by: Prasad Ghangal <prasad.ghangal@gmail.com>

* Rename function to kubectl

Signed-off-by: Prasad Ghangal <prasad.ghangal@gmail.com>

* Add unit test to create CR with function

Signed-off-by: Prasad Ghangal <prasad.ghangal@gmail.com>

* Undo go.mod changes

Signed-off-by: Prasad Ghangal <prasad.ghangal@gmail.com>

* Title kubectl func name

Signed-off-by: Prasad Ghangal <prasad.ghangal@gmail.com>

* happy golint

Signed-off-by: Prasad Ghangal <prasad.ghangal@gmail.com>

* Rename kubectl function to kubeops

Signed-off-by: Prasad Ghangal <prasad.ghangal@gmail.com>

* Rename func to KubeOps

Signed-off-by: Prasad Ghangal <prasad.ghangal@gmail.com>

* Fix typo

Signed-off-by: Prasad Ghangal <prasad.ghangal@gmail.com>

* Handle returned error

Signed-off-by: Prasad Ghangal <prasad.ghangal@gmail.com>

* Fix golint issue

Signed-off-by: Prasad Ghangal <prasad.ghangal@gmail.com>

* Address review comments

Signed-off-by: Prasad Ghangal <prasad.ghangal@gmail.com>

* Changing `specs` to `spec` in remaining places

* Fix CI

Co-authored-by: Pavan Navarathna <pavan@kasten.io>
  • Loading branch information
PrasadG193 and pavannd1 committed Sep 17, 2021
1 parent d51035a commit 731ad3b
Show file tree
Hide file tree
Showing 6 changed files with 535 additions and 18 deletions.
13 changes: 6 additions & 7 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,15 @@ require (
github.com/BurntSushi/toml v0.3.1
github.com/IBM-Cloud/ibm-cloud-cli-sdk v0.3.0 // indirect
github.com/IBM/ibmcloud-storage-volume-lib v1.0.2-beta02.0.20190828145158-1da4543a60af
github.com/Masterminds/goutils v1.1.0 // indirect
github.com/Masterminds/semver v1.4.2
github.com/Masterminds/sprig v2.15.0+incompatible
github.com/aokoli/goutils v1.1.0 // indirect
github.com/Masterminds/sprig v2.20.0+incompatible
github.com/asaskevich/govalidator v0.0.0-20200907205600-7a23bdc65eef // indirect
github.com/aws/aws-sdk-go v1.38.69
github.com/dnaeon/go-vcr v1.0.1 // indirect
github.com/docker/spdystream v0.0.0-20181023171402-6480d4af844c // indirect
github.com/efarrer/iothrottler v0.0.2 // indirect
github.com/elazarl/goproxy v0.0.0-20190711103511-473e67f1d7d2 // indirect
github.com/elazarl/goproxy/ext v0.0.0-20190711103511-473e67f1d7d2 // indirect
github.com/form3tech-oss/jwt-go v3.2.3+incompatible // indirect
github.com/ghodss/yaml v1.0.1-0.20190212211648-25d852aebe32
github.com/go-openapi/strfmt v0.19.3
github.com/go-sql-driver/mysql v1.6.0
Expand All @@ -40,7 +38,6 @@ require (
github.com/golang/snappy v0.0.4 // indirect
github.com/google/gofuzz v1.2.0 // indirect
github.com/google/uuid v1.3.0
github.com/googleapis/gnostic v0.5.3 // indirect
github.com/graymeta/stow v0.0.0-00010101000000-000000000000
github.com/huandu/xstrings v1.2.0 // indirect
github.com/imdario/mergo v0.3.11 // indirect
Expand Down Expand Up @@ -71,11 +68,11 @@ require (
github.com/satori/go.uuid v1.2.0
github.com/sirupsen/logrus v1.8.1
github.com/softlayer/softlayer-go v0.0.0-20190615201252-ba6e7f295217 // indirect
github.com/spf13/cobra v1.1.1
github.com/spf13/cobra v1.1.3
github.com/vmware/govmomi v0.21.1-0.20191008161538-40aebf13ba45
github.com/zeebo/blake3 v0.1.2 // indirect
go.mongodb.org/mongo-driver v1.5.1 // indirect
go.uber.org/zap v1.16.0
go.uber.org/zap v1.17.0
golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97 // indirect
golang.org/x/exp v0.0.0-20210722180016-6781d3edade3 // indirect
golang.org/x/net v0.0.0-20210726213435-c6fcb2dbf985 // indirect
Expand All @@ -90,5 +87,7 @@ require (
k8s.io/api v0.20.1
k8s.io/apiextensions-apiserver v0.20.1
k8s.io/apimachinery v0.20.1
k8s.io/cli-runtime v0.20.1
k8s.io/client-go v0.20.1
k8s.io/kubectl v0.20.1
)
Loading

0 comments on commit 731ad3b

Please sign in to comment.