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
3 changes: 0 additions & 3 deletions .github/FUNDING.yml

This file was deleted.

8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## v1.4.3

The provider moved to the cozystack GitHub organization and now publishes under the `cozystack/cozystack` registry namespace. The tracked Cozystack API version (`apps.cozystack.io` v1.4.3) carries no schema changes relevant to the provider over v1.4.2.

### Breaking changes

- Registry source changed from `lexfrei/cozystack` to `cozystack/cozystack`. Update the `source` in your `required_providers` block (and any `dev_overrides`) accordingly.

## v1.4.2

Initial release. The version tracks the Cozystack API version (`apps.cozystack.io` v1.4.2) the provider is built against.
Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Be respectful and constructive in all interactions. Contributors of all experien
## Development Setup

```bash
git clone https://github.com/lexfrei/terraform-provider-cozystack.git
git clone https://github.com/cozystack/terraform-provider-cozystack.git
cd terraform-provider-cozystack
make build # build the provider binary
make test # run unit tests with the race detector
Expand All @@ -43,7 +43,7 @@ To exercise the provider with a real `tofu`/`terraform` configuration before it
make install
```

Then add a `dev_overrides` block to `~/.terraformrc` (or a `TF_CLI_CONFIG_FILE`) mapping `registry.opentofu.org/lexfrei/cozystack` to your `GOBIN`. With an override in place, run `tofu plan` directly — no `tofu init` is needed.
Then add a `dev_overrides` block to `~/.terraformrc` (or a `TF_CLI_CONFIG_FILE`) mapping `registry.opentofu.org/cozystack/cozystack` to your `GOBIN`. With an override in place, run `tofu plan` directly — no `tofu init` is needed.

