Skip to content

Commit

Permalink
Feat: add topic resource missing methods (#22)
Browse files Browse the repository at this point in the history
* [feat] Add version, prod endpoint and override

Now we default to prod environment
and created an env variable for dev
overrides

* [chore] update proto files

This includes the changes to support
Topic endpoints.

* [bug] return error on token authentication failure

We were not failing even if the request returned
a non-200 error code.

* [bug] Do not remove resource from state in datasources

Does not make sense here, if the cluster is
not there, that means that the user used a
cluster ID that does not exist.

* [chore] remove warning on empty provider data.

In the early configuration of the terraform lifecycle,
the provider data is not set and is valid.

* [bug] Fix wrong error message in user import

* [chore] implement missing topic resource methods

This includes:

- Update
- Import
- Read

There are a few workarounds commented in the code.
  • Loading branch information
r-vasquez authored Feb 8, 2024
1 parent 118409b commit f2f0b1b
Show file tree
Hide file tree
Showing 21 changed files with 2,075 additions and 1,626 deletions.
6 changes: 4 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ import (
)

// TODO: We should update this on build. Part of the release process
var version = "ign"
var version = "0.0.0-alpha"

const defaultCloudEnv = "prod"

func main() {
var debug bool
Expand All @@ -20,7 +22,7 @@ func main() {

err := providerserver.Serve(
context.Background(),
redpanda.New(context.Background(), version),
redpanda.New(context.Background(), defaultCloudEnv, version),
providerserver.ServeOpts{
Address: "registry.terraform.io/redpanda-data/redpanda",
Debug: debug,
Expand Down
51 changes: 30 additions & 21 deletions proto/gen/go/redpanda/api/common/v1alpha1/money.pb.go

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

123 changes: 96 additions & 27 deletions proto/gen/go/redpanda/api/dataplane/v1alpha1/common.pb.go

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

Loading

0 comments on commit f2f0b1b

Please sign in to comment.