Skip to content
This repository was archived by the owner on Nov 17, 2021. It is now read-only.

Commit b6b0496

Browse files
committed
Rename git repo to github.com/bitnami/kubecfg
Parent ksonnet project is shutting down. Move repo to bitnami/kubecfg and rename URLs and golang imports accordingly.
1 parent 3478656 commit b6b0496

17 files changed

+23
-24
lines changed

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ modified the input files.
1111

1212
TL;DR: run `make vendor` whenever you add/remove a dependency. run `GO111MODULE=on go get -u .....` to update deps.
1313

14-
This project uses `go mod`, Go modules feature implemented since Go 1.11. This feature needs to be turned on explicitly via the `GO111MODULE` env variable, if you checkout the `kubecfg` repo in its canonical location in the GOPATH (i.e. $GOPATH/github.com/ksonnet/kubecfg). This feature is turned on _automatically_ if you checkout the `kubecfg` repo anywhere else in the filesystem.
14+
This project uses `go mod`, Go modules feature implemented since Go 1.11. This feature needs to be turned on explicitly via the `GO111MODULE` env variable, if you checkout the `kubecfg` repo in its canonical location in the GOPATH (i.e. $GOPATH/github.com/bitnami/kubecfg). This feature is turned on _automatically_ if you checkout the `kubecfg` repo anywhere else in the filesystem.
1515

1616

1717
This repository is configured to use Go modules as a source of truth for dependency information,

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# kubecfg
22

