Skip to content

About

Crossplane upjet provider for Confluent Cloud: https://registry.terraform.io/providers/confluentinc/confluent/latest/docs

Resources

Code of conduct

Contributing

Security policy

Stars

14 stars

Watchers

8 watching

Forks

Provider Confluent

provider-confluent is a Crossplane provider that is built using Upjet code generation tools and exposes XRM-conformant managed resources for the Confluent API.

Getting Started

Fix for make generate

The Confluent Provider Terraform documentation has a missing block that will cause the make generate command to fail with the following error:

scraper: error: Failed to scrape Terraform provider metadata: cannot scrape Terraform registry: failed to scrape resource metadata from path: ../.work/confluentinc/confluent/docs/resources/confluent_ksql_cluster.md: failed to find the prelude of the document using the xpath expressions: //text()[contains(., "description") and contains(., "page_title")]

To fix this, run:

broken_doc_file=".work/confluentinc/confluent/docs/resources/confluent_ksql_cluster.md"
echo '---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "confluent_ksql_cluster Resource - terraform-provider-confluent"
subcategory: ""
description: |-

---' | cat - $broken_doc_file > temp && mv temp $broken_doc_file

Install the provider with the following manifest, after replacing <version> with the latest release. Releases up to and including v1.0.0 were published only to xpkg.upbound.io/crossplane-contrib/provider-confluent; newer releases are published to ghcr.io/crossplane-contrib and served by xpkg.crossplane.io:

cat <<EOF | kubectl apply -f -
apiVersion: pkg.crossplane.io/v1
kind: Provider
metadata:
  name: provider-confluent
spec:
  package: xpkg.crossplane.io/crossplane-contrib/provider-confluent:<version>
EOF

To run the provider with debug logging, reference a DeploymentRuntimeConfig from the Provider. ControllerConfig is deprecated in favor of DeploymentRuntimeConfig.

cat <<EOF | kubectl apply -f -
apiVersion: pkg.crossplane.io/v1beta1
kind: DeploymentRuntimeConfig
metadata:
  name: debug-config
spec:
  deploymentTemplate:
    spec:
      selector: {}
      template:
        spec:
          containers:
            - name: package-runtime
              args:
                - --debug
---
apiVersion: pkg.crossplane.io/v1
kind: Provider
metadata:
  name: provider-confluent
spec:
  package: xpkg.crossplane.io/crossplane-contrib/provider-confluent:<version>
  runtimeConfigRef:
    name: debug-config
EOF

You can see the API reference here.

Compatibility

The package requires Crossplane v1.14.0 or later (spec.crossplane.version in package/crossplane.yaml), which matches the crossplane-runtime version the provider is built with. The package was installed and reported healthy on Crossplane v1.14.9, v1.20.14 and v2.4.3. That check covers installation and start-up only; it does not exercise the managed resources against Confluent Cloud.

The provider uses cluster-scoped managed resources. The namespaced managed resources introduced with Crossplane v2 are not supported yet (#43).

Developing / Contributing

Please read CONTRIBUTING.md first; all commits must be signed off (DCO). Security issues are handled as described in SECURITY.md.

First, make sure you are familiar with Upjet and their documentation:

  1. https://github.com/crossplane/upjet/blob/main/docs/README.md#generating-a-crossplane-provider-using-upjet
  2. https://github.com/crossplane/upjet/blob/main/docs/configuring-a-resource.md

Run code-generation pipeline:

go run cmd/generator/main.go "$PWD"

Run against a Kubernetes cluster:

make run

Build, push, and install:

make all

Build binary:

make build

Report a Bug

For filing bugs, suggesting improvements, or requesting new features, please open an issue.

Credits

Initially developed by jaylevin, jtucci and their team at SAP.

About

Crossplane upjet provider for Confluent Cloud: https://registry.terraform.io/providers/confluentinc/confluent/latest/docs

Resources

Code of conduct

Contributing

Security policy

Stars

14 stars

Watchers

8 watching

Forks

Releases

Packages

Used by

Contributors

Languages