### Acceptance Tests

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ The names of these backing Secrets/Services are chart conventions (`postgres-<na
terraform {
required_providers {
cozystack = {
source = "lexfrei/cozystack"
source = "cozystack/cozystack"
}
}
}
Expand Down Expand Up @@ -167,7 +167,7 @@ make install # go install into $GOBIN
# ~/.terraformrc (or a file referenced by TF_CLI_CONFIG_FILE)
provider_installation {
dev_overrides {
"registry.terraform.io/lexfrei/cozystack" = "/path/to/your/gobin"
"registry.terraform.io/cozystack/cozystack" = "/path/to/your/gobin"
}
direct {}
}
Expand Down
2 changes: 1 addition & 1 deletion docs/index.md

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

2 changes: 1 addition & 1 deletion examples/provider/provider.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
required_providers {
cozystack = {
source = "lexfrei/cozystack"
source = "cozystack/cozystack"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/lexfrei/terraform-provider-cozystack
module github.com/cozystack/terraform-provider-cozystack

go 1.26.4

Expand Down
2 changes: 1 addition & 1 deletion internal/client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"testing"
"time"

"github.com/lexfrei/terraform-provider-cozystack/internal/client"
"github.com/cozystack/terraform-provider-cozystack/internal/client"
apierrors "k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"k8s.io/apimachinery/pkg/runtime"
Expand Down
2 changes: 1 addition & 1 deletion internal/client/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"path/filepath"
"testing"

"github.com/lexfrei/terraform-provider-cozystack/internal/client"
"github.com/cozystack/terraform-provider-cozystack/internal/client"
)

func TestResolveEnv_FillsEmptyFieldsFromEnv(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion internal/client/exec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package client_test
import (
"testing"

"github.com/lexfrei/terraform-provider-cozystack/internal/client"
"github.com/cozystack/terraform-provider-cozystack/internal/client"
)

func TestRestConfig_ExecAndClientCert(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion internal/client/outputs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"encoding/base64"
"testing"

"github.com/lexfrei/terraform-provider-cozystack/internal/client"
"github.com/cozystack/terraform-provider-cozystack/internal/client"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/schema"
Expand Down
2 changes: 1 addition & 1 deletion internal/client/secretobject_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"testing"

"github.com/lexfrei/terraform-provider-cozystack/internal/client"
"github.com/cozystack/terraform-provider-cozystack/internal/client"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/schema"
dynamicfake "k8s.io/client-go/dynamic/fake"
Expand Down
2 changes: 1 addition & 1 deletion internal/client/uid_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"testing"

"github.com/lexfrei/terraform-provider-cozystack/internal/client"
"github.com/cozystack/terraform-provider-cozystack/internal/client"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
)

Expand Down
4 changes: 2 additions & 2 deletions internal/provider/acc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import (
"testing"
"time"

"github.com/cozystack/terraform-provider-cozystack/internal/client"
"github.com/cozystack/terraform-provider-cozystack/internal/provider"
"github.com/hashicorp/terraform-plugin-framework/providerserver"
"github.com/hashicorp/terraform-plugin-go/tfprotov6"
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
"github.com/hashicorp/terraform-plugin-testing/terraform"
"github.com/lexfrei/terraform-provider-cozystack/internal/client"
"github.com/lexfrei/terraform-provider-cozystack/internal/provider"
)

// applicationTeardownTimeout bounds how long CheckDestroy waits for the async
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/backups_typed.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import (
"context"
"encoding/json"

"github.com/cozystack/terraform-provider-cozystack/internal/client"
"github.com/hashicorp/terraform-plugin-framework-jsontypes/jsontypes"
"github.com/hashicorp/terraform-plugin-framework/attr"
"github.com/hashicorp/terraform-plugin-framework/diag"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
"github.com/lexfrei/terraform-provider-cozystack/internal/client"
)

// appRefObjectType is the {apiGroup,kind,name} reference shared by the backups
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/backups_typed_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"context"
"testing"

"github.com/cozystack/terraform-provider-cozystack/internal/client"
"github.com/hashicorp/terraform-plugin-framework-jsontypes/jsontypes"
"github.com/hashicorp/terraform-plugin-framework/attr"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/lexfrei/terraform-provider-cozystack/internal/client"
)

// Vendored guard structs mirror the backups.cozystack.io CRD spec field names.
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/bucket_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package provider
import (
"context"

"github.com/cozystack/terraform-provider-cozystack/internal/client"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/lexfrei/terraform-provider-cozystack/internal/client"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/bucket_model.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"context"
"encoding/json"

"github.com/cozystack/terraform-provider-cozystack/internal/client"
"github.com/hashicorp/terraform-plugin-framework/attr"
"github.com/hashicorp/terraform-plugin-framework/diag"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/lexfrei/terraform-provider-cozystack/internal/client"
)

// bucketModel maps the cozystack_bucket schema to Go types. The spec attributes
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/bucket_model_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"testing"

"github.com/cozystack/cozystack/api/apps/v1alpha1/bucket"
"github.com/cozystack/terraform-provider-cozystack/internal/client"
"github.com/hashicorp/terraform-plugin-framework/attr"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/lexfrei/terraform-provider-cozystack/internal/client"
)

func bucketUsersValue(t *testing.T, users map[string]bool) types.Map {
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/bucket_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"maps"

"github.com/cozystack/terraform-provider-cozystack/internal/client"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
Expand All @@ -12,7 +13,6 @@ import (
"github.com/hashicorp/terraform-plugin-framework/resource/schema/stringdefault"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/lexfrei/terraform-provider-cozystack/internal/client"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/clickhouse_model.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ package provider
import (
"context"

"github.com/cozystack/terraform-provider-cozystack/internal/client"
"github.com/hashicorp/terraform-plugin-framework/attr"
"github.com/hashicorp/terraform-plugin-framework/diag"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/lexfrei/terraform-provider-cozystack/internal/client"
)

// clickhouseModel maps the cozystack_clickhouse schema to Go types. The
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/clickhouse_model_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"testing"

"github.com/cozystack/cozystack/api/apps/v1alpha1/clickhouse"
"github.com/cozystack/terraform-provider-cozystack/internal/client"
"github.com/hashicorp/terraform-plugin-framework/attr"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/lexfrei/terraform-provider-cozystack/internal/client"
)

func fullClickhouseModel() clickhouseModel {
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/crud.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"strings"
"time"

"github.com/cozystack/terraform-provider-cozystack/internal/client"
"github.com/hashicorp/terraform-plugin-framework/diag"
"github.com/hashicorp/terraform-plugin-framework/tfsdk"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/lexfrei/terraform-provider-cozystack/internal/client"
)

// defaultWaitTimeout bounds how long Create/Update block on readiness.
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/ephemeral.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ package provider
import (
"context"

"github.com/cozystack/terraform-provider-cozystack/internal/client"
"github.com/hashicorp/terraform-plugin-framework/ephemeral"
ephschema "github.com/hashicorp/terraform-plugin-framework/ephemeral/schema"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/lexfrei/terraform-provider-cozystack/internal/client"
)

// Ephemeral resources fetch secrets at apply time without persisting them in
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/foundationdb_model.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package provider
import (
"context"

"github.com/cozystack/terraform-provider-cozystack/internal/client"
"github.com/hashicorp/terraform-plugin-framework/attr"
"github.com/hashicorp/terraform-plugin-framework/diag"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
"github.com/lexfrei/terraform-provider-cozystack/internal/client"
)

// foundationdbModel maps the cozystack_foundationdb schema to Go types. The
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/foundationdb_model_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"testing"

"github.com/cozystack/cozystack/api/apps/v1alpha1/foundationdb"
"github.com/cozystack/terraform-provider-cozystack/internal/client"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/lexfrei/terraform-provider-cozystack/internal/client"
)

func fullFoundationDBModel() foundationdbModel {
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/generic_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ package provider
import (
"context"

"github.com/cozystack/terraform-provider-cozystack/internal/client"
"github.com/hashicorp/terraform-plugin-framework/datasource"
dsschema "github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
rschema "github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/lexfrei/terraform-provider-cozystack/internal/client"
)

// appResource is the generic managed-resource implementation shared by every
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/harbor_model.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package provider
import (
"context"

"github.com/cozystack/terraform-provider-cozystack/internal/client"
"github.com/hashicorp/terraform-plugin-framework/diag"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/lexfrei/terraform-provider-cozystack/internal/client"
)

// harborModel maps the cozystack_harbor schema to Go types. The core, registry,
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/harbor_model_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"testing"

"github.com/cozystack/cozystack/api/apps/v1alpha1/harbor"
"github.com/cozystack/terraform-provider-cozystack/internal/client"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/lexfrei/terraform-provider-cozystack/internal/client"
)

func fullHarborModel() harborModel {
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/httpcache_model.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package provider
import (
"context"

"github.com/cozystack/terraform-provider-cozystack/internal/client"
"github.com/hashicorp/terraform-plugin-framework/diag"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/lexfrei/terraform-provider-cozystack/internal/client"
)

// httpcacheModel maps the cozystack_httpcache schema to Go types. The haproxy and
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/httpcache_model_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"testing"

"github.com/cozystack/cozystack/api/apps/v1alpha1/httpcache"
"github.com/cozystack/terraform-provider-cozystack/internal/client"
"github.com/hashicorp/terraform-plugin-framework/attr"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/lexfrei/terraform-provider-cozystack/internal/client"
)

func fullHTTPCacheModel() httpcacheModel {
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/kafka_model.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package provider
import (
"context"

"github.com/cozystack/terraform-provider-cozystack/internal/client"
"github.com/hashicorp/terraform-plugin-framework/attr"
"github.com/hashicorp/terraform-plugin-framework/diag"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
"github.com/lexfrei/terraform-provider-cozystack/internal/client"
)

// kafkaModel maps the cozystack_kafka schema to Go types. Per-topic opaque
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/kafka_model_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"testing"

"github.com/cozystack/cozystack/api/apps/v1alpha1/kafka"
"github.com/cozystack/terraform-provider-cozystack/internal/client"
"github.com/hashicorp/terraform-plugin-framework/attr"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/lexfrei/terraform-provider-cozystack/internal/client"
)

func fullKafkaModel() kafkaModel {
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/kubernetes_model.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ package provider
import (
"context"

"github.com/cozystack/terraform-provider-cozystack/internal/client"
"github.com/hashicorp/terraform-plugin-framework/attr"
"github.com/hashicorp/terraform-plugin-framework/diag"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/lexfrei/terraform-provider-cozystack/internal/client"
)

// kubernetesModel maps the cozystack_kubernetes schema to Go types. The addons,
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/kubernetes_model_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"testing"

"github.com/cozystack/cozystack/api/apps/v1alpha1/kubernetes"
"github.com/cozystack/terraform-provider-cozystack/internal/client"
"github.com/hashicorp/terraform-plugin-framework/attr"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/lexfrei/terraform-provider-cozystack/internal/client"
)

func fullKubernetesModel() kubernetesModel {
Expand Down
Loading
Loading