3-
[![Build Status](https://travis-ci.org/ksonnet/kubecfg.svg?branch=master)](https://travis-ci.org/ksonnet/kubecfg)
4-
[![Go Report Card](https://goreportcard.com/badge/github.com/ksonnet/kubecfg)](https://goreportcard.com/report/github.com/ksonnet/kubecfg)
3+
[![Build Status](https://travis-ci.org/bitnami/kubecfg.svg?branch=master)](https://travis-ci.org/bitnami/kubecfg)
4+
[![Go Report Card](https://goreportcard.com/badge/github.com/bitnami/kubecfg)](https://goreportcard.com/report/github.com/bitnami/kubecfg)
55

66
A tool for managing Kubernetes resources as code.
77

@@ -17,7 +17,7 @@ similarly-named internal tool ;)
1717
## Install
1818

1919
Pre-compiled executables exist for some platforms on
20-
the [Github releases](https://github.com/ksonnet/kubecfg/releases)
20+
the [Github releases](https://github.com/bitnami/kubecfg/releases)
2121
page.
2222

2323
On macOS, it can also be installed via [Homebrew](https://brew.sh/):
@@ -27,7 +27,7 @@ To build from source:
2727

2828
```console
2929
% PATH=$PATH:$GOPATH/bin
30-
% go get github.com/ksonnet/kubecfg
30+
% go get github.com/bitnami/kubecfg
3131
```
3232

3333
## Quickstart

cmd/delete.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ package cmd
1818
import (
1919
"github.com/spf13/cobra"
2020

21-
"github.com/ksonnet/kubecfg/pkg/kubecfg"
21+
"github.com/bitnami/kubecfg/pkg/kubecfg"
2222
)
2323

2424
const (

cmd/diff.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ package cmd
1818
import (
1919
"github.com/spf13/cobra"
2020

21-
"github.com/ksonnet/kubecfg/pkg/kubecfg"
21+
"github.com/bitnami/kubecfg/pkg/kubecfg"
2222
)
2323

2424
const flagDiffStrategy = "diff-strategy"

cmd/root.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ import (
4040
"k8s.io/client-go/restmapper"
4141
"k8s.io/client-go/tools/clientcmd"
4242

43-
"github.com/ksonnet/kubecfg/utils"
43+
"github.com/bitnami/kubecfg/utils"
4444

4545
// Register auth plugins
4646
_ "k8s.io/client-go/plugin/pkg/client/auth"

cmd/show.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ package cmd
1818
import (
1919
"github.com/spf13/cobra"
2020

21-
"github.com/ksonnet/kubecfg/pkg/kubecfg"
21+
"github.com/bitnami/kubecfg/pkg/kubecfg"
2222
)
2323

2424
const (

cmd/update.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ package cmd
1818
import (
1919
"github.com/spf13/cobra"
2020

21-
"github.com/ksonnet/kubecfg/pkg/kubecfg"
21+
"github.com/bitnami/kubecfg/pkg/kubecfg"
2222
)
2323

2424
const (

cmd/validate.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ package cmd
1818
import (
1919
"github.com/spf13/cobra"
2020

21-
"github.com/ksonnet/kubecfg/pkg/kubecfg"
21+
"github.com/bitnami/kubecfg/pkg/kubecfg"
2222
)
2323

2424
const (

examples/guestbook.jsonnet

+2-3
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,8 @@
2424
// kubecfg delete guestbook.jsonnet
2525
// ```
2626

27-
// This example uses kube.libsonnet from Bitnami. There are several
28-
// other Kubernetes libraries available (notably ksonnet/ksonnet-lib),
29-
// or write your own!
27+
// This example uses kube.libsonnet from Bitnami. There are other
28+
// Kubernetes libraries available, or write your own!
3029
local kube = import "https://github.com/bitnami-labs/kube-libsonnet/raw/52ba963ca44f7a4960aeae9ee0fbee44726e481f/kube.libsonnet";
3130

3231
// A function that returns 2 k8s objects: a redis Deployment and Service

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/ksonnet/kubecfg
1+
module github.com/bitnami/kubecfg
22

33
require (
44
contrib.go.opencensus.io/exporter/ocagent v0.4.6 // indirect

integration/update_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"k8s.io/apimachinery/pkg/runtime"
1313
corev1 "k8s.io/client-go/kubernetes/typed/core/v1"
1414

15-
"github.com/ksonnet/kubecfg/pkg/kubecfg"
15+
"github.com/bitnami/kubecfg/pkg/kubecfg"
1616

1717
. "github.com/onsi/ginkgo"
1818
. "github.com/onsi/gomega"

main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ import (
2020

2121
log "github.com/sirupsen/logrus"
2222

23-
"github.com/ksonnet/kubecfg/cmd"
24-
"github.com/ksonnet/kubecfg/pkg/kubecfg"
23+
"github.com/bitnami/kubecfg/cmd"
24+
"github.com/bitnami/kubecfg/pkg/kubecfg"
2525
)
2626

2727
// Version is overridden using `-X main.version` during release builds

pkg/kubecfg/delete.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import (
2727
"k8s.io/client-go/discovery"
2828
"k8s.io/client-go/dynamic"
2929

30-
"github.com/ksonnet/kubecfg/utils"
30+
"github.com/bitnami/kubecfg/utils"
3131
)
3232

3333
// DeleteCmd represents the delete subcommand

pkg/kubecfg/diff.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import (
3333
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
3434
"k8s.io/client-go/dynamic"
3535

36-
"github.com/ksonnet/kubecfg/utils"
36+
"github.com/bitnami/kubecfg/utils"
3737
)
3838

3939
var ErrDiffFound = fmt.Errorf("Differences found.")
@@ -184,7 +184,7 @@ func removeMapFields(config, live map[string]interface{}) map[string]interface{}
184184
v2, ok := live[k]
185185
if !ok {
186186
// Copy empty value from config, as API won't return them,
187-
// see https://github.com/ksonnet/kubecfg/issues/179
187+
// see https://github.com/bitnami/kubecfg/issues/179
188188
if isEmptyValue(v1) {
189189
result[k] = v1
190190
}

pkg/kubecfg/update.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
"k8s.io/client-go/discovery"
1919
"k8s.io/client-go/dynamic"
2020

21-
"github.com/ksonnet/kubecfg/utils"
21+
"github.com/bitnami/kubecfg/utils"
2222
)
2323

2424
const (

pkg/kubecfg/update_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
77
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
88

9-
"github.com/ksonnet/kubecfg/utils"
9+
"github.com/bitnami/kubecfg/utils"
1010
)
1111

1212
func TestStringListContains(t *testing.T) {

pkg/kubecfg/validate.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import (
2828
"k8s.io/apimachinery/pkg/util/sets"
2929
"k8s.io/client-go/discovery"
3030

31-
"github.com/ksonnet/kubecfg/utils"
31+
"github.com/bitnami/kubecfg/utils"
3232
)
3333

3434
// ValidateCmd represents the validate subcommand

0 commit comments

Comments
 (0)