Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove resources that are not needed #27

Merged
merged 13 commits into from
Jan 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
.cache
.work
.temp
_output
cover.out
vendor
.vendor-new
.DS_Store

# ignore vscode files (debug config etc...)
.vscode
.idea

# Golang github .gitignore https://github.com/github/gitignore/blob/main/Go.gitignore
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib

# Test binary, built with `go test -c`
*.test

# Output of the go coverage tool, specifically when used with LiteIDE
*.out

# Go workspace file
go.work
go.work.sum

# Crossplane configuration package
*.xpkg

# Logfiles, like those produced by some of the tests
*.log
5 changes: 3 additions & 2 deletions bind/DEVELOPING.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

`make lint` to run the linter to make sure the code is up to standards. Each commit should pass this check.


## Working with the components in a dev environment

binaries are built using `make`

### Example Backend

Testing the backend requires a working and reachable OIDC provider. You can test the backend locally
Expand All @@ -25,13 +25,14 @@ go run ./cmd/example-backend \
--cookie-signing-key=$(openssl rand -base64 32) /

```

### Konnector

Most of the Konnector code is located in `./pkg/konnector`. To test out your own changes to the
Konnector build a new image using

```sh
KO_DOCKER_REPO=<your container registry> ko build ./cmd/konnector --bare -t <some new tag here>
KO_DOCKER_REPO=<your container registry> ko build ./cmd/konnector --bare -t <some new tag here> --platform=linux/amd64,linux/arm64
```

Once you have a new image, you can either `kubectl edit -n bind deployment konnector` on your
Expand Down
4 changes: 2 additions & 2 deletions bind/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ codegen: $(CONTROLLER_GEN) $(YAML_PATCH) ## Run the codegenerators
verify-codegen:
if [[ -n "${GITHUB_WORKSPACE}" ]]; then \
mkdir -p $$(go env GOPATH)/src/github.com/kube-bind; \
ln -s ${GITHUB_WORKSPACE} $$(go env GOPATH)/src/github.com/anynines/klutch/bind; \
ln -s ${GITHUB_WORKSPACE} $$(go env GOPATH)/src/github.com/anynines/klutchio/bind; \
fi

$(MAKE) codegen
Expand All @@ -176,7 +176,7 @@ $(OPENSHIFT_GOIMPORTS):

.PHONY: imports
imports: $(OPENSHIFT_GOIMPORTS)
$(OPENSHIFT_GOIMPORTS) -m github.com/anynines/klutch/bind
$(OPENSHIFT_GOIMPORTS) -m github.com/anynines/klutchio/bind

$(TOOLS_DIR)/verify_boilerplate.py:
mkdir -p $(TOOLS_DIR)
Expand Down
4 changes: 2 additions & 2 deletions bind/cmd/example-backend/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ import (
"k8s.io/component-base/version"
"k8s.io/klog/v2"

backend "github.com/anynines/klutch/bind/contrib/example-backend"
"github.com/anynines/klutch/bind/contrib/example-backend/options"
backend "github.com/anynines/klutchio/bind/contrib/example-backend"
"github.com/anynines/klutchio/bind/contrib/example-backend/options"
)

func main() {
Expand Down
6 changes: 3 additions & 3 deletions bind/cmd/konnector/cmd/konnector.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ import (
componentbaseversion "k8s.io/component-base/version"
"k8s.io/klog/v2"

"github.com/anynines/klutch/bind/pkg/konnector"
konnectoroptions "github.com/anynines/klutch/bind/pkg/konnector/options"
bindversion "github.com/anynines/klutch/bind/pkg/version"
"github.com/anynines/klutchio/bind/pkg/konnector"
konnectoroptions "github.com/anynines/klutchio/bind/pkg/konnector/options"
bindversion "github.com/anynines/klutchio/bind/pkg/version"
)

const LeaderElectionTimeout = 3 * time.Second
Expand Down
2 changes: 1 addition & 1 deletion bind/cmd/konnector/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
genericapiserver "k8s.io/apiserver/pkg/server"
"k8s.io/component-base/cli"

"github.com/anynines/klutch/bind/cmd/konnector/cmd"
"github.com/anynines/klutchio/bind/cmd/konnector/cmd"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions bind/cmd/kubectl-bind/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ import (

"k8s.io/cli-runtime/pkg/genericclioptions"

apiservicecmd "github.com/anynines/klutch/bind/pkg/kubectl/bind-apiservice/cmd"
bindcmd "github.com/anynines/klutch/bind/pkg/kubectl/bind/cmd"
apiservicecmd "github.com/anynines/klutchio/bind/pkg/kubectl/bind-apiservice/cmd"
bindcmd "github.com/anynines/klutchio/bind/pkg/kubectl/bind/cmd"
)

func init() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package v1alpha1
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

"github.com/anynines/klutch/bind/pkg/apis/bind/v1alpha1"
"github.com/anynines/klutchio/bind/pkg/apis/bind/v1alpha1"
)

// APIServiceExportTemplate specifies the resource to be exported.
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions bind/contrib/example-backend/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ import (
"k8s.io/client-go/rest"
"k8s.io/client-go/tools/clientcmd"

"github.com/anynines/klutch/bind/contrib/example-backend/options"
bindclient "github.com/anynines/klutch/bind/pkg/client/clientset/versioned"
bindinformers "github.com/anynines/klutch/bind/pkg/client/informers/externalversions"
"github.com/anynines/klutchio/bind/contrib/example-backend/options"
bindclient "github.com/anynines/klutchio/bind/pkg/client/clientset/versioned"
bindinformers "github.com/anynines/klutchio/bind/pkg/client/informers/externalversions"
)

type Config struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ import (
"k8s.io/client-go/util/workqueue"
"k8s.io/klog/v2"

bindv1alpha1 "github.com/anynines/klutch/bind/pkg/apis/bind/v1alpha1"
bindclient "github.com/anynines/klutch/bind/pkg/client/clientset/versioned"
bindinformers "github.com/anynines/klutch/bind/pkg/client/informers/externalversions/bind/v1alpha1"
bindlisters "github.com/anynines/klutch/bind/pkg/client/listers/bind/v1alpha1"
"github.com/anynines/klutch/bind/pkg/committer"
bindv1alpha1 "github.com/anynines/klutchio/bind/pkg/apis/bind/v1alpha1"
bindclient "github.com/anynines/klutchio/bind/pkg/client/clientset/versioned"
bindinformers "github.com/anynines/klutchio/bind/pkg/client/informers/externalversions/bind/v1alpha1"
bindlisters "github.com/anynines/klutchio/bind/pkg/client/listers/bind/v1alpha1"
"github.com/anynines/klutchio/bind/pkg/committer"
)

const (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ import (
utilerrors "k8s.io/apimachinery/pkg/util/errors"
"k8s.io/utils/pointer"

kuberesources "github.com/anynines/klutch/bind/contrib/example-backend/kubernetes/resources"
bindv1alpha1 "github.com/anynines/klutch/bind/pkg/apis/bind/v1alpha1"
conditionsapi "github.com/anynines/klutch/bind/pkg/apis/third_party/conditions/apis/conditions/v1alpha1"
"github.com/anynines/klutch/bind/pkg/apis/third_party/conditions/util/conditions"
kuberesources "github.com/anynines/klutchio/bind/contrib/example-backend/kubernetes/resources"
bindv1alpha1 "github.com/anynines/klutchio/bind/pkg/apis/bind/v1alpha1"
conditionsapi "github.com/anynines/klutchio/bind/pkg/apis/third_party/conditions/apis/conditions/v1alpha1"
"github.com/anynines/klutchio/bind/pkg/apis/third_party/conditions/util/conditions"
)

type reconciler struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ import (
"k8s.io/client-go/util/workqueue"
"k8s.io/klog/v2"

bindv1alpha1 "github.com/anynines/klutch/bind/pkg/apis/bind/v1alpha1"
bindclient "github.com/anynines/klutch/bind/pkg/client/clientset/versioned"
bindinformers "github.com/anynines/klutch/bind/pkg/client/informers/externalversions/bind/v1alpha1"
bindlisters "github.com/anynines/klutch/bind/pkg/client/listers/bind/v1alpha1"
"github.com/anynines/klutch/bind/pkg/committer"
"github.com/anynines/klutch/bind/pkg/indexers"
bindv1alpha1 "github.com/anynines/klutchio/bind/pkg/apis/bind/v1alpha1"
bindclient "github.com/anynines/klutchio/bind/pkg/client/clientset/versioned"
bindinformers "github.com/anynines/klutchio/bind/pkg/client/informers/externalversions/bind/v1alpha1"
bindlisters "github.com/anynines/klutchio/bind/pkg/client/listers/bind/v1alpha1"
"github.com/anynines/klutchio/bind/pkg/committer"
"github.com/anynines/klutchio/bind/pkg/indexers"
)

const (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ import (
utilerrors "k8s.io/apimachinery/pkg/util/errors"
"k8s.io/klog/v2"

bindv1alpha1 "github.com/anynines/klutch/bind/pkg/apis/bind/v1alpha1"
kubebindhelpers "github.com/anynines/klutch/bind/pkg/apis/bind/v1alpha1/helpers"
conditionsapi "github.com/anynines/klutch/bind/pkg/apis/third_party/conditions/apis/conditions/v1alpha1"
"github.com/anynines/klutch/bind/pkg/apis/third_party/conditions/util/conditions"
bindv1alpha1 "github.com/anynines/klutchio/bind/pkg/apis/bind/v1alpha1"
kubebindhelpers "github.com/anynines/klutchio/bind/pkg/apis/bind/v1alpha1/helpers"
conditionsapi "github.com/anynines/klutchio/bind/pkg/apis/third_party/conditions/apis/conditions/v1alpha1"
"github.com/anynines/klutchio/bind/pkg/apis/third_party/conditions/util/conditions"
)

type reconciler struct {
Expand Down
Loading
Loading