Skip to content
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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

env:
# Common versions
GO_VERSION: '1.23'
GO_VERSION: '1.24'
GOLANGCI_VERSION: 'v2.1.2'
DOCKER_BUILDX_VERSION: 'v0.23.0'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-provider-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
required: false
go-version:
description: 'Go version to use if building needs to be done'
default: '1.23'
default: '1.24'
required: false

jobs:
Expand Down
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version: "2"
run:
timeout: 2m
timeout: 10m

formatters:
# Enable specific formatter.
Expand Down
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@ GO_TEST_PARALLEL := $(shell echo $$(( $(NPROCS) / 2 )))
GOLANGCILINT_VERSION ?= 2.1.2
GO_STATIC_PACKAGES = $(GO_PROJECT)/cmd/provider
GO_LDFLAGS += -X $(GO_PROJECT)/pkg/version.Version=$(VERSION)
GO_SUBDIRS += cmd pkg apis
GO_SUBDIRS += generate cmd pkg apis
GO111MODULE = on
-include build/makelib/golang.mk

# ====================================================================================
# Setup Kubernetes tools
KIND_NODE_IMAGE_TAG ?= v1.30.13
KIND_VERSION ?= v0.29.0
KUBECTL_VERSION ?= v1.30.13
CROSSPLANE_CLI_VERSION ?= v1.20.0
KIND_NODE_IMAGE_TAG ?= v1.32.8
KIND_VERSION ?= v0.30.0
KUBECTL_VERSION ?= v1.32.8
CROSSPLANE_CLI_VERSION ?= v2.0.2
-include build/makelib/k8s_tools.mk

# ====================================================================================
Expand Down
34 changes: 34 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,37 @@ Check the example:
4. Run `make` to initialize the "build". Make submodules used for CI/CD.
5. Run `make reviewable` to run code generation, linters, and tests.
6. Commit, push, and PR.

## Developing locally

**Pre-requisite:** A Kubernetes cluster with Crossplane installed

To run the `provider-helm` controller against your existing local cluster,
simply run:

```console
make run
```

Since the controller is running outside of the local cluster, you need to make
the API server accessible (on a separate terminal):

```console
sudo kubectl proxy --port=8081
```

Then we must prepare a `ProviderConfig` for the local cluster (assuming you are
using `kind` for local development):

```console
KUBECONFIG=$(kind get kubeconfig | sed -e 's|server:\s*.*$|server: http://localhost:8081|g')
kubectl -n crossplane-system create secret generic cluster-config --from-literal=kubeconfig="${KUBECONFIG}"
kubectl apply -f examples/provider-config/provider-config-with-secret.yaml
```

Now you can create `Release` resources with this `ProviderConfig`, for example
[sample release.yaml](examples/sample/release.yaml).

```console
kubectl create -f examples/sample/release.yaml
```
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"

xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1"
xpv1 "github.com/crossplane/crossplane-runtime/v2/apis/common/v1"
)

// A DatabaseSpec defines the desired state of a Database.
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ limitations under the License.
package v1alpha1

import (
xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1"
xpv1 "github.com/crossplane/crossplane-runtime/v2/apis/common/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)

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"

xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1"
xpv1 "github.com/crossplane/crossplane-runtime/v2/apis/common/v1"
)

// A ProviderConfigSpec defines the desired state of a ProviderConfig.
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"

xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1"
xpv1 "github.com/crossplane/crossplane-runtime/v2/apis/common/v1"
)

// A UserSpec defines the desired state of a Database.
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.

29 changes: 29 additions & 0 deletions apis/cluster/mssql/v1alpha1/zz_generated.pc.go

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.

18 changes: 18 additions & 0 deletions apis/cluster/mssql/v1alpha1/zz_generated.pculist.go

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

Loading