From 918296501510ee16ed0549a495190a91f5c4b9bb Mon Sep 17 00:00:00 2001 From: Jordan Levin <31293855+jaylevin@users.noreply.github.com> Date: Fri, 22 Sep 2023 11:36:48 -0700 Subject: [PATCH] chore(configuration): add resource configuration; fix Makefile recipes (#3) Signed-off-by: Jordan Levin Signed-off-by: Christopher Haar Co-authored-by: Christopher Haar --- .github/workflows/ci.yaml | 40 +- .gitignore | 13 + Makefile | 12 +- README.md | 19 + apis/api/v1alpha1/zz_generated.deepcopy.go | 374 ---- apis/api/v1alpha1/zz_generated.managed.go | 84 - apis/api/v1alpha1/zz_generated.managedlist.go | 17 - apis/api/v1alpha1/zz_generated_terraformed.go | 88 - apis/api/v1alpha1/zz_groupversion_info.go | 32 - .../v1alpha1/zz_apikey_types.go} | 101 +- .../v1alpha1/zz_cluster_types.go | 39 +- .../v1alpha1/zz_clusterconfig_types.go | 0 .../v1alpha1/zz_environment_types.go | 8 +- .../v1alpha1/zz_generated.deepcopy.go | 1806 ++++++++++++++++- .../v1alpha1/zz_generated.managed.go | 456 +++++ .../v1alpha1/zz_generated.managedlist.go | 54 + .../v1alpha1/zz_generated.resolvers.go | 154 ++ .../v1alpha1/zz_generated_terraformed.go | 447 +++- .../v1alpha1/zz_kafkaacl_types.go} | 92 +- .../v1alpha1/zz_rolebinding_types.go} | 40 +- .../v1alpha1/zz_serviceaccount_types.go} | 40 +- apis/kafka/v1alpha1/zz_generated.deepcopy.go | 1027 ---------- apis/kafka/v1alpha1/zz_generated.managed.go | 236 --- .../v1alpha1/zz_generated.managedlist.go | 35 - .../v1alpha1/zz_generated_terraformed.go | 236 --- apis/kafka/v1alpha1/zz_groupversion_info.go | 32 - apis/role/v1alpha1/zz_generated.deepcopy.go | 172 -- apis/role/v1alpha1/zz_generated.managed.go | 84 - .../role/v1alpha1/zz_generated.managedlist.go | 17 - .../role/v1alpha1/zz_generated_terraformed.go | 88 - apis/role/v1alpha1/zz_groupversion_info.go | 32 - .../service/v1alpha1/zz_generated.deepcopy.go | 172 -- apis/service/v1alpha1/zz_generated.managed.go | 84 - .../v1alpha1/zz_generated.managedlist.go | 17 - .../v1alpha1/zz_generated_terraformed.go | 88 - apis/service/v1alpha1/zz_groupversion_info.go | 32 - apis/zz_register.go | 10 +- cluster/local/integration_tests.sh | 196 ++ cluster/test/setup.sh | 26 + config/confluent_api_key/config.go | 42 + config/confluent_environment/config.go | 12 + config/confluent_kafka_acl/config.go | 48 + config/confluent_kafka_cluster/config.go | 26 + .../confluent_kafka_cluster_config/config.go | 12 + config/confluent_role_binding/config.go | 15 + config/confluent_service_account/config.go | 13 + config/provider.go | 15 + examples/api_key/api_key.yml | 20 + examples/environment/environment.yaml | 7 + examples/install.yaml | 4 +- examples/kafka_acl/acl.yaml | 27 + examples/kafka_cluster/kafka_cluster.yaml | 18 + .../kafka_cluster_config.yaml | 9 + examples/providerconfig/providerconfig.yaml | 4 +- examples/role_binding/role-binding.yaml | 11 + examples/service_account/service_account.yml | 11 + examples/storeconfig/vault.yaml | 2 +- go.mod | 2 +- .../key => confluent/apikey}/zz_controller.go | 14 +- .../cluster/zz_controller.go | 2 +- .../clusterconfig/zz_controller.go | 2 +- .../kafkaacl}/zz_controller.go | 14 +- .../rolebinding}/zz_controller.go | 14 +- .../serviceaccount}/zz_controller.go | 14 +- internal/controller/zz_setup.go | 22 +- ...l => confluent.crossplane.io_apikeys.yaml} | 254 ++- ...nfluent.crossplane.io_clusterconfigs.yaml} | 4 +- ... => confluent.crossplane.io_clusters.yaml} | 84 +- ...=> confluent.crossplane.io_kafkaacls.yaml} | 171 +- ...confluent.crossplane.io_rolebindings.yaml} | 18 +- ...fluent.crossplane.io_serviceaccounts.yaml} | 19 +- 71 files changed, 4207 insertions(+), 3223 deletions(-) create mode 100644 .gitignore delete mode 100644 apis/api/v1alpha1/zz_generated.deepcopy.go delete mode 100644 apis/api/v1alpha1/zz_generated.managed.go delete mode 100644 apis/api/v1alpha1/zz_generated.managedlist.go delete mode 100755 apis/api/v1alpha1/zz_generated_terraformed.go delete mode 100755 apis/api/v1alpha1/zz_groupversion_info.go rename apis/{api/v1alpha1/zz_key_types.go => confluent/v1alpha1/zz_apikey_types.go} (70%) rename apis/{kafka => confluent}/v1alpha1/zz_cluster_types.go (90%) rename apis/{kafka => confluent}/v1alpha1/zz_clusterconfig_types.go (100%) create mode 100644 apis/confluent/v1alpha1/zz_generated.resolvers.go rename apis/{kafka/v1alpha1/zz_acl_types.go => confluent/v1alpha1/zz_kafkaacl_types.go} (74%) rename apis/{role/v1alpha1/zz_binding_types.go => confluent/v1alpha1/zz_rolebinding_types.go} (71%) rename apis/{service/v1alpha1/zz_account_types.go => confluent/v1alpha1/zz_serviceaccount_types.go} (66%) delete mode 100644 apis/kafka/v1alpha1/zz_generated.deepcopy.go delete mode 100644 apis/kafka/v1alpha1/zz_generated.managed.go delete mode 100644 apis/kafka/v1alpha1/zz_generated.managedlist.go delete mode 100755 apis/kafka/v1alpha1/zz_generated_terraformed.go delete mode 100755 apis/kafka/v1alpha1/zz_groupversion_info.go delete mode 100644 apis/role/v1alpha1/zz_generated.deepcopy.go delete mode 100644 apis/role/v1alpha1/zz_generated.managed.go delete mode 100644 apis/role/v1alpha1/zz_generated.managedlist.go delete mode 100755 apis/role/v1alpha1/zz_generated_terraformed.go delete mode 100755 apis/role/v1alpha1/zz_groupversion_info.go delete mode 100644 apis/service/v1alpha1/zz_generated.deepcopy.go delete mode 100644 apis/service/v1alpha1/zz_generated.managed.go delete mode 100644 apis/service/v1alpha1/zz_generated.managedlist.go delete mode 100755 apis/service/v1alpha1/zz_generated_terraformed.go delete mode 100755 apis/service/v1alpha1/zz_groupversion_info.go create mode 100755 cluster/local/integration_tests.sh create mode 100755 cluster/test/setup.sh create mode 100644 config/confluent_api_key/config.go create mode 100644 config/confluent_environment/config.go create mode 100644 config/confluent_kafka_acl/config.go create mode 100644 config/confluent_kafka_cluster/config.go create mode 100644 config/confluent_kafka_cluster_config/config.go create mode 100644 config/confluent_role_binding/config.go create mode 100644 config/confluent_service_account/config.go create mode 100644 examples/api_key/api_key.yml create mode 100644 examples/environment/environment.yaml create mode 100644 examples/kafka_acl/acl.yaml create mode 100644 examples/kafka_cluster/kafka_cluster.yaml create mode 100644 examples/kafka_cluster_config/kafka_cluster_config.yaml create mode 100644 examples/role_binding/role-binding.yaml create mode 100644 examples/service_account/service_account.yml rename internal/controller/{api/key => confluent/apikey}/zz_controller.go (87%) rename internal/controller/{kafka => confluent}/cluster/zz_controller.go (99%) rename internal/controller/{kafka => confluent}/clusterconfig/zz_controller.go (99%) rename internal/controller/{kafka/acl => confluent/kafkaacl}/zz_controller.go (86%) rename internal/controller/{role/binding => confluent/rolebinding}/zz_controller.go (86%) rename internal/controller/{service/account => confluent/serviceaccount}/zz_controller.go (85%) rename package/crds/{api.crossplane.io_keys.yaml => confluent.crossplane.io_apikeys.yaml} (57%) rename package/crds/{kafka.crossplane.io_clusterconfigs.yaml => confluent.crossplane.io_clusterconfigs.yaml} (99%) rename package/crds/{kafka.crossplane.io_clusters.yaml => confluent.crossplane.io_clusters.yaml} (82%) rename package/crds/{kafka.crossplane.io_acls.yaml => confluent.crossplane.io_kafkaacls.yaml} (71%) rename package/crds/{role.crossplane.io_bindings.yaml => confluent.crossplane.io_rolebindings.yaml} (97%) rename package/crds/{service.crossplane.io_accounts.yaml => confluent.crossplane.io_serviceaccounts.yaml} (96%) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 8a1df8c..82a3aff 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -79,6 +79,7 @@ jobs: - name: Lint uses: golangci/golangci-lint-action@v3 with: + args: --timeout=30m version: ${{ env.GOLANGCI_VERSION }} check-diff: @@ -114,12 +115,35 @@ jobs: path: .work/pkg key: ${{ runner.os }}-pkg-${{ hashFiles('**/go.sum') }} restore-keys: ${{ runner.os }}-pkg- - - name: Vendor Dependencies run: make vendor vendor.check + - name: make generate + run: | + make generate > /dev/null || true + - name: debug + run: | + tree .work || true + + - name: pre-process-docs + continue-on-error: true + run: | + set +e + broken_doc_file=".work/confluentinc/confluent/docs/resources/confluent_ksql_cluster.md" + if ! grep -q page_title "$broken_doc_file"; then + echo '--- + # generated by Github Action + page_title: "confluent_ksql_cluster Resource - terraform-provider-confluent" + subcategory: "" + description: |- + ---' | cat - $broken_doc_file > temp && mv temp $broken_doc_file + fi - name: Check Diff - run: make check-diff + run: | + set +e + go install golang.org/x/tools/cmd/goimports@latest + make generate && make check-diff + git status unit-tests: runs-on: ubuntu-20.04 @@ -289,20 +313,20 @@ jobs: # We're using docker buildx, which doesn't actually load the images it # builds by default. Specifying --load does so. BUILD_ARGS: "--load" - + - name: Publish Artifacts to GitHub uses: actions/upload-artifact@v2 with: name: output path: _output/** - + - name: Login to Docker uses: docker/login-action@v1 if: env.CONTRIB_DOCKER_USR != '' with: username: ${{ secrets.CONTRIB_DOCKER_USR }} password: ${{ secrets.CONTRIB_DOCKER_PSW }} - + - name: Login to Upbound uses: docker/login-action@v1 if: env.XPKG_ACCESS_ID != '' @@ -310,7 +334,7 @@ jobs: registry: xpkg.upbound.io username: ${{ secrets.XPKG_ACCESS_ID }} password: ${{ secrets.XPKG_TOKEN }} - + - name: Publish Artifacts to S3 and Docker Hub run: make -j2 publish BRANCH_NAME=${GITHUB_REF##*/} if: env.AWS_USR != '' && env.CONTRIB_DOCKER_USR != '' @@ -318,7 +342,7 @@ jobs: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_USR }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_PSW }} GIT_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} - + - name: Promote Artifacts in S3 and Docker Hub if: github.ref == 'refs/heads/master' && env.AWS_USR != '' && env.CONTRIB_DOCKER_USR != '' run: make -j2 promote @@ -327,4 +351,4 @@ jobs: CHANNEL: master AWS_ACCESS_KEY_ID: ${{ secrets.AWS_USR }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_PSW }} - + diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5811be0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,13 @@ +/.cache +/.work +/_output +cover.out +/vendor +/.vendor-new + +# asdf loca go version +.tool-versions + +# ignore IDE folders +.vscode/ +.idea/ \ No newline at end of file diff --git a/Makefile b/Makefile index 56780f8..070a35c 100644 --- a/Makefile +++ b/Makefile @@ -10,6 +10,7 @@ export TERRAFORM_PROVIDER_SOURCE := confluentinc/confluent export TERRAFORM_PROVIDER_REPO := https://github.com/confluentinc/terraform-provider-confluent export TERRAFORM_PROVIDER_VERSION := 1.28.0 export TERRAFORM_PROVIDER_DOWNLOAD_NAME := terraform-provider-confluent +export TERRAFORM_PROVIDER_DOWNLOAD_URL_PREFIX ?= $(TERRAFORM_PROVIDER_REPO)/releases/download/v$(TERRAFORM_PROVIDER_VERSION) export TERRAFORM_NATIVE_PROVIDER_BINARY := terraform-provider-confluent_1.28.0 export TERRAFORM_DOCS_PATH := docs/resources @@ -51,7 +52,7 @@ GO111MODULE = on # ==================================================================================== # Setup Kubernetes tools -UP_VERSION = v0.13.0 +UP_VERSION = v0.19.0 UP_CHANNEL = stable -include build/makelib/k8s_tools.mk @@ -135,6 +136,15 @@ run: go.build @# To see other arguments that can be provided, run the command with --help instead $(GO_OUT_DIR)/provider --debug +pull-docs: + @if [ ! -d "$(WORK_DIR)/$(TERRAFORM_PROVIDER_SOURCE)" ]; then \ + mkdir -p "$(WORK_DIR)/$(TERRAFORM_PROVIDER_SOURCE)" && \ + git clone -c advice.detachedHead=false --depth 1 --filter=blob:none --branch "v$(TERRAFORM_PROVIDER_VERSION)" --sparse "$(TERRAFORM_PROVIDER_REPO)" "$(WORK_DIR)/$(TERRAFORM_PROVIDER_SOURCE)"; \ + fi + @git -C "$(WORK_DIR)/$(TERRAFORM_PROVIDER_SOURCE)" sparse-checkout set "$(TERRAFORM_DOCS_PATH)" + +generate.init: $(TERRAFORM_PROVIDER_SCHEMA) pull-docs + .PHONY: cobertura manifests submodules fallthrough test-integration run crds.clean # ==================================================================================== diff --git a/README.md b/README.md index 0583499..d55b025 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,25 @@ 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: +```shell +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: +```shell +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 by using the following command after changing the image tag to the [latest release](https://marketplace.upbound.io/providers/crossplane-contrib/provider-confluent): ``` diff --git a/apis/api/v1alpha1/zz_generated.deepcopy.go b/apis/api/v1alpha1/zz_generated.deepcopy.go deleted file mode 100644 index 055a634..0000000 --- a/apis/api/v1alpha1/zz_generated.deepcopy.go +++ /dev/null @@ -1,374 +0,0 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - -/* -Copyright 2022 Upbound Inc. -*/ - -// Code generated by controller-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - runtime "k8s.io/apimachinery/pkg/runtime" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EnvironmentObservation) DeepCopyInto(out *EnvironmentObservation) { - *out = *in - if in.ID != nil { - in, out := &in.ID, &out.ID - *out = new(string) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentObservation. -func (in *EnvironmentObservation) DeepCopy() *EnvironmentObservation { - if in == nil { - return nil - } - out := new(EnvironmentObservation) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EnvironmentParameters) DeepCopyInto(out *EnvironmentParameters) { - *out = *in - if in.ID != nil { - in, out := &in.ID, &out.ID - *out = new(string) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentParameters. -func (in *EnvironmentParameters) DeepCopy() *EnvironmentParameters { - if in == nil { - return nil - } - out := new(EnvironmentParameters) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Key) DeepCopyInto(out *Key) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Key. -func (in *Key) DeepCopy() *Key { - if in == nil { - return nil - } - out := new(Key) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Key) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *KeyList) DeepCopyInto(out *KeyList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]Key, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KeyList. -func (in *KeyList) DeepCopy() *KeyList { - if in == nil { - return nil - } - out := new(KeyList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *KeyList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *KeyObservation) DeepCopyInto(out *KeyObservation) { - *out = *in - if in.Description != nil { - in, out := &in.Description, &out.Description - *out = new(string) - **out = **in - } - if in.DisableWaitForReady != nil { - in, out := &in.DisableWaitForReady, &out.DisableWaitForReady - *out = new(bool) - **out = **in - } - if in.DisplayName != nil { - in, out := &in.DisplayName, &out.DisplayName - *out = new(string) - **out = **in - } - if in.ID != nil { - in, out := &in.ID, &out.ID - *out = new(string) - **out = **in - } - if in.ManagedResource != nil { - in, out := &in.ManagedResource, &out.ManagedResource - *out = make([]ManagedResourceObservation, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Owner != nil { - in, out := &in.Owner, &out.Owner - *out = make([]OwnerObservation, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KeyObservation. -func (in *KeyObservation) DeepCopy() *KeyObservation { - if in == nil { - return nil - } - out := new(KeyObservation) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *KeyParameters) DeepCopyInto(out *KeyParameters) { - *out = *in - if in.Description != nil { - in, out := &in.Description, &out.Description - *out = new(string) - **out = **in - } - if in.DisableWaitForReady != nil { - in, out := &in.DisableWaitForReady, &out.DisableWaitForReady - *out = new(bool) - **out = **in - } - if in.DisplayName != nil { - in, out := &in.DisplayName, &out.DisplayName - *out = new(string) - **out = **in - } - if in.ManagedResource != nil { - in, out := &in.ManagedResource, &out.ManagedResource - *out = make([]ManagedResourceParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Owner != nil { - in, out := &in.Owner, &out.Owner - *out = make([]OwnerParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KeyParameters. -func (in *KeyParameters) DeepCopy() *KeyParameters { - if in == nil { - return nil - } - out := new(KeyParameters) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *KeySpec) DeepCopyInto(out *KeySpec) { - *out = *in - in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) - in.ForProvider.DeepCopyInto(&out.ForProvider) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KeySpec. -func (in *KeySpec) DeepCopy() *KeySpec { - if in == nil { - return nil - } - out := new(KeySpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *KeyStatus) DeepCopyInto(out *KeyStatus) { - *out = *in - in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) - in.AtProvider.DeepCopyInto(&out.AtProvider) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KeyStatus. -func (in *KeyStatus) DeepCopy() *KeyStatus { - if in == nil { - return nil - } - out := new(KeyStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ManagedResourceObservation) DeepCopyInto(out *ManagedResourceObservation) { - *out = *in - if in.APIVersion != nil { - in, out := &in.APIVersion, &out.APIVersion - *out = new(string) - **out = **in - } - if in.Environment != nil { - in, out := &in.Environment, &out.Environment - *out = make([]EnvironmentObservation, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.ID != nil { - in, out := &in.ID, &out.ID - *out = new(string) - **out = **in - } - if in.Kind != nil { - in, out := &in.Kind, &out.Kind - *out = new(string) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagedResourceObservation. -func (in *ManagedResourceObservation) DeepCopy() *ManagedResourceObservation { - if in == nil { - return nil - } - out := new(ManagedResourceObservation) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ManagedResourceParameters) DeepCopyInto(out *ManagedResourceParameters) { - *out = *in - if in.APIVersion != nil { - in, out := &in.APIVersion, &out.APIVersion - *out = new(string) - **out = **in - } - if in.Environment != nil { - in, out := &in.Environment, &out.Environment - *out = make([]EnvironmentParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.ID != nil { - in, out := &in.ID, &out.ID - *out = new(string) - **out = **in - } - if in.Kind != nil { - in, out := &in.Kind, &out.Kind - *out = new(string) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagedResourceParameters. -func (in *ManagedResourceParameters) DeepCopy() *ManagedResourceParameters { - if in == nil { - return nil - } - out := new(ManagedResourceParameters) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *OwnerObservation) DeepCopyInto(out *OwnerObservation) { - *out = *in - if in.APIVersion != nil { - in, out := &in.APIVersion, &out.APIVersion - *out = new(string) - **out = **in - } - if in.ID != nil { - in, out := &in.ID, &out.ID - *out = new(string) - **out = **in - } - if in.Kind != nil { - in, out := &in.Kind, &out.Kind - *out = new(string) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OwnerObservation. -func (in *OwnerObservation) DeepCopy() *OwnerObservation { - if in == nil { - return nil - } - out := new(OwnerObservation) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *OwnerParameters) DeepCopyInto(out *OwnerParameters) { - *out = *in - if in.APIVersion != nil { - in, out := &in.APIVersion, &out.APIVersion - *out = new(string) - **out = **in - } - if in.ID != nil { - in, out := &in.ID, &out.ID - *out = new(string) - **out = **in - } - if in.Kind != nil { - in, out := &in.Kind, &out.Kind - *out = new(string) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OwnerParameters. -func (in *OwnerParameters) DeepCopy() *OwnerParameters { - if in == nil { - return nil - } - out := new(OwnerParameters) - in.DeepCopyInto(out) - return out -} diff --git a/apis/api/v1alpha1/zz_generated.managed.go b/apis/api/v1alpha1/zz_generated.managed.go deleted file mode 100644 index 04e4eeb..0000000 --- a/apis/api/v1alpha1/zz_generated.managed.go +++ /dev/null @@ -1,84 +0,0 @@ -/* -Copyright 2022 Upbound Inc. -*/ -// Code generated by angryjet. DO NOT EDIT. - -package v1alpha1 - -import xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1" - -// GetCondition of this Key. -func (mg *Key) GetCondition(ct xpv1.ConditionType) xpv1.Condition { - return mg.Status.GetCondition(ct) -} - -// GetDeletionPolicy of this Key. -func (mg *Key) GetDeletionPolicy() xpv1.DeletionPolicy { - return mg.Spec.DeletionPolicy -} - -// GetManagementPolicy of this Key. -func (mg *Key) GetManagementPolicy() xpv1.ManagementPolicy { - return mg.Spec.ManagementPolicy -} - -// GetProviderConfigReference of this Key. -func (mg *Key) GetProviderConfigReference() *xpv1.Reference { - return mg.Spec.ProviderConfigReference -} - -/* -GetProviderReference of this Key. -Deprecated: Use GetProviderConfigReference. -*/ -func (mg *Key) GetProviderReference() *xpv1.Reference { - return mg.Spec.ProviderReference -} - -// GetPublishConnectionDetailsTo of this Key. -func (mg *Key) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { - return mg.Spec.PublishConnectionDetailsTo -} - -// GetWriteConnectionSecretToReference of this Key. -func (mg *Key) GetWriteConnectionSecretToReference() *xpv1.SecretReference { - return mg.Spec.WriteConnectionSecretToReference -} - -// SetConditions of this Key. -func (mg *Key) SetConditions(c ...xpv1.Condition) { - mg.Status.SetConditions(c...) -} - -// SetDeletionPolicy of this Key. -func (mg *Key) SetDeletionPolicy(r xpv1.DeletionPolicy) { - mg.Spec.DeletionPolicy = r -} - -// SetManagementPolicy of this Key. -func (mg *Key) SetManagementPolicy(r xpv1.ManagementPolicy) { - mg.Spec.ManagementPolicy = r -} - -// SetProviderConfigReference of this Key. -func (mg *Key) SetProviderConfigReference(r *xpv1.Reference) { - mg.Spec.ProviderConfigReference = r -} - -/* -SetProviderReference of this Key. -Deprecated: Use SetProviderConfigReference. -*/ -func (mg *Key) SetProviderReference(r *xpv1.Reference) { - mg.Spec.ProviderReference = r -} - -// SetPublishConnectionDetailsTo of this Key. -func (mg *Key) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { - mg.Spec.PublishConnectionDetailsTo = r -} - -// SetWriteConnectionSecretToReference of this Key. -func (mg *Key) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { - mg.Spec.WriteConnectionSecretToReference = r -} diff --git a/apis/api/v1alpha1/zz_generated.managedlist.go b/apis/api/v1alpha1/zz_generated.managedlist.go deleted file mode 100644 index bdceecc..0000000 --- a/apis/api/v1alpha1/zz_generated.managedlist.go +++ /dev/null @@ -1,17 +0,0 @@ -/* -Copyright 2022 Upbound Inc. -*/ -// Code generated by angryjet. DO NOT EDIT. - -package v1alpha1 - -import resource "github.com/crossplane/crossplane-runtime/pkg/resource" - -// GetItems of this KeyList. -func (l *KeyList) GetItems() []resource.Managed { - items := make([]resource.Managed, len(l.Items)) - for i := range l.Items { - items[i] = &l.Items[i] - } - return items -} diff --git a/apis/api/v1alpha1/zz_generated_terraformed.go b/apis/api/v1alpha1/zz_generated_terraformed.go deleted file mode 100755 index b2ea713..0000000 --- a/apis/api/v1alpha1/zz_generated_terraformed.go +++ /dev/null @@ -1,88 +0,0 @@ -/* -Copyright 2022 Upbound Inc. -*/ - -// Code generated by upjet. DO NOT EDIT. - -package v1alpha1 - -import ( - "github.com/pkg/errors" - - "github.com/upbound/upjet/pkg/resource" - "github.com/upbound/upjet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this Key -func (mg *Key) GetTerraformResourceType() string { - return "confluent_api_key" -} - -// GetConnectionDetailsMapping for this Key -func (tr *Key) GetConnectionDetailsMapping() map[string]string { - return map[string]string{"secret": "status.atProvider.secret"} -} - -// GetObservation of this Key -func (tr *Key) GetObservation() (map[string]any, error) { - o, err := json.TFParser.Marshal(tr.Status.AtProvider) - if err != nil { - return nil, err - } - base := map[string]any{} - return base, json.TFParser.Unmarshal(o, &base) -} - -// SetObservation for this Key -func (tr *Key) SetObservation(obs map[string]any) error { - p, err := json.TFParser.Marshal(obs) - if err != nil { - return err - } - return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) -} - -// GetID returns ID of underlying Terraform resource of this Key -func (tr *Key) GetID() string { - if tr.Status.AtProvider.ID == nil { - return "" - } - return *tr.Status.AtProvider.ID -} - -// GetParameters of this Key -func (tr *Key) GetParameters() (map[string]any, error) { - p, err := json.TFParser.Marshal(tr.Spec.ForProvider) - if err != nil { - return nil, err - } - base := map[string]any{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this Key -func (tr *Key) SetParameters(params map[string]any) error { - p, err := json.TFParser.Marshal(params) - if err != nil { - return err - } - return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) -} - -// LateInitialize this Key using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *Key) LateInitialize(attrs []byte) (bool, error) { - params := &KeyParameters{} - if err := json.TFParser.Unmarshal(attrs, params); err != nil { - return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") - } - opts := []resource.GenericLateInitializerOption{resource.WithZeroValueJSONOmitEmptyFilter(resource.CNameWildcard)} - - li := resource.NewGenericLateInitializer(opts...) - return li.LateInitialize(&tr.Spec.ForProvider, params) -} - -// GetTerraformSchemaVersion returns the associated Terraform schema version -func (tr *Key) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/api/v1alpha1/zz_groupversion_info.go b/apis/api/v1alpha1/zz_groupversion_info.go deleted file mode 100755 index 9ba1f43..0000000 --- a/apis/api/v1alpha1/zz_groupversion_info.go +++ /dev/null @@ -1,32 +0,0 @@ -/* -Copyright 2022 Upbound Inc. -*/ - -// Code generated by upjet. DO NOT EDIT. - -// +kubebuilder:object:generate=true -// +groupName=api.crossplane.io -// +versionName=v1alpha1 -package v1alpha1 - -import ( - "k8s.io/apimachinery/pkg/runtime/schema" - "sigs.k8s.io/controller-runtime/pkg/scheme" -) - -// Package type metadata. -const ( - CRDGroup = "api.crossplane.io" - CRDVersion = "v1alpha1" -) - -var ( - // CRDGroupVersion is the API Group Version used to register the objects - CRDGroupVersion = schema.GroupVersion{Group: CRDGroup, Version: CRDVersion} - - // SchemeBuilder is used to add go types to the GroupVersionKind scheme - SchemeBuilder = &scheme.Builder{GroupVersion: CRDGroupVersion} - - // AddToScheme adds the types in this group-version to the given scheme. - AddToScheme = SchemeBuilder.AddToScheme -) diff --git a/apis/api/v1alpha1/zz_key_types.go b/apis/confluent/v1alpha1/zz_apikey_types.go similarity index 70% rename from apis/api/v1alpha1/zz_key_types.go rename to apis/confluent/v1alpha1/zz_apikey_types.go index 0b69461..a4c12ae 100755 --- a/apis/api/v1alpha1/zz_key_types.go +++ b/apis/confluent/v1alpha1/zz_apikey_types.go @@ -13,20 +13,7 @@ import ( v1 "github.com/crossplane/crossplane-runtime/apis/common/v1" ) -type EnvironmentObservation struct { - - // The unique identifier for the environment. - ID *string `json:"id,omitempty" tf:"id,omitempty"` -} - -type EnvironmentParameters struct { - - // The unique identifier for the environment. - // +kubebuilder:validation:Required - ID *string `json:"id" tf:"id,omitempty"` -} - -type KeyObservation struct { +type APIKeyObservation struct { // A free-form description of the API key. Description *string `json:"description,omitempty" tf:"description,omitempty"` @@ -46,7 +33,7 @@ type KeyObservation struct { Owner []OwnerObservation `json:"owner,omitempty" tf:"owner,omitempty"` } -type KeyParameters struct { +type APIKeyParameters struct { // A free-form description of the API key. // +kubebuilder:validation:Optional @@ -69,6 +56,28 @@ type KeyParameters struct { Owner []OwnerParameters `json:"owner,omitempty" tf:"owner,omitempty"` } +type EnvironmentObservation struct { + + // The unique identifier for the environment. + ID *string `json:"id,omitempty" tf:"id,omitempty"` +} + +type EnvironmentParameters struct { + + // The unique identifier for the environment. + // +crossplane:generate:reference:type=Environment + // +kubebuilder:validation:Optional + ID *string `json:"id,omitempty" tf:"id,omitempty"` + + // Reference to a Environment to populate id. + // +kubebuilder:validation:Optional + IDRef *v1.Reference `json:"idRef,omitempty" tf:"-"` + + // Selector for a Environment to populate id. + // +kubebuilder:validation:Optional + IDSelector *v1.Selector `json:"idSelector,omitempty" tf:"-"` +} + type ManagedResourceObservation struct { // The API version of the referred owner. @@ -95,8 +104,17 @@ type ManagedResourceParameters struct { Environment []EnvironmentParameters `json:"environment" tf:"environment,omitempty"` // The unique identifier for the referred resource. - // +kubebuilder:validation:Required - ID *string `json:"id" tf:"id,omitempty"` + // +crossplane:generate:reference:type=Cluster + // +kubebuilder:validation:Optional + ID *string `json:"id,omitempty" tf:"id,omitempty"` + + // Reference to a Cluster to populate id. + // +kubebuilder:validation:Optional + IDRef *v1.Reference `json:"idRef,omitempty" tf:"-"` + + // Selector for a Cluster to populate id. + // +kubebuilder:validation:Optional + IDSelector *v1.Selector `json:"idSelector,omitempty" tf:"-"` // The kind of the referred resource. // +kubebuilder:validation:Required @@ -122,60 +140,69 @@ type OwnerParameters struct { APIVersion *string `json:"apiVersion" tf:"api_version,omitempty"` // The unique identifier for the referred owner. - // +kubebuilder:validation:Required - ID *string `json:"id" tf:"id,omitempty"` + // +crossplane:generate:reference:type=ServiceAccount + // +kubebuilder:validation:Optional + ID *string `json:"id,omitempty" tf:"id,omitempty"` + + // Reference to a ServiceAccount to populate id. + // +kubebuilder:validation:Optional + IDRef *v1.Reference `json:"idRef,omitempty" tf:"-"` + + // Selector for a ServiceAccount to populate id. + // +kubebuilder:validation:Optional + IDSelector *v1.Selector `json:"idSelector,omitempty" tf:"-"` // The kind of the referred owner. // +kubebuilder:validation:Required Kind *string `json:"kind" tf:"kind,omitempty"` } -// KeySpec defines the desired state of Key -type KeySpec struct { +// APIKeySpec defines the desired state of APIKey +type APIKeySpec struct { v1.ResourceSpec `json:",inline"` - ForProvider KeyParameters `json:"forProvider"` + ForProvider APIKeyParameters `json:"forProvider"` } -// KeyStatus defines the observed state of Key. -type KeyStatus struct { +// APIKeyStatus defines the observed state of APIKey. +type APIKeyStatus struct { v1.ResourceStatus `json:",inline"` - AtProvider KeyObservation `json:"atProvider,omitempty"` + AtProvider APIKeyObservation `json:"atProvider,omitempty"` } // +kubebuilder:object:root=true -// Key is the Schema for the Keys API. +// APIKey is the Schema for the APIKeys API. // +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" // +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" // +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" // +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" // +kubebuilder:subresource:status // +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,confluent} -type Key struct { +type APIKey struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.owner)",message="owner is a required parameter" - Spec KeySpec `json:"spec"` - Status KeyStatus `json:"status,omitempty"` + Spec APIKeySpec `json:"spec"` + Status APIKeyStatus `json:"status,omitempty"` } // +kubebuilder:object:root=true -// KeyList contains a list of Keys -type KeyList struct { +// APIKeyList contains a list of APIKeys +type APIKeyList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []Key `json:"items"` + Items []APIKey `json:"items"` } // Repository type metadata. var ( - Key_Kind = "Key" - Key_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Key_Kind}.String() - Key_KindAPIVersion = Key_Kind + "." + CRDGroupVersion.String() - Key_GroupVersionKind = CRDGroupVersion.WithKind(Key_Kind) + APIKey_Kind = "APIKey" + APIKey_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: APIKey_Kind}.String() + APIKey_KindAPIVersion = APIKey_Kind + "." + CRDGroupVersion.String() + APIKey_GroupVersionKind = CRDGroupVersion.WithKind(APIKey_Kind) ) func init() { - SchemeBuilder.Register(&Key{}, &KeyList{}) + SchemeBuilder.Register(&APIKey{}, &APIKeyList{}) } diff --git a/apis/kafka/v1alpha1/zz_cluster_types.go b/apis/confluent/v1alpha1/zz_cluster_types.go similarity index 90% rename from apis/kafka/v1alpha1/zz_cluster_types.go rename to apis/confluent/v1alpha1/zz_cluster_types.go index f0e3ea0..7a7b057 100755 --- a/apis/kafka/v1alpha1/zz_cluster_types.go +++ b/apis/confluent/v1alpha1/zz_cluster_types.go @@ -19,6 +19,28 @@ type BasicObservation struct { type BasicParameters struct { } +type ClusterEnvironmentObservation struct { + + // The unique identifier for the environment. + ID *string `json:"id,omitempty" tf:"id,omitempty"` +} + +type ClusterEnvironmentParameters struct { + + // The unique identifier for the environment. + // +crossplane:generate:reference:type=github.com/crossplane-contrib/provider-confluent/apis/confluent/v1alpha1.Environment + // +kubebuilder:validation:Optional + ID *string `json:"id,omitempty" tf:"id,omitempty"` + + // Reference to a Environment in confluent to populate id. + // +kubebuilder:validation:Optional + IDRef *v1.Reference `json:"idRef,omitempty" tf:"-"` + + // Selector for a Environment in confluent to populate id. + // +kubebuilder:validation:Optional + IDSelector *v1.Selector `json:"idSelector,omitempty" tf:"-"` +} + type ClusterObservation struct { // API Version defines the schema version of this representation of a Kafka cluster. @@ -41,7 +63,7 @@ type ClusterObservation struct { DisplayName *string `json:"displayName,omitempty" tf:"display_name,omitempty"` // Environment objects represent an isolated namespace for your Confluent resources for organizational purposes. - Environment []EnvironmentObservation `json:"environment,omitempty" tf:"environment,omitempty"` + Environment []ClusterEnvironmentObservation `json:"environment,omitempty" tf:"environment,omitempty"` ID *string `json:"id,omitempty" tf:"id,omitempty"` @@ -85,7 +107,7 @@ type ClusterParameters struct { // Environment objects represent an isolated namespace for your Confluent resources for organizational purposes. // +kubebuilder:validation:Optional - Environment []EnvironmentParameters `json:"environment,omitempty" tf:"environment,omitempty"` + Environment []ClusterEnvironmentParameters `json:"environment,omitempty" tf:"environment,omitempty"` // Network represents a network (VPC) in Confluent Cloud. All Networks exist within Confluent-managed cloud provider accounts. // +kubebuilder:validation:Optional @@ -119,19 +141,6 @@ type DedicatedParameters struct { EncryptionKey *string `json:"encryptionKey,omitempty" tf:"encryption_key,omitempty"` } -type EnvironmentObservation struct { - - // The unique identifier for the environment. - ID *string `json:"id,omitempty" tf:"id,omitempty"` -} - -type EnvironmentParameters struct { - - // The unique identifier for the environment. - // +kubebuilder:validation:Required - ID *string `json:"id" tf:"id,omitempty"` -} - type NetworkObservation struct { // The unique identifier for the network. diff --git a/apis/kafka/v1alpha1/zz_clusterconfig_types.go b/apis/confluent/v1alpha1/zz_clusterconfig_types.go similarity index 100% rename from apis/kafka/v1alpha1/zz_clusterconfig_types.go rename to apis/confluent/v1alpha1/zz_clusterconfig_types.go diff --git a/apis/confluent/v1alpha1/zz_environment_types.go b/apis/confluent/v1alpha1/zz_environment_types.go index d0c4133..be8a10f 100755 --- a/apis/confluent/v1alpha1/zz_environment_types.go +++ b/apis/confluent/v1alpha1/zz_environment_types.go @@ -13,7 +13,7 @@ import ( v1 "github.com/crossplane/crossplane-runtime/apis/common/v1" ) -type EnvironmentObservation struct { +type EnvironmentObservation_2 struct { // A human-readable name for the Environment. DisplayName *string `json:"displayName,omitempty" tf:"display_name,omitempty"` @@ -24,7 +24,7 @@ type EnvironmentObservation struct { ResourceName *string `json:"resourceName,omitempty" tf:"resource_name,omitempty"` } -type EnvironmentParameters struct { +type EnvironmentParameters_2 struct { // A human-readable name for the Environment. // +kubebuilder:validation:Optional @@ -34,13 +34,13 @@ type EnvironmentParameters struct { // EnvironmentSpec defines the desired state of Environment type EnvironmentSpec struct { v1.ResourceSpec `json:",inline"` - ForProvider EnvironmentParameters `json:"forProvider"` + ForProvider EnvironmentParameters_2 `json:"forProvider"` } // EnvironmentStatus defines the observed state of Environment. type EnvironmentStatus struct { v1.ResourceStatus `json:",inline"` - AtProvider EnvironmentObservation `json:"atProvider,omitempty"` + AtProvider EnvironmentObservation_2 `json:"atProvider,omitempty"` } // +kubebuilder:object:root=true diff --git a/apis/confluent/v1alpha1/zz_generated.deepcopy.go b/apis/confluent/v1alpha1/zz_generated.deepcopy.go index 04c9339..1d9cee9 100644 --- a/apis/confluent/v1alpha1/zz_generated.deepcopy.go +++ b/apis/confluent/v1alpha1/zz_generated.deepcopy.go @@ -10,9 +10,877 @@ Copyright 2022 Upbound Inc. package v1alpha1 import ( + "github.com/crossplane/crossplane-runtime/apis/common/v1" runtime "k8s.io/apimachinery/pkg/runtime" ) +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *APIKey) DeepCopyInto(out *APIKey) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIKey. +func (in *APIKey) DeepCopy() *APIKey { + if in == nil { + return nil + } + out := new(APIKey) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *APIKey) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *APIKeyList) DeepCopyInto(out *APIKeyList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]APIKey, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIKeyList. +func (in *APIKeyList) DeepCopy() *APIKeyList { + if in == nil { + return nil + } + out := new(APIKeyList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *APIKeyList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *APIKeyObservation) DeepCopyInto(out *APIKeyObservation) { + *out = *in + if in.Description != nil { + in, out := &in.Description, &out.Description + *out = new(string) + **out = **in + } + if in.DisableWaitForReady != nil { + in, out := &in.DisableWaitForReady, &out.DisableWaitForReady + *out = new(bool) + **out = **in + } + if in.DisplayName != nil { + in, out := &in.DisplayName, &out.DisplayName + *out = new(string) + **out = **in + } + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } + if in.ManagedResource != nil { + in, out := &in.ManagedResource, &out.ManagedResource + *out = make([]ManagedResourceObservation, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Owner != nil { + in, out := &in.Owner, &out.Owner + *out = make([]OwnerObservation, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIKeyObservation. +func (in *APIKeyObservation) DeepCopy() *APIKeyObservation { + if in == nil { + return nil + } + out := new(APIKeyObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *APIKeyParameters) DeepCopyInto(out *APIKeyParameters) { + *out = *in + if in.Description != nil { + in, out := &in.Description, &out.Description + *out = new(string) + **out = **in + } + if in.DisableWaitForReady != nil { + in, out := &in.DisableWaitForReady, &out.DisableWaitForReady + *out = new(bool) + **out = **in + } + if in.DisplayName != nil { + in, out := &in.DisplayName, &out.DisplayName + *out = new(string) + **out = **in + } + if in.ManagedResource != nil { + in, out := &in.ManagedResource, &out.ManagedResource + *out = make([]ManagedResourceParameters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Owner != nil { + in, out := &in.Owner, &out.Owner + *out = make([]OwnerParameters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIKeyParameters. +func (in *APIKeyParameters) DeepCopy() *APIKeyParameters { + if in == nil { + return nil + } + out := new(APIKeyParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *APIKeySpec) DeepCopyInto(out *APIKeySpec) { + *out = *in + in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) + in.ForProvider.DeepCopyInto(&out.ForProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIKeySpec. +func (in *APIKeySpec) DeepCopy() *APIKeySpec { + if in == nil { + return nil + } + out := new(APIKeySpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *APIKeyStatus) DeepCopyInto(out *APIKeyStatus) { + *out = *in + in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) + in.AtProvider.DeepCopyInto(&out.AtProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIKeyStatus. +func (in *APIKeyStatus) DeepCopy() *APIKeyStatus { + if in == nil { + return nil + } + out := new(APIKeyStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *BasicObservation) DeepCopyInto(out *BasicObservation) { + *out = *in +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BasicObservation. +func (in *BasicObservation) DeepCopy() *BasicObservation { + if in == nil { + return nil + } + out := new(BasicObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *BasicParameters) DeepCopyInto(out *BasicParameters) { + *out = *in +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BasicParameters. +func (in *BasicParameters) DeepCopy() *BasicParameters { + if in == nil { + return nil + } + out := new(BasicParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Cluster) DeepCopyInto(out *Cluster) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Cluster. +func (in *Cluster) DeepCopy() *Cluster { + if in == nil { + return nil + } + out := new(Cluster) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *Cluster) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ClusterConfig) DeepCopyInto(out *ClusterConfig) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterConfig. +func (in *ClusterConfig) DeepCopy() *ClusterConfig { + if in == nil { + return nil + } + out := new(ClusterConfig) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *ClusterConfig) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ClusterConfigCredentialsObservation) DeepCopyInto(out *ClusterConfigCredentialsObservation) { + *out = *in +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterConfigCredentialsObservation. +func (in *ClusterConfigCredentialsObservation) DeepCopy() *ClusterConfigCredentialsObservation { + if in == nil { + return nil + } + out := new(ClusterConfigCredentialsObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ClusterConfigCredentialsParameters) DeepCopyInto(out *ClusterConfigCredentialsParameters) { + *out = *in + out.KeySecretRef = in.KeySecretRef + out.SecretSecretRef = in.SecretSecretRef +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterConfigCredentialsParameters. +func (in *ClusterConfigCredentialsParameters) DeepCopy() *ClusterConfigCredentialsParameters { + if in == nil { + return nil + } + out := new(ClusterConfigCredentialsParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ClusterConfigKafkaClusterObservation) DeepCopyInto(out *ClusterConfigKafkaClusterObservation) { + *out = *in + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterConfigKafkaClusterObservation. +func (in *ClusterConfigKafkaClusterObservation) DeepCopy() *ClusterConfigKafkaClusterObservation { + if in == nil { + return nil + } + out := new(ClusterConfigKafkaClusterObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ClusterConfigKafkaClusterParameters) DeepCopyInto(out *ClusterConfigKafkaClusterParameters) { + *out = *in + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterConfigKafkaClusterParameters. +func (in *ClusterConfigKafkaClusterParameters) DeepCopy() *ClusterConfigKafkaClusterParameters { + if in == nil { + return nil + } + out := new(ClusterConfigKafkaClusterParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ClusterConfigList) DeepCopyInto(out *ClusterConfigList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ClusterConfig, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterConfigList. +func (in *ClusterConfigList) DeepCopy() *ClusterConfigList { + if in == nil { + return nil + } + out := new(ClusterConfigList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *ClusterConfigList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ClusterConfigObservation) DeepCopyInto(out *ClusterConfigObservation) { + *out = *in + if in.Config != nil { + in, out := &in.Config, &out.Config + *out = make(map[string]*string, len(*in)) + for key, val := range *in { + var outVal *string + if val == nil { + (*out)[key] = nil + } else { + in, out := &val, &outVal + *out = new(string) + **out = **in + } + (*out)[key] = outVal + } + } + if in.Credentials != nil { + in, out := &in.Credentials, &out.Credentials + *out = make([]ClusterConfigCredentialsParameters, len(*in)) + copy(*out, *in) + } + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } + if in.KafkaCluster != nil { + in, out := &in.KafkaCluster, &out.KafkaCluster + *out = make([]ClusterConfigKafkaClusterObservation, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.RestEndpoint != nil { + in, out := &in.RestEndpoint, &out.RestEndpoint + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterConfigObservation. +func (in *ClusterConfigObservation) DeepCopy() *ClusterConfigObservation { + if in == nil { + return nil + } + out := new(ClusterConfigObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ClusterConfigParameters) DeepCopyInto(out *ClusterConfigParameters) { + *out = *in + if in.Config != nil { + in, out := &in.Config, &out.Config + *out = make(map[string]*string, len(*in)) + for key, val := range *in { + var outVal *string + if val == nil { + (*out)[key] = nil + } else { + in, out := &val, &outVal + *out = new(string) + **out = **in + } + (*out)[key] = outVal + } + } + if in.Credentials != nil { + in, out := &in.Credentials, &out.Credentials + *out = make([]ClusterConfigCredentialsParameters, len(*in)) + copy(*out, *in) + } + if in.KafkaCluster != nil { + in, out := &in.KafkaCluster, &out.KafkaCluster + *out = make([]ClusterConfigKafkaClusterParameters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.RestEndpoint != nil { + in, out := &in.RestEndpoint, &out.RestEndpoint + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterConfigParameters. +func (in *ClusterConfigParameters) DeepCopy() *ClusterConfigParameters { + if in == nil { + return nil + } + out := new(ClusterConfigParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ClusterConfigSpec) DeepCopyInto(out *ClusterConfigSpec) { + *out = *in + in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) + in.ForProvider.DeepCopyInto(&out.ForProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterConfigSpec. +func (in *ClusterConfigSpec) DeepCopy() *ClusterConfigSpec { + if in == nil { + return nil + } + out := new(ClusterConfigSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ClusterConfigStatus) DeepCopyInto(out *ClusterConfigStatus) { + *out = *in + in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) + in.AtProvider.DeepCopyInto(&out.AtProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterConfigStatus. +func (in *ClusterConfigStatus) DeepCopy() *ClusterConfigStatus { + if in == nil { + return nil + } + out := new(ClusterConfigStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ClusterEnvironmentObservation) DeepCopyInto(out *ClusterEnvironmentObservation) { + *out = *in + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterEnvironmentObservation. +func (in *ClusterEnvironmentObservation) DeepCopy() *ClusterEnvironmentObservation { + if in == nil { + return nil + } + out := new(ClusterEnvironmentObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ClusterEnvironmentParameters) DeepCopyInto(out *ClusterEnvironmentParameters) { + *out = *in + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } + if in.IDRef != nil { + in, out := &in.IDRef, &out.IDRef + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) + } + if in.IDSelector != nil { + in, out := &in.IDSelector, &out.IDSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterEnvironmentParameters. +func (in *ClusterEnvironmentParameters) DeepCopy() *ClusterEnvironmentParameters { + if in == nil { + return nil + } + out := new(ClusterEnvironmentParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ClusterList) DeepCopyInto(out *ClusterList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Cluster, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterList. +func (in *ClusterList) DeepCopy() *ClusterList { + if in == nil { + return nil + } + out := new(ClusterList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *ClusterList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ClusterObservation) DeepCopyInto(out *ClusterObservation) { + *out = *in + if in.APIVersion != nil { + in, out := &in.APIVersion, &out.APIVersion + *out = new(string) + **out = **in + } + if in.Availability != nil { + in, out := &in.Availability, &out.Availability + *out = new(string) + **out = **in + } + if in.Basic != nil { + in, out := &in.Basic, &out.Basic + *out = make([]BasicParameters, len(*in)) + copy(*out, *in) + } + if in.BootstrapEndpoint != nil { + in, out := &in.BootstrapEndpoint, &out.BootstrapEndpoint + *out = new(string) + **out = **in + } + if in.Cloud != nil { + in, out := &in.Cloud, &out.Cloud + *out = new(string) + **out = **in + } + if in.Dedicated != nil { + in, out := &in.Dedicated, &out.Dedicated + *out = make([]DedicatedObservation, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.DisplayName != nil { + in, out := &in.DisplayName, &out.DisplayName + *out = new(string) + **out = **in + } + if in.Environment != nil { + in, out := &in.Environment, &out.Environment + *out = make([]ClusterEnvironmentObservation, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } + if in.Kind != nil { + in, out := &in.Kind, &out.Kind + *out = new(string) + **out = **in + } + if in.Network != nil { + in, out := &in.Network, &out.Network + *out = make([]NetworkObservation, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.RbacCrn != nil { + in, out := &in.RbacCrn, &out.RbacCrn + *out = new(string) + **out = **in + } + if in.Region != nil { + in, out := &in.Region, &out.Region + *out = new(string) + **out = **in + } + if in.RestEndpoint != nil { + in, out := &in.RestEndpoint, &out.RestEndpoint + *out = new(string) + **out = **in + } + if in.Standard != nil { + in, out := &in.Standard, &out.Standard + *out = make([]StandardParameters, len(*in)) + copy(*out, *in) + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterObservation. +func (in *ClusterObservation) DeepCopy() *ClusterObservation { + if in == nil { + return nil + } + out := new(ClusterObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ClusterParameters) DeepCopyInto(out *ClusterParameters) { + *out = *in + if in.Availability != nil { + in, out := &in.Availability, &out.Availability + *out = new(string) + **out = **in + } + if in.Basic != nil { + in, out := &in.Basic, &out.Basic + *out = make([]BasicParameters, len(*in)) + copy(*out, *in) + } + if in.Cloud != nil { + in, out := &in.Cloud, &out.Cloud + *out = new(string) + **out = **in + } + if in.Dedicated != nil { + in, out := &in.Dedicated, &out.Dedicated + *out = make([]DedicatedParameters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.DisplayName != nil { + in, out := &in.DisplayName, &out.DisplayName + *out = new(string) + **out = **in + } + if in.Environment != nil { + in, out := &in.Environment, &out.Environment + *out = make([]ClusterEnvironmentParameters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Network != nil { + in, out := &in.Network, &out.Network + *out = make([]NetworkParameters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Region != nil { + in, out := &in.Region, &out.Region + *out = new(string) + **out = **in + } + if in.Standard != nil { + in, out := &in.Standard, &out.Standard + *out = make([]StandardParameters, len(*in)) + copy(*out, *in) + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterParameters. +func (in *ClusterParameters) DeepCopy() *ClusterParameters { + if in == nil { + return nil + } + out := new(ClusterParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ClusterSpec) DeepCopyInto(out *ClusterSpec) { + *out = *in + in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) + in.ForProvider.DeepCopyInto(&out.ForProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterSpec. +func (in *ClusterSpec) DeepCopy() *ClusterSpec { + if in == nil { + return nil + } + out := new(ClusterSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ClusterStatus) DeepCopyInto(out *ClusterStatus) { + *out = *in + in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) + in.AtProvider.DeepCopyInto(&out.AtProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterStatus. +func (in *ClusterStatus) DeepCopy() *ClusterStatus { + if in == nil { + return nil + } + out := new(ClusterStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *CredentialsObservation) DeepCopyInto(out *CredentialsObservation) { + *out = *in +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CredentialsObservation. +func (in *CredentialsObservation) DeepCopy() *CredentialsObservation { + if in == nil { + return nil + } + out := new(CredentialsObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *CredentialsParameters) DeepCopyInto(out *CredentialsParameters) { + *out = *in + out.KeySecretRef = in.KeySecretRef + out.SecretSecretRef = in.SecretSecretRef +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CredentialsParameters. +func (in *CredentialsParameters) DeepCopy() *CredentialsParameters { + if in == nil { + return nil + } + out := new(CredentialsParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DedicatedObservation) DeepCopyInto(out *DedicatedObservation) { + *out = *in + if in.Cku != nil { + in, out := &in.Cku, &out.Cku + *out = new(float64) + **out = **in + } + if in.EncryptionKey != nil { + in, out := &in.EncryptionKey, &out.EncryptionKey + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DedicatedObservation. +func (in *DedicatedObservation) DeepCopy() *DedicatedObservation { + if in == nil { + return nil + } + out := new(DedicatedObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DedicatedParameters) DeepCopyInto(out *DedicatedParameters) { + *out = *in + if in.Cku != nil { + in, out := &in.Cku, &out.Cku + *out = new(float64) + **out = **in + } + if in.EncryptionKey != nil { + in, out := &in.EncryptionKey, &out.EncryptionKey + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DedicatedParameters. +func (in *DedicatedParameters) DeepCopy() *DedicatedParameters { + if in == nil { + return nil + } + out := new(DedicatedParameters) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Environment) DeepCopyInto(out *Environment) { *out = *in @@ -22,18 +890,697 @@ func (in *Environment) DeepCopyInto(out *Environment) { in.Status.DeepCopyInto(&out.Status) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Environment. -func (in *Environment) DeepCopy() *Environment { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Environment. +func (in *Environment) DeepCopy() *Environment { + if in == nil { + return nil + } + out := new(Environment) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *Environment) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *EnvironmentList) DeepCopyInto(out *EnvironmentList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Environment, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentList. +func (in *EnvironmentList) DeepCopy() *EnvironmentList { + if in == nil { + return nil + } + out := new(EnvironmentList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *EnvironmentList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *EnvironmentObservation) DeepCopyInto(out *EnvironmentObservation) { + *out = *in + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentObservation. +func (in *EnvironmentObservation) DeepCopy() *EnvironmentObservation { + if in == nil { + return nil + } + out := new(EnvironmentObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *EnvironmentObservation_2) DeepCopyInto(out *EnvironmentObservation_2) { + *out = *in + if in.DisplayName != nil { + in, out := &in.DisplayName, &out.DisplayName + *out = new(string) + **out = **in + } + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } + if in.ResourceName != nil { + in, out := &in.ResourceName, &out.ResourceName + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentObservation_2. +func (in *EnvironmentObservation_2) DeepCopy() *EnvironmentObservation_2 { + if in == nil { + return nil + } + out := new(EnvironmentObservation_2) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *EnvironmentParameters) DeepCopyInto(out *EnvironmentParameters) { + *out = *in + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } + if in.IDRef != nil { + in, out := &in.IDRef, &out.IDRef + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) + } + if in.IDSelector != nil { + in, out := &in.IDSelector, &out.IDSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentParameters. +func (in *EnvironmentParameters) DeepCopy() *EnvironmentParameters { + if in == nil { + return nil + } + out := new(EnvironmentParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *EnvironmentParameters_2) DeepCopyInto(out *EnvironmentParameters_2) { + *out = *in + if in.DisplayName != nil { + in, out := &in.DisplayName, &out.DisplayName + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentParameters_2. +func (in *EnvironmentParameters_2) DeepCopy() *EnvironmentParameters_2 { + if in == nil { + return nil + } + out := new(EnvironmentParameters_2) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *EnvironmentSpec) DeepCopyInto(out *EnvironmentSpec) { + *out = *in + in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) + in.ForProvider.DeepCopyInto(&out.ForProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentSpec. +func (in *EnvironmentSpec) DeepCopy() *EnvironmentSpec { + if in == nil { + return nil + } + out := new(EnvironmentSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *EnvironmentStatus) DeepCopyInto(out *EnvironmentStatus) { + *out = *in + in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) + in.AtProvider.DeepCopyInto(&out.AtProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentStatus. +func (in *EnvironmentStatus) DeepCopy() *EnvironmentStatus { + if in == nil { + return nil + } + out := new(EnvironmentStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *KafkaACL) DeepCopyInto(out *KafkaACL) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KafkaACL. +func (in *KafkaACL) DeepCopy() *KafkaACL { + if in == nil { + return nil + } + out := new(KafkaACL) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *KafkaACL) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *KafkaACLList) DeepCopyInto(out *KafkaACLList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]KafkaACL, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KafkaACLList. +func (in *KafkaACLList) DeepCopy() *KafkaACLList { + if in == nil { + return nil + } + out := new(KafkaACLList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *KafkaACLList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *KafkaACLObservation) DeepCopyInto(out *KafkaACLObservation) { + *out = *in + if in.Credentials != nil { + in, out := &in.Credentials, &out.Credentials + *out = make([]CredentialsParameters, len(*in)) + copy(*out, *in) + } + if in.Host != nil { + in, out := &in.Host, &out.Host + *out = new(string) + **out = **in + } + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } + if in.KafkaCluster != nil { + in, out := &in.KafkaCluster, &out.KafkaCluster + *out = make([]KafkaClusterObservation, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Operation != nil { + in, out := &in.Operation, &out.Operation + *out = new(string) + **out = **in + } + if in.PatternType != nil { + in, out := &in.PatternType, &out.PatternType + *out = new(string) + **out = **in + } + if in.Permission != nil { + in, out := &in.Permission, &out.Permission + *out = new(string) + **out = **in + } + if in.Principal != nil { + in, out := &in.Principal, &out.Principal + *out = new(string) + **out = **in + } + if in.ResourceName != nil { + in, out := &in.ResourceName, &out.ResourceName + *out = new(string) + **out = **in + } + if in.ResourceType != nil { + in, out := &in.ResourceType, &out.ResourceType + *out = new(string) + **out = **in + } + if in.RestEndpoint != nil { + in, out := &in.RestEndpoint, &out.RestEndpoint + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KafkaACLObservation. +func (in *KafkaACLObservation) DeepCopy() *KafkaACLObservation { + if in == nil { + return nil + } + out := new(KafkaACLObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *KafkaACLParameters) DeepCopyInto(out *KafkaACLParameters) { + *out = *in + if in.Credentials != nil { + in, out := &in.Credentials, &out.Credentials + *out = make([]CredentialsParameters, len(*in)) + copy(*out, *in) + } + if in.Host != nil { + in, out := &in.Host, &out.Host + *out = new(string) + **out = **in + } + if in.KafkaCluster != nil { + in, out := &in.KafkaCluster, &out.KafkaCluster + *out = make([]KafkaClusterParameters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Operation != nil { + in, out := &in.Operation, &out.Operation + *out = new(string) + **out = **in + } + if in.PatternType != nil { + in, out := &in.PatternType, &out.PatternType + *out = new(string) + **out = **in + } + if in.Permission != nil { + in, out := &in.Permission, &out.Permission + *out = new(string) + **out = **in + } + if in.Principal != nil { + in, out := &in.Principal, &out.Principal + *out = new(string) + **out = **in + } + if in.PrincipalRef != nil { + in, out := &in.PrincipalRef, &out.PrincipalRef + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) + } + if in.PrincipalSelector != nil { + in, out := &in.PrincipalSelector, &out.PrincipalSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } + if in.ResourceName != nil { + in, out := &in.ResourceName, &out.ResourceName + *out = new(string) + **out = **in + } + if in.ResourceType != nil { + in, out := &in.ResourceType, &out.ResourceType + *out = new(string) + **out = **in + } + if in.RestEndpoint != nil { + in, out := &in.RestEndpoint, &out.RestEndpoint + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KafkaACLParameters. +func (in *KafkaACLParameters) DeepCopy() *KafkaACLParameters { + if in == nil { + return nil + } + out := new(KafkaACLParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *KafkaACLSpec) DeepCopyInto(out *KafkaACLSpec) { + *out = *in + in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) + in.ForProvider.DeepCopyInto(&out.ForProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KafkaACLSpec. +func (in *KafkaACLSpec) DeepCopy() *KafkaACLSpec { + if in == nil { + return nil + } + out := new(KafkaACLSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *KafkaACLStatus) DeepCopyInto(out *KafkaACLStatus) { + *out = *in + in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) + in.AtProvider.DeepCopyInto(&out.AtProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KafkaACLStatus. +func (in *KafkaACLStatus) DeepCopy() *KafkaACLStatus { + if in == nil { + return nil + } + out := new(KafkaACLStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *KafkaClusterObservation) DeepCopyInto(out *KafkaClusterObservation) { + *out = *in + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KafkaClusterObservation. +func (in *KafkaClusterObservation) DeepCopy() *KafkaClusterObservation { + if in == nil { + return nil + } + out := new(KafkaClusterObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *KafkaClusterParameters) DeepCopyInto(out *KafkaClusterParameters) { + *out = *in + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } + if in.IDRef != nil { + in, out := &in.IDRef, &out.IDRef + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) + } + if in.IDSelector != nil { + in, out := &in.IDSelector, &out.IDSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KafkaClusterParameters. +func (in *KafkaClusterParameters) DeepCopy() *KafkaClusterParameters { + if in == nil { + return nil + } + out := new(KafkaClusterParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ManagedResourceObservation) DeepCopyInto(out *ManagedResourceObservation) { + *out = *in + if in.APIVersion != nil { + in, out := &in.APIVersion, &out.APIVersion + *out = new(string) + **out = **in + } + if in.Environment != nil { + in, out := &in.Environment, &out.Environment + *out = make([]EnvironmentObservation, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } + if in.Kind != nil { + in, out := &in.Kind, &out.Kind + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagedResourceObservation. +func (in *ManagedResourceObservation) DeepCopy() *ManagedResourceObservation { + if in == nil { + return nil + } + out := new(ManagedResourceObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ManagedResourceParameters) DeepCopyInto(out *ManagedResourceParameters) { + *out = *in + if in.APIVersion != nil { + in, out := &in.APIVersion, &out.APIVersion + *out = new(string) + **out = **in + } + if in.Environment != nil { + in, out := &in.Environment, &out.Environment + *out = make([]EnvironmentParameters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } + if in.IDRef != nil { + in, out := &in.IDRef, &out.IDRef + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) + } + if in.IDSelector != nil { + in, out := &in.IDSelector, &out.IDSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } + if in.Kind != nil { + in, out := &in.Kind, &out.Kind + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagedResourceParameters. +func (in *ManagedResourceParameters) DeepCopy() *ManagedResourceParameters { + if in == nil { + return nil + } + out := new(ManagedResourceParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *NetworkObservation) DeepCopyInto(out *NetworkObservation) { + *out = *in + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkObservation. +func (in *NetworkObservation) DeepCopy() *NetworkObservation { + if in == nil { + return nil + } + out := new(NetworkObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *NetworkParameters) DeepCopyInto(out *NetworkParameters) { + *out = *in + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkParameters. +func (in *NetworkParameters) DeepCopy() *NetworkParameters { + if in == nil { + return nil + } + out := new(NetworkParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *OwnerObservation) DeepCopyInto(out *OwnerObservation) { + *out = *in + if in.APIVersion != nil { + in, out := &in.APIVersion, &out.APIVersion + *out = new(string) + **out = **in + } + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } + if in.Kind != nil { + in, out := &in.Kind, &out.Kind + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OwnerObservation. +func (in *OwnerObservation) DeepCopy() *OwnerObservation { + if in == nil { + return nil + } + out := new(OwnerObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *OwnerParameters) DeepCopyInto(out *OwnerParameters) { + *out = *in + if in.APIVersion != nil { + in, out := &in.APIVersion, &out.APIVersion + *out = new(string) + **out = **in + } + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } + if in.IDRef != nil { + in, out := &in.IDRef, &out.IDRef + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) + } + if in.IDSelector != nil { + in, out := &in.IDSelector, &out.IDSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } + if in.Kind != nil { + in, out := &in.Kind, &out.Kind + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OwnerParameters. +func (in *OwnerParameters) DeepCopy() *OwnerParameters { + if in == nil { + return nil + } + out := new(OwnerParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RoleBinding) DeepCopyInto(out *RoleBinding) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoleBinding. +func (in *RoleBinding) DeepCopy() *RoleBinding { if in == nil { return nil } - out := new(Environment) + out := new(RoleBinding) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Environment) DeepCopyObject() runtime.Object { +func (in *RoleBinding) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -41,31 +1588,31 @@ func (in *Environment) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EnvironmentList) DeepCopyInto(out *EnvironmentList) { +func (in *RoleBindingList) DeepCopyInto(out *RoleBindingList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]Environment, len(*in)) + *out = make([]RoleBinding, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentList. -func (in *EnvironmentList) DeepCopy() *EnvironmentList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoleBindingList. +func (in *RoleBindingList) DeepCopy() *RoleBindingList { if in == nil { return nil } - out := new(EnvironmentList) + out := new(RoleBindingList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *EnvironmentList) DeepCopyObject() runtime.Object { +func (in *RoleBindingList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -73,8 +1620,176 @@ func (in *EnvironmentList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EnvironmentObservation) DeepCopyInto(out *EnvironmentObservation) { +func (in *RoleBindingObservation) DeepCopyInto(out *RoleBindingObservation) { + *out = *in + if in.CrnPattern != nil { + in, out := &in.CrnPattern, &out.CrnPattern + *out = new(string) + **out = **in + } + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } + if in.Principal != nil { + in, out := &in.Principal, &out.Principal + *out = new(string) + **out = **in + } + if in.RoleName != nil { + in, out := &in.RoleName, &out.RoleName + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoleBindingObservation. +func (in *RoleBindingObservation) DeepCopy() *RoleBindingObservation { + if in == nil { + return nil + } + out := new(RoleBindingObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RoleBindingParameters) DeepCopyInto(out *RoleBindingParameters) { + *out = *in + if in.CrnPattern != nil { + in, out := &in.CrnPattern, &out.CrnPattern + *out = new(string) + **out = **in + } + if in.Principal != nil { + in, out := &in.Principal, &out.Principal + *out = new(string) + **out = **in + } + if in.RoleName != nil { + in, out := &in.RoleName, &out.RoleName + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoleBindingParameters. +func (in *RoleBindingParameters) DeepCopy() *RoleBindingParameters { + if in == nil { + return nil + } + out := new(RoleBindingParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RoleBindingSpec) DeepCopyInto(out *RoleBindingSpec) { + *out = *in + in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) + in.ForProvider.DeepCopyInto(&out.ForProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoleBindingSpec. +func (in *RoleBindingSpec) DeepCopy() *RoleBindingSpec { + if in == nil { + return nil + } + out := new(RoleBindingSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RoleBindingStatus) DeepCopyInto(out *RoleBindingStatus) { + *out = *in + in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) + in.AtProvider.DeepCopyInto(&out.AtProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoleBindingStatus. +func (in *RoleBindingStatus) DeepCopy() *RoleBindingStatus { + if in == nil { + return nil + } + out := new(RoleBindingStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ServiceAccount) DeepCopyInto(out *ServiceAccount) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceAccount. +func (in *ServiceAccount) DeepCopy() *ServiceAccount { + if in == nil { + return nil + } + out := new(ServiceAccount) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *ServiceAccount) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ServiceAccountList) DeepCopyInto(out *ServiceAccountList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ServiceAccount, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceAccountList. +func (in *ServiceAccountList) DeepCopy() *ServiceAccountList { + if in == nil { + return nil + } + out := new(ServiceAccountList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *ServiceAccountList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ServiceAccountObservation) DeepCopyInto(out *ServiceAccountObservation) { *out = *in + if in.APIVersion != nil { + in, out := &in.APIVersion, &out.APIVersion + *out = new(string) + **out = **in + } + if in.Description != nil { + in, out := &in.Description, &out.Description + *out = new(string) + **out = **in + } if in.DisplayName != nil { in, out := &in.DisplayName, &out.DisplayName *out = new(string) @@ -85,26 +1800,31 @@ func (in *EnvironmentObservation) DeepCopyInto(out *EnvironmentObservation) { *out = new(string) **out = **in } - if in.ResourceName != nil { - in, out := &in.ResourceName, &out.ResourceName + if in.Kind != nil { + in, out := &in.Kind, &out.Kind *out = new(string) **out = **in } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentObservation. -func (in *EnvironmentObservation) DeepCopy() *EnvironmentObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceAccountObservation. +func (in *ServiceAccountObservation) DeepCopy() *ServiceAccountObservation { if in == nil { return nil } - out := new(EnvironmentObservation) + out := new(ServiceAccountObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EnvironmentParameters) DeepCopyInto(out *EnvironmentParameters) { +func (in *ServiceAccountParameters) DeepCopyInto(out *ServiceAccountParameters) { *out = *in + if in.Description != nil { + in, out := &in.Description, &out.Description + *out = new(string) + **out = **in + } if in.DisplayName != nil { in, out := &in.DisplayName, &out.DisplayName *out = new(string) @@ -112,46 +1832,76 @@ func (in *EnvironmentParameters) DeepCopyInto(out *EnvironmentParameters) { } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentParameters. -func (in *EnvironmentParameters) DeepCopy() *EnvironmentParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceAccountParameters. +func (in *ServiceAccountParameters) DeepCopy() *ServiceAccountParameters { if in == nil { return nil } - out := new(EnvironmentParameters) + out := new(ServiceAccountParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EnvironmentSpec) DeepCopyInto(out *EnvironmentSpec) { +func (in *ServiceAccountSpec) DeepCopyInto(out *ServiceAccountSpec) { *out = *in in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) in.ForProvider.DeepCopyInto(&out.ForProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentSpec. -func (in *EnvironmentSpec) DeepCopy() *EnvironmentSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceAccountSpec. +func (in *ServiceAccountSpec) DeepCopy() *ServiceAccountSpec { if in == nil { return nil } - out := new(EnvironmentSpec) + out := new(ServiceAccountSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EnvironmentStatus) DeepCopyInto(out *EnvironmentStatus) { +func (in *ServiceAccountStatus) DeepCopyInto(out *ServiceAccountStatus) { *out = *in in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) in.AtProvider.DeepCopyInto(&out.AtProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentStatus. -func (in *EnvironmentStatus) DeepCopy() *EnvironmentStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceAccountStatus. +func (in *ServiceAccountStatus) DeepCopy() *ServiceAccountStatus { if in == nil { return nil } - out := new(EnvironmentStatus) + out := new(ServiceAccountStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *StandardObservation) DeepCopyInto(out *StandardObservation) { + *out = *in +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StandardObservation. +func (in *StandardObservation) DeepCopy() *StandardObservation { + if in == nil { + return nil + } + out := new(StandardObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *StandardParameters) DeepCopyInto(out *StandardParameters) { + *out = *in +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StandardParameters. +func (in *StandardParameters) DeepCopy() *StandardParameters { + if in == nil { + return nil + } + out := new(StandardParameters) in.DeepCopyInto(out) return out } diff --git a/apis/confluent/v1alpha1/zz_generated.managed.go b/apis/confluent/v1alpha1/zz_generated.managed.go index c78885e..66f17e7 100644 --- a/apis/confluent/v1alpha1/zz_generated.managed.go +++ b/apis/confluent/v1alpha1/zz_generated.managed.go @@ -7,6 +7,234 @@ package v1alpha1 import xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1" +// GetCondition of this APIKey. +func (mg *APIKey) GetCondition(ct xpv1.ConditionType) xpv1.Condition { + return mg.Status.GetCondition(ct) +} + +// GetDeletionPolicy of this APIKey. +func (mg *APIKey) GetDeletionPolicy() xpv1.DeletionPolicy { + return mg.Spec.DeletionPolicy +} + +// GetManagementPolicy of this APIKey. +func (mg *APIKey) GetManagementPolicy() xpv1.ManagementPolicy { + return mg.Spec.ManagementPolicy +} + +// GetProviderConfigReference of this APIKey. +func (mg *APIKey) GetProviderConfigReference() *xpv1.Reference { + return mg.Spec.ProviderConfigReference +} + +/* +GetProviderReference of this APIKey. +Deprecated: Use GetProviderConfigReference. +*/ +func (mg *APIKey) GetProviderReference() *xpv1.Reference { + return mg.Spec.ProviderReference +} + +// GetPublishConnectionDetailsTo of this APIKey. +func (mg *APIKey) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + +// GetWriteConnectionSecretToReference of this APIKey. +func (mg *APIKey) GetWriteConnectionSecretToReference() *xpv1.SecretReference { + return mg.Spec.WriteConnectionSecretToReference +} + +// SetConditions of this APIKey. +func (mg *APIKey) SetConditions(c ...xpv1.Condition) { + mg.Status.SetConditions(c...) +} + +// SetDeletionPolicy of this APIKey. +func (mg *APIKey) SetDeletionPolicy(r xpv1.DeletionPolicy) { + mg.Spec.DeletionPolicy = r +} + +// SetManagementPolicy of this APIKey. +func (mg *APIKey) SetManagementPolicy(r xpv1.ManagementPolicy) { + mg.Spec.ManagementPolicy = r +} + +// SetProviderConfigReference of this APIKey. +func (mg *APIKey) SetProviderConfigReference(r *xpv1.Reference) { + mg.Spec.ProviderConfigReference = r +} + +/* +SetProviderReference of this APIKey. +Deprecated: Use SetProviderConfigReference. +*/ +func (mg *APIKey) SetProviderReference(r *xpv1.Reference) { + mg.Spec.ProviderReference = r +} + +// SetPublishConnectionDetailsTo of this APIKey. +func (mg *APIKey) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + +// SetWriteConnectionSecretToReference of this APIKey. +func (mg *APIKey) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { + mg.Spec.WriteConnectionSecretToReference = r +} + +// GetCondition of this Cluster. +func (mg *Cluster) GetCondition(ct xpv1.ConditionType) xpv1.Condition { + return mg.Status.GetCondition(ct) +} + +// GetDeletionPolicy of this Cluster. +func (mg *Cluster) GetDeletionPolicy() xpv1.DeletionPolicy { + return mg.Spec.DeletionPolicy +} + +// GetManagementPolicy of this Cluster. +func (mg *Cluster) GetManagementPolicy() xpv1.ManagementPolicy { + return mg.Spec.ManagementPolicy +} + +// GetProviderConfigReference of this Cluster. +func (mg *Cluster) GetProviderConfigReference() *xpv1.Reference { + return mg.Spec.ProviderConfigReference +} + +/* +GetProviderReference of this Cluster. +Deprecated: Use GetProviderConfigReference. +*/ +func (mg *Cluster) GetProviderReference() *xpv1.Reference { + return mg.Spec.ProviderReference +} + +// GetPublishConnectionDetailsTo of this Cluster. +func (mg *Cluster) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + +// GetWriteConnectionSecretToReference of this Cluster. +func (mg *Cluster) GetWriteConnectionSecretToReference() *xpv1.SecretReference { + return mg.Spec.WriteConnectionSecretToReference +} + +// SetConditions of this Cluster. +func (mg *Cluster) SetConditions(c ...xpv1.Condition) { + mg.Status.SetConditions(c...) +} + +// SetDeletionPolicy of this Cluster. +func (mg *Cluster) SetDeletionPolicy(r xpv1.DeletionPolicy) { + mg.Spec.DeletionPolicy = r +} + +// SetManagementPolicy of this Cluster. +func (mg *Cluster) SetManagementPolicy(r xpv1.ManagementPolicy) { + mg.Spec.ManagementPolicy = r +} + +// SetProviderConfigReference of this Cluster. +func (mg *Cluster) SetProviderConfigReference(r *xpv1.Reference) { + mg.Spec.ProviderConfigReference = r +} + +/* +SetProviderReference of this Cluster. +Deprecated: Use SetProviderConfigReference. +*/ +func (mg *Cluster) SetProviderReference(r *xpv1.Reference) { + mg.Spec.ProviderReference = r +} + +// SetPublishConnectionDetailsTo of this Cluster. +func (mg *Cluster) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + +// SetWriteConnectionSecretToReference of this Cluster. +func (mg *Cluster) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { + mg.Spec.WriteConnectionSecretToReference = r +} + +// GetCondition of this ClusterConfig. +func (mg *ClusterConfig) GetCondition(ct xpv1.ConditionType) xpv1.Condition { + return mg.Status.GetCondition(ct) +} + +// GetDeletionPolicy of this ClusterConfig. +func (mg *ClusterConfig) GetDeletionPolicy() xpv1.DeletionPolicy { + return mg.Spec.DeletionPolicy +} + +// GetManagementPolicy of this ClusterConfig. +func (mg *ClusterConfig) GetManagementPolicy() xpv1.ManagementPolicy { + return mg.Spec.ManagementPolicy +} + +// GetProviderConfigReference of this ClusterConfig. +func (mg *ClusterConfig) GetProviderConfigReference() *xpv1.Reference { + return mg.Spec.ProviderConfigReference +} + +/* +GetProviderReference of this ClusterConfig. +Deprecated: Use GetProviderConfigReference. +*/ +func (mg *ClusterConfig) GetProviderReference() *xpv1.Reference { + return mg.Spec.ProviderReference +} + +// GetPublishConnectionDetailsTo of this ClusterConfig. +func (mg *ClusterConfig) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + +// GetWriteConnectionSecretToReference of this ClusterConfig. +func (mg *ClusterConfig) GetWriteConnectionSecretToReference() *xpv1.SecretReference { + return mg.Spec.WriteConnectionSecretToReference +} + +// SetConditions of this ClusterConfig. +func (mg *ClusterConfig) SetConditions(c ...xpv1.Condition) { + mg.Status.SetConditions(c...) +} + +// SetDeletionPolicy of this ClusterConfig. +func (mg *ClusterConfig) SetDeletionPolicy(r xpv1.DeletionPolicy) { + mg.Spec.DeletionPolicy = r +} + +// SetManagementPolicy of this ClusterConfig. +func (mg *ClusterConfig) SetManagementPolicy(r xpv1.ManagementPolicy) { + mg.Spec.ManagementPolicy = r +} + +// SetProviderConfigReference of this ClusterConfig. +func (mg *ClusterConfig) SetProviderConfigReference(r *xpv1.Reference) { + mg.Spec.ProviderConfigReference = r +} + +/* +SetProviderReference of this ClusterConfig. +Deprecated: Use SetProviderConfigReference. +*/ +func (mg *ClusterConfig) SetProviderReference(r *xpv1.Reference) { + mg.Spec.ProviderReference = r +} + +// SetPublishConnectionDetailsTo of this ClusterConfig. +func (mg *ClusterConfig) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + +// SetWriteConnectionSecretToReference of this ClusterConfig. +func (mg *ClusterConfig) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { + mg.Spec.WriteConnectionSecretToReference = r +} + // GetCondition of this Environment. func (mg *Environment) GetCondition(ct xpv1.ConditionType) xpv1.Condition { return mg.Status.GetCondition(ct) @@ -82,3 +310,231 @@ func (mg *Environment) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDe func (mg *Environment) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r } + +// GetCondition of this KafkaACL. +func (mg *KafkaACL) GetCondition(ct xpv1.ConditionType) xpv1.Condition { + return mg.Status.GetCondition(ct) +} + +// GetDeletionPolicy of this KafkaACL. +func (mg *KafkaACL) GetDeletionPolicy() xpv1.DeletionPolicy { + return mg.Spec.DeletionPolicy +} + +// GetManagementPolicy of this KafkaACL. +func (mg *KafkaACL) GetManagementPolicy() xpv1.ManagementPolicy { + return mg.Spec.ManagementPolicy +} + +// GetProviderConfigReference of this KafkaACL. +func (mg *KafkaACL) GetProviderConfigReference() *xpv1.Reference { + return mg.Spec.ProviderConfigReference +} + +/* +GetProviderReference of this KafkaACL. +Deprecated: Use GetProviderConfigReference. +*/ +func (mg *KafkaACL) GetProviderReference() *xpv1.Reference { + return mg.Spec.ProviderReference +} + +// GetPublishConnectionDetailsTo of this KafkaACL. +func (mg *KafkaACL) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + +// GetWriteConnectionSecretToReference of this KafkaACL. +func (mg *KafkaACL) GetWriteConnectionSecretToReference() *xpv1.SecretReference { + return mg.Spec.WriteConnectionSecretToReference +} + +// SetConditions of this KafkaACL. +func (mg *KafkaACL) SetConditions(c ...xpv1.Condition) { + mg.Status.SetConditions(c...) +} + +// SetDeletionPolicy of this KafkaACL. +func (mg *KafkaACL) SetDeletionPolicy(r xpv1.DeletionPolicy) { + mg.Spec.DeletionPolicy = r +} + +// SetManagementPolicy of this KafkaACL. +func (mg *KafkaACL) SetManagementPolicy(r xpv1.ManagementPolicy) { + mg.Spec.ManagementPolicy = r +} + +// SetProviderConfigReference of this KafkaACL. +func (mg *KafkaACL) SetProviderConfigReference(r *xpv1.Reference) { + mg.Spec.ProviderConfigReference = r +} + +/* +SetProviderReference of this KafkaACL. +Deprecated: Use SetProviderConfigReference. +*/ +func (mg *KafkaACL) SetProviderReference(r *xpv1.Reference) { + mg.Spec.ProviderReference = r +} + +// SetPublishConnectionDetailsTo of this KafkaACL. +func (mg *KafkaACL) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + +// SetWriteConnectionSecretToReference of this KafkaACL. +func (mg *KafkaACL) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { + mg.Spec.WriteConnectionSecretToReference = r +} + +// GetCondition of this RoleBinding. +func (mg *RoleBinding) GetCondition(ct xpv1.ConditionType) xpv1.Condition { + return mg.Status.GetCondition(ct) +} + +// GetDeletionPolicy of this RoleBinding. +func (mg *RoleBinding) GetDeletionPolicy() xpv1.DeletionPolicy { + return mg.Spec.DeletionPolicy +} + +// GetManagementPolicy of this RoleBinding. +func (mg *RoleBinding) GetManagementPolicy() xpv1.ManagementPolicy { + return mg.Spec.ManagementPolicy +} + +// GetProviderConfigReference of this RoleBinding. +func (mg *RoleBinding) GetProviderConfigReference() *xpv1.Reference { + return mg.Spec.ProviderConfigReference +} + +/* +GetProviderReference of this RoleBinding. +Deprecated: Use GetProviderConfigReference. +*/ +func (mg *RoleBinding) GetProviderReference() *xpv1.Reference { + return mg.Spec.ProviderReference +} + +// GetPublishConnectionDetailsTo of this RoleBinding. +func (mg *RoleBinding) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + +// GetWriteConnectionSecretToReference of this RoleBinding. +func (mg *RoleBinding) GetWriteConnectionSecretToReference() *xpv1.SecretReference { + return mg.Spec.WriteConnectionSecretToReference +} + +// SetConditions of this RoleBinding. +func (mg *RoleBinding) SetConditions(c ...xpv1.Condition) { + mg.Status.SetConditions(c...) +} + +// SetDeletionPolicy of this RoleBinding. +func (mg *RoleBinding) SetDeletionPolicy(r xpv1.DeletionPolicy) { + mg.Spec.DeletionPolicy = r +} + +// SetManagementPolicy of this RoleBinding. +func (mg *RoleBinding) SetManagementPolicy(r xpv1.ManagementPolicy) { + mg.Spec.ManagementPolicy = r +} + +// SetProviderConfigReference of this RoleBinding. +func (mg *RoleBinding) SetProviderConfigReference(r *xpv1.Reference) { + mg.Spec.ProviderConfigReference = r +} + +/* +SetProviderReference of this RoleBinding. +Deprecated: Use SetProviderConfigReference. +*/ +func (mg *RoleBinding) SetProviderReference(r *xpv1.Reference) { + mg.Spec.ProviderReference = r +} + +// SetPublishConnectionDetailsTo of this RoleBinding. +func (mg *RoleBinding) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + +// SetWriteConnectionSecretToReference of this RoleBinding. +func (mg *RoleBinding) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { + mg.Spec.WriteConnectionSecretToReference = r +} + +// GetCondition of this ServiceAccount. +func (mg *ServiceAccount) GetCondition(ct xpv1.ConditionType) xpv1.Condition { + return mg.Status.GetCondition(ct) +} + +// GetDeletionPolicy of this ServiceAccount. +func (mg *ServiceAccount) GetDeletionPolicy() xpv1.DeletionPolicy { + return mg.Spec.DeletionPolicy +} + +// GetManagementPolicy of this ServiceAccount. +func (mg *ServiceAccount) GetManagementPolicy() xpv1.ManagementPolicy { + return mg.Spec.ManagementPolicy +} + +// GetProviderConfigReference of this ServiceAccount. +func (mg *ServiceAccount) GetProviderConfigReference() *xpv1.Reference { + return mg.Spec.ProviderConfigReference +} + +/* +GetProviderReference of this ServiceAccount. +Deprecated: Use GetProviderConfigReference. +*/ +func (mg *ServiceAccount) GetProviderReference() *xpv1.Reference { + return mg.Spec.ProviderReference +} + +// GetPublishConnectionDetailsTo of this ServiceAccount. +func (mg *ServiceAccount) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + +// GetWriteConnectionSecretToReference of this ServiceAccount. +func (mg *ServiceAccount) GetWriteConnectionSecretToReference() *xpv1.SecretReference { + return mg.Spec.WriteConnectionSecretToReference +} + +// SetConditions of this ServiceAccount. +func (mg *ServiceAccount) SetConditions(c ...xpv1.Condition) { + mg.Status.SetConditions(c...) +} + +// SetDeletionPolicy of this ServiceAccount. +func (mg *ServiceAccount) SetDeletionPolicy(r xpv1.DeletionPolicy) { + mg.Spec.DeletionPolicy = r +} + +// SetManagementPolicy of this ServiceAccount. +func (mg *ServiceAccount) SetManagementPolicy(r xpv1.ManagementPolicy) { + mg.Spec.ManagementPolicy = r +} + +// SetProviderConfigReference of this ServiceAccount. +func (mg *ServiceAccount) SetProviderConfigReference(r *xpv1.Reference) { + mg.Spec.ProviderConfigReference = r +} + +/* +SetProviderReference of this ServiceAccount. +Deprecated: Use SetProviderConfigReference. +*/ +func (mg *ServiceAccount) SetProviderReference(r *xpv1.Reference) { + mg.Spec.ProviderReference = r +} + +// SetPublishConnectionDetailsTo of this ServiceAccount. +func (mg *ServiceAccount) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + +// SetWriteConnectionSecretToReference of this ServiceAccount. +func (mg *ServiceAccount) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { + mg.Spec.WriteConnectionSecretToReference = r +} diff --git a/apis/confluent/v1alpha1/zz_generated.managedlist.go b/apis/confluent/v1alpha1/zz_generated.managedlist.go index 8ba540b..26e5113 100644 --- a/apis/confluent/v1alpha1/zz_generated.managedlist.go +++ b/apis/confluent/v1alpha1/zz_generated.managedlist.go @@ -7,6 +7,33 @@ package v1alpha1 import resource "github.com/crossplane/crossplane-runtime/pkg/resource" +// GetItems of this APIKeyList. +func (l *APIKeyList) GetItems() []resource.Managed { + items := make([]resource.Managed, len(l.Items)) + for i := range l.Items { + items[i] = &l.Items[i] + } + return items +} + +// GetItems of this ClusterConfigList. +func (l *ClusterConfigList) GetItems() []resource.Managed { + items := make([]resource.Managed, len(l.Items)) + for i := range l.Items { + items[i] = &l.Items[i] + } + return items +} + +// GetItems of this ClusterList. +func (l *ClusterList) GetItems() []resource.Managed { + items := make([]resource.Managed, len(l.Items)) + for i := range l.Items { + items[i] = &l.Items[i] + } + return items +} + // GetItems of this EnvironmentList. func (l *EnvironmentList) GetItems() []resource.Managed { items := make([]resource.Managed, len(l.Items)) @@ -15,3 +42,30 @@ func (l *EnvironmentList) GetItems() []resource.Managed { } return items } + +// GetItems of this KafkaACLList. +func (l *KafkaACLList) GetItems() []resource.Managed { + items := make([]resource.Managed, len(l.Items)) + for i := range l.Items { + items[i] = &l.Items[i] + } + return items +} + +// GetItems of this RoleBindingList. +func (l *RoleBindingList) GetItems() []resource.Managed { + items := make([]resource.Managed, len(l.Items)) + for i := range l.Items { + items[i] = &l.Items[i] + } + return items +} + +// GetItems of this ServiceAccountList. +func (l *ServiceAccountList) GetItems() []resource.Managed { + items := make([]resource.Managed, len(l.Items)) + for i := range l.Items { + items[i] = &l.Items[i] + } + return items +} diff --git a/apis/confluent/v1alpha1/zz_generated.resolvers.go b/apis/confluent/v1alpha1/zz_generated.resolvers.go new file mode 100644 index 0000000..32cfcae --- /dev/null +++ b/apis/confluent/v1alpha1/zz_generated.resolvers.go @@ -0,0 +1,154 @@ +/* +Copyright 2022 Upbound Inc. +*/ +// Code generated by angryjet. DO NOT EDIT. + +package v1alpha1 + +import ( + "context" + confluentkafkaacl "github.com/crossplane-contrib/provider-confluent/config/confluent_kafka_acl" + reference "github.com/crossplane/crossplane-runtime/pkg/reference" + errors "github.com/pkg/errors" + client "sigs.k8s.io/controller-runtime/pkg/client" +) + +// ResolveReferences of this APIKey. +func (mg *APIKey) ResolveReferences(ctx context.Context, c client.Reader) error { + r := reference.NewAPIResolver(c, mg) + + var rsp reference.ResolutionResponse + var err error + + for i3 := 0; i3 < len(mg.Spec.ForProvider.ManagedResource); i3++ { + for i4 := 0; i4 < len(mg.Spec.ForProvider.ManagedResource[i3].Environment); i4++ { + rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ + CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.ManagedResource[i3].Environment[i4].ID), + Extract: reference.ExternalName(), + Reference: mg.Spec.ForProvider.ManagedResource[i3].Environment[i4].IDRef, + Selector: mg.Spec.ForProvider.ManagedResource[i3].Environment[i4].IDSelector, + To: reference.To{ + List: &EnvironmentList{}, + Managed: &Environment{}, + }, + }) + if err != nil { + return errors.Wrap(err, "mg.Spec.ForProvider.ManagedResource[i3].Environment[i4].ID") + } + mg.Spec.ForProvider.ManagedResource[i3].Environment[i4].ID = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.ManagedResource[i3].Environment[i4].IDRef = rsp.ResolvedReference + + } + } + for i3 := 0; i3 < len(mg.Spec.ForProvider.ManagedResource); i3++ { + rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ + CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.ManagedResource[i3].ID), + Extract: reference.ExternalName(), + Reference: mg.Spec.ForProvider.ManagedResource[i3].IDRef, + Selector: mg.Spec.ForProvider.ManagedResource[i3].IDSelector, + To: reference.To{ + List: &ClusterList{}, + Managed: &Cluster{}, + }, + }) + if err != nil { + return errors.Wrap(err, "mg.Spec.ForProvider.ManagedResource[i3].ID") + } + mg.Spec.ForProvider.ManagedResource[i3].ID = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.ManagedResource[i3].IDRef = rsp.ResolvedReference + + } + for i3 := 0; i3 < len(mg.Spec.ForProvider.Owner); i3++ { + rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ + CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.Owner[i3].ID), + Extract: reference.ExternalName(), + Reference: mg.Spec.ForProvider.Owner[i3].IDRef, + Selector: mg.Spec.ForProvider.Owner[i3].IDSelector, + To: reference.To{ + List: &ServiceAccountList{}, + Managed: &ServiceAccount{}, + }, + }) + if err != nil { + return errors.Wrap(err, "mg.Spec.ForProvider.Owner[i3].ID") + } + mg.Spec.ForProvider.Owner[i3].ID = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.Owner[i3].IDRef = rsp.ResolvedReference + + } + + return nil +} + +// ResolveReferences of this Cluster. +func (mg *Cluster) ResolveReferences(ctx context.Context, c client.Reader) error { + r := reference.NewAPIResolver(c, mg) + + var rsp reference.ResolutionResponse + var err error + + for i3 := 0; i3 < len(mg.Spec.ForProvider.Environment); i3++ { + rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ + CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.Environment[i3].ID), + Extract: reference.ExternalName(), + Reference: mg.Spec.ForProvider.Environment[i3].IDRef, + Selector: mg.Spec.ForProvider.Environment[i3].IDSelector, + To: reference.To{ + List: &EnvironmentList{}, + Managed: &Environment{}, + }, + }) + if err != nil { + return errors.Wrap(err, "mg.Spec.ForProvider.Environment[i3].ID") + } + mg.Spec.ForProvider.Environment[i3].ID = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.Environment[i3].IDRef = rsp.ResolvedReference + + } + + return nil +} + +// ResolveReferences of this KafkaACL. +func (mg *KafkaACL) ResolveReferences(ctx context.Context, c client.Reader) error { + r := reference.NewAPIResolver(c, mg) + + var rsp reference.ResolutionResponse + var err error + + for i3 := 0; i3 < len(mg.Spec.ForProvider.KafkaCluster); i3++ { + rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ + CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.KafkaCluster[i3].ID), + Extract: reference.ExternalName(), + Reference: mg.Spec.ForProvider.KafkaCluster[i3].IDRef, + Selector: mg.Spec.ForProvider.KafkaCluster[i3].IDSelector, + To: reference.To{ + List: &ClusterList{}, + Managed: &Cluster{}, + }, + }) + if err != nil { + return errors.Wrap(err, "mg.Spec.ForProvider.KafkaCluster[i3].ID") + } + mg.Spec.ForProvider.KafkaCluster[i3].ID = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.KafkaCluster[i3].IDRef = rsp.ResolvedReference + + } + rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ + CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.Principal), + Extract: confluentkafkaacl.ExtractResourceID(), + Reference: mg.Spec.ForProvider.PrincipalRef, + Selector: mg.Spec.ForProvider.PrincipalSelector, + To: reference.To{ + List: &ServiceAccountList{}, + Managed: &ServiceAccount{}, + }, + }) + if err != nil { + return errors.Wrap(err, "mg.Spec.ForProvider.Principal") + } + mg.Spec.ForProvider.Principal = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.PrincipalRef = rsp.ResolvedReference + + return nil +} diff --git a/apis/confluent/v1alpha1/zz_generated_terraformed.go b/apis/confluent/v1alpha1/zz_generated_terraformed.go index ddca3c5..0b2982f 100755 --- a/apis/confluent/v1alpha1/zz_generated_terraformed.go +++ b/apis/confluent/v1alpha1/zz_generated_terraformed.go @@ -13,6 +13,80 @@ import ( "github.com/upbound/upjet/pkg/resource/json" ) +// GetTerraformResourceType returns Terraform resource type for this APIKey +func (mg *APIKey) GetTerraformResourceType() string { + return "confluent_api_key" +} + +// GetConnectionDetailsMapping for this APIKey +func (tr *APIKey) GetConnectionDetailsMapping() map[string]string { + return map[string]string{"secret": "status.atProvider.secret"} +} + +// GetObservation of this APIKey +func (tr *APIKey) GetObservation() (map[string]any, error) { + o, err := json.TFParser.Marshal(tr.Status.AtProvider) + if err != nil { + return nil, err + } + base := map[string]any{} + return base, json.TFParser.Unmarshal(o, &base) +} + +// SetObservation for this APIKey +func (tr *APIKey) SetObservation(obs map[string]any) error { + p, err := json.TFParser.Marshal(obs) + if err != nil { + return err + } + return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) +} + +// GetID returns ID of underlying Terraform resource of this APIKey +func (tr *APIKey) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + +// GetParameters of this APIKey +func (tr *APIKey) GetParameters() (map[string]any, error) { + p, err := json.TFParser.Marshal(tr.Spec.ForProvider) + if err != nil { + return nil, err + } + base := map[string]any{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this APIKey +func (tr *APIKey) SetParameters(params map[string]any) error { + p, err := json.TFParser.Marshal(params) + if err != nil { + return err + } + return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) +} + +// LateInitialize this APIKey using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *APIKey) LateInitialize(attrs []byte) (bool, error) { + params := &APIKeyParameters{} + if err := json.TFParser.Unmarshal(attrs, params); err != nil { + return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") + } + opts := []resource.GenericLateInitializerOption{resource.WithZeroValueJSONOmitEmptyFilter(resource.CNameWildcard)} + + li := resource.NewGenericLateInitializer(opts...) + return li.LateInitialize(&tr.Spec.ForProvider, params) +} + +// GetTerraformSchemaVersion returns the associated Terraform schema version +func (tr *APIKey) GetTerraformSchemaVersion() int { + return 0 +} + // GetTerraformResourceType returns Terraform resource type for this Environment func (mg *Environment) GetTerraformResourceType() string { return "confluent_environment" @@ -72,7 +146,7 @@ func (tr *Environment) SetParameters(params map[string]any) error { // LateInitialize this Environment using its observed tfState. // returns True if there are any spec changes for the resource. func (tr *Environment) LateInitialize(attrs []byte) (bool, error) { - params := &EnvironmentParameters{} + params := &EnvironmentParameters_2{} if err := json.TFParser.Unmarshal(attrs, params); err != nil { return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") } @@ -86,3 +160,374 @@ func (tr *Environment) LateInitialize(attrs []byte) (bool, error) { func (tr *Environment) GetTerraformSchemaVersion() int { return 0 } + +// GetTerraformResourceType returns Terraform resource type for this KafkaACL +func (mg *KafkaACL) GetTerraformResourceType() string { + return "confluent_kafka_acl" +} + +// GetConnectionDetailsMapping for this KafkaACL +func (tr *KafkaACL) GetConnectionDetailsMapping() map[string]string { + return map[string]string{"credentials[*].key": "spec.forProvider.credentials[*].keySecretRef", "credentials[*].secret": "spec.forProvider.credentials[*].secretSecretRef"} +} + +// GetObservation of this KafkaACL +func (tr *KafkaACL) GetObservation() (map[string]any, error) { + o, err := json.TFParser.Marshal(tr.Status.AtProvider) + if err != nil { + return nil, err + } + base := map[string]any{} + return base, json.TFParser.Unmarshal(o, &base) +} + +// SetObservation for this KafkaACL +func (tr *KafkaACL) SetObservation(obs map[string]any) error { + p, err := json.TFParser.Marshal(obs) + if err != nil { + return err + } + return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) +} + +// GetID returns ID of underlying Terraform resource of this KafkaACL +func (tr *KafkaACL) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + +// GetParameters of this KafkaACL +func (tr *KafkaACL) GetParameters() (map[string]any, error) { + p, err := json.TFParser.Marshal(tr.Spec.ForProvider) + if err != nil { + return nil, err + } + base := map[string]any{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this KafkaACL +func (tr *KafkaACL) SetParameters(params map[string]any) error { + p, err := json.TFParser.Marshal(params) + if err != nil { + return err + } + return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) +} + +// LateInitialize this KafkaACL using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *KafkaACL) LateInitialize(attrs []byte) (bool, error) { + params := &KafkaACLParameters{} + if err := json.TFParser.Unmarshal(attrs, params); err != nil { + return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") + } + opts := []resource.GenericLateInitializerOption{resource.WithZeroValueJSONOmitEmptyFilter(resource.CNameWildcard)} + + li := resource.NewGenericLateInitializer(opts...) + return li.LateInitialize(&tr.Spec.ForProvider, params) +} + +// GetTerraformSchemaVersion returns the associated Terraform schema version +func (tr *KafkaACL) GetTerraformSchemaVersion() int { + return 2 +} + +// GetTerraformResourceType returns Terraform resource type for this Cluster +func (mg *Cluster) GetTerraformResourceType() string { + return "confluent_kafka_cluster" +} + +// GetConnectionDetailsMapping for this Cluster +func (tr *Cluster) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this Cluster +func (tr *Cluster) GetObservation() (map[string]any, error) { + o, err := json.TFParser.Marshal(tr.Status.AtProvider) + if err != nil { + return nil, err + } + base := map[string]any{} + return base, json.TFParser.Unmarshal(o, &base) +} + +// SetObservation for this Cluster +func (tr *Cluster) SetObservation(obs map[string]any) error { + p, err := json.TFParser.Marshal(obs) + if err != nil { + return err + } + return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) +} + +// GetID returns ID of underlying Terraform resource of this Cluster +func (tr *Cluster) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + +// GetParameters of this Cluster +func (tr *Cluster) GetParameters() (map[string]any, error) { + p, err := json.TFParser.Marshal(tr.Spec.ForProvider) + if err != nil { + return nil, err + } + base := map[string]any{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this Cluster +func (tr *Cluster) SetParameters(params map[string]any) error { + p, err := json.TFParser.Marshal(params) + if err != nil { + return err + } + return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) +} + +// LateInitialize this Cluster using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *Cluster) LateInitialize(attrs []byte) (bool, error) { + params := &ClusterParameters{} + if err := json.TFParser.Unmarshal(attrs, params); err != nil { + return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") + } + opts := []resource.GenericLateInitializerOption{resource.WithZeroValueJSONOmitEmptyFilter(resource.CNameWildcard)} + opts = append(opts, resource.WithNameFilter("Network")) + + li := resource.NewGenericLateInitializer(opts...) + return li.LateInitialize(&tr.Spec.ForProvider, params) +} + +// GetTerraformSchemaVersion returns the associated Terraform schema version +func (tr *Cluster) GetTerraformSchemaVersion() int { + return 1 +} + +// GetTerraformResourceType returns Terraform resource type for this ClusterConfig +func (mg *ClusterConfig) GetTerraformResourceType() string { + return "confluent_kafka_cluster_config" +} + +// GetConnectionDetailsMapping for this ClusterConfig +func (tr *ClusterConfig) GetConnectionDetailsMapping() map[string]string { + return map[string]string{"credentials[*].key": "spec.forProvider.credentials[*].keySecretRef", "credentials[*].secret": "spec.forProvider.credentials[*].secretSecretRef"} +} + +// GetObservation of this ClusterConfig +func (tr *ClusterConfig) GetObservation() (map[string]any, error) { + o, err := json.TFParser.Marshal(tr.Status.AtProvider) + if err != nil { + return nil, err + } + base := map[string]any{} + return base, json.TFParser.Unmarshal(o, &base) +} + +// SetObservation for this ClusterConfig +func (tr *ClusterConfig) SetObservation(obs map[string]any) error { + p, err := json.TFParser.Marshal(obs) + if err != nil { + return err + } + return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) +} + +// GetID returns ID of underlying Terraform resource of this ClusterConfig +func (tr *ClusterConfig) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + +// GetParameters of this ClusterConfig +func (tr *ClusterConfig) GetParameters() (map[string]any, error) { + p, err := json.TFParser.Marshal(tr.Spec.ForProvider) + if err != nil { + return nil, err + } + base := map[string]any{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this ClusterConfig +func (tr *ClusterConfig) SetParameters(params map[string]any) error { + p, err := json.TFParser.Marshal(params) + if err != nil { + return err + } + return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) +} + +// LateInitialize this ClusterConfig using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *ClusterConfig) LateInitialize(attrs []byte) (bool, error) { + params := &ClusterConfigParameters{} + if err := json.TFParser.Unmarshal(attrs, params); err != nil { + return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") + } + opts := []resource.GenericLateInitializerOption{resource.WithZeroValueJSONOmitEmptyFilter(resource.CNameWildcard)} + + li := resource.NewGenericLateInitializer(opts...) + return li.LateInitialize(&tr.Spec.ForProvider, params) +} + +// GetTerraformSchemaVersion returns the associated Terraform schema version +func (tr *ClusterConfig) GetTerraformSchemaVersion() int { + return 0 +} + +// GetTerraformResourceType returns Terraform resource type for this RoleBinding +func (mg *RoleBinding) GetTerraformResourceType() string { + return "confluent_role_binding" +} + +// GetConnectionDetailsMapping for this RoleBinding +func (tr *RoleBinding) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this RoleBinding +func (tr *RoleBinding) GetObservation() (map[string]any, error) { + o, err := json.TFParser.Marshal(tr.Status.AtProvider) + if err != nil { + return nil, err + } + base := map[string]any{} + return base, json.TFParser.Unmarshal(o, &base) +} + +// SetObservation for this RoleBinding +func (tr *RoleBinding) SetObservation(obs map[string]any) error { + p, err := json.TFParser.Marshal(obs) + if err != nil { + return err + } + return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) +} + +// GetID returns ID of underlying Terraform resource of this RoleBinding +func (tr *RoleBinding) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + +// GetParameters of this RoleBinding +func (tr *RoleBinding) GetParameters() (map[string]any, error) { + p, err := json.TFParser.Marshal(tr.Spec.ForProvider) + if err != nil { + return nil, err + } + base := map[string]any{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this RoleBinding +func (tr *RoleBinding) SetParameters(params map[string]any) error { + p, err := json.TFParser.Marshal(params) + if err != nil { + return err + } + return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) +} + +// LateInitialize this RoleBinding using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *RoleBinding) LateInitialize(attrs []byte) (bool, error) { + params := &RoleBindingParameters{} + if err := json.TFParser.Unmarshal(attrs, params); err != nil { + return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") + } + opts := []resource.GenericLateInitializerOption{resource.WithZeroValueJSONOmitEmptyFilter(resource.CNameWildcard)} + + li := resource.NewGenericLateInitializer(opts...) + return li.LateInitialize(&tr.Spec.ForProvider, params) +} + +// GetTerraformSchemaVersion returns the associated Terraform schema version +func (tr *RoleBinding) GetTerraformSchemaVersion() int { + return 0 +} + +// GetTerraformResourceType returns Terraform resource type for this ServiceAccount +func (mg *ServiceAccount) GetTerraformResourceType() string { + return "confluent_service_account" +} + +// GetConnectionDetailsMapping for this ServiceAccount +func (tr *ServiceAccount) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this ServiceAccount +func (tr *ServiceAccount) GetObservation() (map[string]any, error) { + o, err := json.TFParser.Marshal(tr.Status.AtProvider) + if err != nil { + return nil, err + } + base := map[string]any{} + return base, json.TFParser.Unmarshal(o, &base) +} + +// SetObservation for this ServiceAccount +func (tr *ServiceAccount) SetObservation(obs map[string]any) error { + p, err := json.TFParser.Marshal(obs) + if err != nil { + return err + } + return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) +} + +// GetID returns ID of underlying Terraform resource of this ServiceAccount +func (tr *ServiceAccount) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + +// GetParameters of this ServiceAccount +func (tr *ServiceAccount) GetParameters() (map[string]any, error) { + p, err := json.TFParser.Marshal(tr.Spec.ForProvider) + if err != nil { + return nil, err + } + base := map[string]any{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this ServiceAccount +func (tr *ServiceAccount) SetParameters(params map[string]any) error { + p, err := json.TFParser.Marshal(params) + if err != nil { + return err + } + return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) +} + +// LateInitialize this ServiceAccount using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *ServiceAccount) LateInitialize(attrs []byte) (bool, error) { + params := &ServiceAccountParameters{} + if err := json.TFParser.Unmarshal(attrs, params); err != nil { + return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") + } + opts := []resource.GenericLateInitializerOption{resource.WithZeroValueJSONOmitEmptyFilter(resource.CNameWildcard)} + + li := resource.NewGenericLateInitializer(opts...) + return li.LateInitialize(&tr.Spec.ForProvider, params) +} + +// GetTerraformSchemaVersion returns the associated Terraform schema version +func (tr *ServiceAccount) GetTerraformSchemaVersion() int { + return 0 +} diff --git a/apis/kafka/v1alpha1/zz_acl_types.go b/apis/confluent/v1alpha1/zz_kafkaacl_types.go similarity index 74% rename from apis/kafka/v1alpha1/zz_acl_types.go rename to apis/confluent/v1alpha1/zz_kafkaacl_types.go index b9f6528..5732096 100755 --- a/apis/kafka/v1alpha1/zz_acl_types.go +++ b/apis/confluent/v1alpha1/zz_kafkaacl_types.go @@ -13,7 +13,21 @@ import ( v1 "github.com/crossplane/crossplane-runtime/apis/common/v1" ) -type ACLObservation struct { +type CredentialsObservation struct { +} + +type CredentialsParameters struct { + + // The Cluster API Key for your Confluent Cloud cluster. + // +kubebuilder:validation:Required + KeySecretRef v1.SecretKeySelector `json:"keySecretRef" tf:"-"` + + // The Cluster API Secret for your Confluent Cloud cluster. + // +kubebuilder:validation:Required + SecretSecretRef v1.SecretKeySelector `json:"secretSecretRef" tf:"-"` +} + +type KafkaACLObservation struct { // The Cluster API Credentials. Credentials []CredentialsParameters `json:"credentials,omitempty" tf:"credentials,omitempty"` @@ -47,7 +61,7 @@ type ACLObservation struct { RestEndpoint *string `json:"restEndpoint,omitempty" tf:"rest_endpoint,omitempty"` } -type ACLParameters struct { +type KafkaACLParameters struct { // The Cluster API Credentials. // +kubebuilder:validation:Optional @@ -73,9 +87,19 @@ type ACLParameters struct { Permission *string `json:"permission,omitempty" tf:"permission,omitempty"` // The principal for the ACL. + // +crossplane:generate:reference:type=ServiceAccount + // +crossplane:generate:reference:extractor=github.com/crossplane-contrib/provider-confluent/config/confluent_kafka_acl.ExtractResourceID() // +kubebuilder:validation:Optional Principal *string `json:"principal,omitempty" tf:"principal,omitempty"` + // Reference to a ServiceAccount to populate principal. + // +kubebuilder:validation:Optional + PrincipalRef *v1.Reference `json:"principalRef,omitempty" tf:"-"` + + // Selector for a ServiceAccount to populate principal. + // +kubebuilder:validation:Optional + PrincipalSelector *v1.Selector `json:"principalSelector,omitempty" tf:"-"` + // The resource name for the ACL. // +kubebuilder:validation:Optional ResourceName *string `json:"resourceName,omitempty" tf:"resource_name,omitempty"` @@ -89,20 +113,6 @@ type ACLParameters struct { RestEndpoint *string `json:"restEndpoint,omitempty" tf:"rest_endpoint,omitempty"` } -type CredentialsObservation struct { -} - -type CredentialsParameters struct { - - // The Cluster API Key for your Confluent Cloud cluster. - // +kubebuilder:validation:Required - KeySecretRef v1.SecretKeySelector `json:"keySecretRef" tf:"-"` - - // The Cluster API Secret for your Confluent Cloud cluster. - // +kubebuilder:validation:Required - SecretSecretRef v1.SecretKeySelector `json:"secretSecretRef" tf:"-"` -} - type KafkaClusterObservation struct { // The Kafka cluster ID (e.g., `lkc-12345`). @@ -112,62 +122,70 @@ type KafkaClusterObservation struct { type KafkaClusterParameters struct { // The Kafka cluster ID (e.g., `lkc-12345`). - // +kubebuilder:validation:Required - ID *string `json:"id" tf:"id,omitempty"` + // +crossplane:generate:reference:type=Cluster + // +kubebuilder:validation:Optional + ID *string `json:"id,omitempty" tf:"id,omitempty"` + + // Reference to a Cluster to populate id. + // +kubebuilder:validation:Optional + IDRef *v1.Reference `json:"idRef,omitempty" tf:"-"` + + // Selector for a Cluster to populate id. + // +kubebuilder:validation:Optional + IDSelector *v1.Selector `json:"idSelector,omitempty" tf:"-"` } -// ACLSpec defines the desired state of ACL -type ACLSpec struct { +// KafkaACLSpec defines the desired state of KafkaACL +type KafkaACLSpec struct { v1.ResourceSpec `json:",inline"` - ForProvider ACLParameters `json:"forProvider"` + ForProvider KafkaACLParameters `json:"forProvider"` } -// ACLStatus defines the observed state of ACL. -type ACLStatus struct { +// KafkaACLStatus defines the observed state of KafkaACL. +type KafkaACLStatus struct { v1.ResourceStatus `json:",inline"` - AtProvider ACLObservation `json:"atProvider,omitempty"` + AtProvider KafkaACLObservation `json:"atProvider,omitempty"` } // +kubebuilder:object:root=true -// ACL is the Schema for the ACLs API. +// KafkaACL is the Schema for the KafkaACLs API. // +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" // +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" // +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" // +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" // +kubebuilder:subresource:status // +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,confluent} -type ACL struct { +type KafkaACL struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.host)",message="host is a required parameter" // +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.operation)",message="operation is a required parameter" // +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.patternType)",message="patternType is a required parameter" // +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.permission)",message="permission is a required parameter" - // +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.principal)",message="principal is a required parameter" // +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.resourceName)",message="resourceName is a required parameter" // +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.resourceType)",message="resourceType is a required parameter" - Spec ACLSpec `json:"spec"` - Status ACLStatus `json:"status,omitempty"` + Spec KafkaACLSpec `json:"spec"` + Status KafkaACLStatus `json:"status,omitempty"` } // +kubebuilder:object:root=true -// ACLList contains a list of ACLs -type ACLList struct { +// KafkaACLList contains a list of KafkaACLs +type KafkaACLList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []ACL `json:"items"` + Items []KafkaACL `json:"items"` } // Repository type metadata. var ( - ACL_Kind = "ACL" - ACL_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: ACL_Kind}.String() - ACL_KindAPIVersion = ACL_Kind + "." + CRDGroupVersion.String() - ACL_GroupVersionKind = CRDGroupVersion.WithKind(ACL_Kind) + KafkaACL_Kind = "KafkaACL" + KafkaACL_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: KafkaACL_Kind}.String() + KafkaACL_KindAPIVersion = KafkaACL_Kind + "." + CRDGroupVersion.String() + KafkaACL_GroupVersionKind = CRDGroupVersion.WithKind(KafkaACL_Kind) ) func init() { - SchemeBuilder.Register(&ACL{}, &ACLList{}) + SchemeBuilder.Register(&KafkaACL{}, &KafkaACLList{}) } diff --git a/apis/role/v1alpha1/zz_binding_types.go b/apis/confluent/v1alpha1/zz_rolebinding_types.go similarity index 71% rename from apis/role/v1alpha1/zz_binding_types.go rename to apis/confluent/v1alpha1/zz_rolebinding_types.go index 2be0254..6f9691a 100755 --- a/apis/role/v1alpha1/zz_binding_types.go +++ b/apis/confluent/v1alpha1/zz_rolebinding_types.go @@ -13,7 +13,7 @@ import ( v1 "github.com/crossplane/crossplane-runtime/apis/common/v1" ) -type BindingObservation struct { +type RoleBindingObservation struct { // A CRN that specifies the scope and resource patterns necessary for the role to bind. CrnPattern *string `json:"crnPattern,omitempty" tf:"crn_pattern,omitempty"` @@ -27,7 +27,7 @@ type BindingObservation struct { RoleName *string `json:"roleName,omitempty" tf:"role_name,omitempty"` } -type BindingParameters struct { +type RoleBindingParameters struct { // A CRN that specifies the scope and resource patterns necessary for the role to bind. // +kubebuilder:validation:Optional @@ -42,54 +42,54 @@ type BindingParameters struct { RoleName *string `json:"roleName,omitempty" tf:"role_name,omitempty"` } -// BindingSpec defines the desired state of Binding -type BindingSpec struct { +// RoleBindingSpec defines the desired state of RoleBinding +type RoleBindingSpec struct { v1.ResourceSpec `json:",inline"` - ForProvider BindingParameters `json:"forProvider"` + ForProvider RoleBindingParameters `json:"forProvider"` } -// BindingStatus defines the observed state of Binding. -type BindingStatus struct { +// RoleBindingStatus defines the observed state of RoleBinding. +type RoleBindingStatus struct { v1.ResourceStatus `json:",inline"` - AtProvider BindingObservation `json:"atProvider,omitempty"` + AtProvider RoleBindingObservation `json:"atProvider,omitempty"` } // +kubebuilder:object:root=true -// Binding is the Schema for the Bindings API. +// RoleBinding is the Schema for the RoleBindings API. // +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" // +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" // +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" // +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" // +kubebuilder:subresource:status // +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,confluent} -type Binding struct { +type RoleBinding struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.crnPattern)",message="crnPattern is a required parameter" // +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.principal)",message="principal is a required parameter" // +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.roleName)",message="roleName is a required parameter" - Spec BindingSpec `json:"spec"` - Status BindingStatus `json:"status,omitempty"` + Spec RoleBindingSpec `json:"spec"` + Status RoleBindingStatus `json:"status,omitempty"` } // +kubebuilder:object:root=true -// BindingList contains a list of Bindings -type BindingList struct { +// RoleBindingList contains a list of RoleBindings +type RoleBindingList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []Binding `json:"items"` + Items []RoleBinding `json:"items"` } // Repository type metadata. var ( - Binding_Kind = "Binding" - Binding_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Binding_Kind}.String() - Binding_KindAPIVersion = Binding_Kind + "." + CRDGroupVersion.String() - Binding_GroupVersionKind = CRDGroupVersion.WithKind(Binding_Kind) + RoleBinding_Kind = "RoleBinding" + RoleBinding_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: RoleBinding_Kind}.String() + RoleBinding_KindAPIVersion = RoleBinding_Kind + "." + CRDGroupVersion.String() + RoleBinding_GroupVersionKind = CRDGroupVersion.WithKind(RoleBinding_Kind) ) func init() { - SchemeBuilder.Register(&Binding{}, &BindingList{}) + SchemeBuilder.Register(&RoleBinding{}, &RoleBindingList{}) } diff --git a/apis/service/v1alpha1/zz_account_types.go b/apis/confluent/v1alpha1/zz_serviceaccount_types.go similarity index 66% rename from apis/service/v1alpha1/zz_account_types.go rename to apis/confluent/v1alpha1/zz_serviceaccount_types.go index 3bba5d0..443e2bb 100755 --- a/apis/service/v1alpha1/zz_account_types.go +++ b/apis/confluent/v1alpha1/zz_serviceaccount_types.go @@ -13,7 +13,7 @@ import ( v1 "github.com/crossplane/crossplane-runtime/apis/common/v1" ) -type AccountObservation struct { +type ServiceAccountObservation struct { // API Version defines the schema version of this representation of a Service Account. APIVersion *string `json:"apiVersion,omitempty" tf:"api_version,omitempty"` @@ -30,7 +30,7 @@ type AccountObservation struct { Kind *string `json:"kind,omitempty" tf:"kind,omitempty"` } -type AccountParameters struct { +type ServiceAccountParameters struct { // A free-form description of the Service Account. // +kubebuilder:validation:Optional @@ -41,52 +41,52 @@ type AccountParameters struct { DisplayName *string `json:"displayName,omitempty" tf:"display_name,omitempty"` } -// AccountSpec defines the desired state of Account -type AccountSpec struct { +// ServiceAccountSpec defines the desired state of ServiceAccount +type ServiceAccountSpec struct { v1.ResourceSpec `json:",inline"` - ForProvider AccountParameters `json:"forProvider"` + ForProvider ServiceAccountParameters `json:"forProvider"` } -// AccountStatus defines the observed state of Account. -type AccountStatus struct { +// ServiceAccountStatus defines the observed state of ServiceAccount. +type ServiceAccountStatus struct { v1.ResourceStatus `json:",inline"` - AtProvider AccountObservation `json:"atProvider,omitempty"` + AtProvider ServiceAccountObservation `json:"atProvider,omitempty"` } // +kubebuilder:object:root=true -// Account is the Schema for the Accounts API. +// ServiceAccount is the Schema for the ServiceAccounts API. // +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" // +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" // +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" // +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" // +kubebuilder:subresource:status // +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,confluent} -type Account struct { +type ServiceAccount struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.displayName)",message="displayName is a required parameter" - Spec AccountSpec `json:"spec"` - Status AccountStatus `json:"status,omitempty"` + Spec ServiceAccountSpec `json:"spec"` + Status ServiceAccountStatus `json:"status,omitempty"` } // +kubebuilder:object:root=true -// AccountList contains a list of Accounts -type AccountList struct { +// ServiceAccountList contains a list of ServiceAccounts +type ServiceAccountList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []Account `json:"items"` + Items []ServiceAccount `json:"items"` } // Repository type metadata. var ( - Account_Kind = "Account" - Account_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Account_Kind}.String() - Account_KindAPIVersion = Account_Kind + "." + CRDGroupVersion.String() - Account_GroupVersionKind = CRDGroupVersion.WithKind(Account_Kind) + ServiceAccount_Kind = "ServiceAccount" + ServiceAccount_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: ServiceAccount_Kind}.String() + ServiceAccount_KindAPIVersion = ServiceAccount_Kind + "." + CRDGroupVersion.String() + ServiceAccount_GroupVersionKind = CRDGroupVersion.WithKind(ServiceAccount_Kind) ) func init() { - SchemeBuilder.Register(&Account{}, &AccountList{}) + SchemeBuilder.Register(&ServiceAccount{}, &ServiceAccountList{}) } diff --git a/apis/kafka/v1alpha1/zz_generated.deepcopy.go b/apis/kafka/v1alpha1/zz_generated.deepcopy.go deleted file mode 100644 index c93ee95..0000000 --- a/apis/kafka/v1alpha1/zz_generated.deepcopy.go +++ /dev/null @@ -1,1027 +0,0 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - -/* -Copyright 2022 Upbound Inc. -*/ - -// Code generated by controller-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - runtime "k8s.io/apimachinery/pkg/runtime" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ACL) DeepCopyInto(out *ACL) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ACL. -func (in *ACL) DeepCopy() *ACL { - if in == nil { - return nil - } - out := new(ACL) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ACL) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ACLList) DeepCopyInto(out *ACLList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]ACL, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ACLList. -func (in *ACLList) DeepCopy() *ACLList { - if in == nil { - return nil - } - out := new(ACLList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ACLList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ACLObservation) DeepCopyInto(out *ACLObservation) { - *out = *in - if in.Credentials != nil { - in, out := &in.Credentials, &out.Credentials - *out = make([]CredentialsParameters, len(*in)) - copy(*out, *in) - } - if in.Host != nil { - in, out := &in.Host, &out.Host - *out = new(string) - **out = **in - } - if in.ID != nil { - in, out := &in.ID, &out.ID - *out = new(string) - **out = **in - } - if in.KafkaCluster != nil { - in, out := &in.KafkaCluster, &out.KafkaCluster - *out = make([]KafkaClusterObservation, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Operation != nil { - in, out := &in.Operation, &out.Operation - *out = new(string) - **out = **in - } - if in.PatternType != nil { - in, out := &in.PatternType, &out.PatternType - *out = new(string) - **out = **in - } - if in.Permission != nil { - in, out := &in.Permission, &out.Permission - *out = new(string) - **out = **in - } - if in.Principal != nil { - in, out := &in.Principal, &out.Principal - *out = new(string) - **out = **in - } - if in.ResourceName != nil { - in, out := &in.ResourceName, &out.ResourceName - *out = new(string) - **out = **in - } - if in.ResourceType != nil { - in, out := &in.ResourceType, &out.ResourceType - *out = new(string) - **out = **in - } - if in.RestEndpoint != nil { - in, out := &in.RestEndpoint, &out.RestEndpoint - *out = new(string) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ACLObservation. -func (in *ACLObservation) DeepCopy() *ACLObservation { - if in == nil { - return nil - } - out := new(ACLObservation) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ACLParameters) DeepCopyInto(out *ACLParameters) { - *out = *in - if in.Credentials != nil { - in, out := &in.Credentials, &out.Credentials - *out = make([]CredentialsParameters, len(*in)) - copy(*out, *in) - } - if in.Host != nil { - in, out := &in.Host, &out.Host - *out = new(string) - **out = **in - } - if in.KafkaCluster != nil { - in, out := &in.KafkaCluster, &out.KafkaCluster - *out = make([]KafkaClusterParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Operation != nil { - in, out := &in.Operation, &out.Operation - *out = new(string) - **out = **in - } - if in.PatternType != nil { - in, out := &in.PatternType, &out.PatternType - *out = new(string) - **out = **in - } - if in.Permission != nil { - in, out := &in.Permission, &out.Permission - *out = new(string) - **out = **in - } - if in.Principal != nil { - in, out := &in.Principal, &out.Principal - *out = new(string) - **out = **in - } - if in.ResourceName != nil { - in, out := &in.ResourceName, &out.ResourceName - *out = new(string) - **out = **in - } - if in.ResourceType != nil { - in, out := &in.ResourceType, &out.ResourceType - *out = new(string) - **out = **in - } - if in.RestEndpoint != nil { - in, out := &in.RestEndpoint, &out.RestEndpoint - *out = new(string) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ACLParameters. -func (in *ACLParameters) DeepCopy() *ACLParameters { - if in == nil { - return nil - } - out := new(ACLParameters) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ACLSpec) DeepCopyInto(out *ACLSpec) { - *out = *in - in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) - in.ForProvider.DeepCopyInto(&out.ForProvider) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ACLSpec. -func (in *ACLSpec) DeepCopy() *ACLSpec { - if in == nil { - return nil - } - out := new(ACLSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ACLStatus) DeepCopyInto(out *ACLStatus) { - *out = *in - in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) - in.AtProvider.DeepCopyInto(&out.AtProvider) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ACLStatus. -func (in *ACLStatus) DeepCopy() *ACLStatus { - if in == nil { - return nil - } - out := new(ACLStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *BasicObservation) DeepCopyInto(out *BasicObservation) { - *out = *in -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BasicObservation. -func (in *BasicObservation) DeepCopy() *BasicObservation { - if in == nil { - return nil - } - out := new(BasicObservation) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *BasicParameters) DeepCopyInto(out *BasicParameters) { - *out = *in -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BasicParameters. -func (in *BasicParameters) DeepCopy() *BasicParameters { - if in == nil { - return nil - } - out := new(BasicParameters) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Cluster) DeepCopyInto(out *Cluster) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Cluster. -func (in *Cluster) DeepCopy() *Cluster { - if in == nil { - return nil - } - out := new(Cluster) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Cluster) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ClusterConfig) DeepCopyInto(out *ClusterConfig) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterConfig. -func (in *ClusterConfig) DeepCopy() *ClusterConfig { - if in == nil { - return nil - } - out := new(ClusterConfig) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ClusterConfig) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ClusterConfigCredentialsObservation) DeepCopyInto(out *ClusterConfigCredentialsObservation) { - *out = *in -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterConfigCredentialsObservation. -func (in *ClusterConfigCredentialsObservation) DeepCopy() *ClusterConfigCredentialsObservation { - if in == nil { - return nil - } - out := new(ClusterConfigCredentialsObservation) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ClusterConfigCredentialsParameters) DeepCopyInto(out *ClusterConfigCredentialsParameters) { - *out = *in - out.KeySecretRef = in.KeySecretRef - out.SecretSecretRef = in.SecretSecretRef -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterConfigCredentialsParameters. -func (in *ClusterConfigCredentialsParameters) DeepCopy() *ClusterConfigCredentialsParameters { - if in == nil { - return nil - } - out := new(ClusterConfigCredentialsParameters) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ClusterConfigKafkaClusterObservation) DeepCopyInto(out *ClusterConfigKafkaClusterObservation) { - *out = *in - if in.ID != nil { - in, out := &in.ID, &out.ID - *out = new(string) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterConfigKafkaClusterObservation. -func (in *ClusterConfigKafkaClusterObservation) DeepCopy() *ClusterConfigKafkaClusterObservation { - if in == nil { - return nil - } - out := new(ClusterConfigKafkaClusterObservation) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ClusterConfigKafkaClusterParameters) DeepCopyInto(out *ClusterConfigKafkaClusterParameters) { - *out = *in - if in.ID != nil { - in, out := &in.ID, &out.ID - *out = new(string) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterConfigKafkaClusterParameters. -func (in *ClusterConfigKafkaClusterParameters) DeepCopy() *ClusterConfigKafkaClusterParameters { - if in == nil { - return nil - } - out := new(ClusterConfigKafkaClusterParameters) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ClusterConfigList) DeepCopyInto(out *ClusterConfigList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]ClusterConfig, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterConfigList. -func (in *ClusterConfigList) DeepCopy() *ClusterConfigList { - if in == nil { - return nil - } - out := new(ClusterConfigList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ClusterConfigList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ClusterConfigObservation) DeepCopyInto(out *ClusterConfigObservation) { - *out = *in - if in.Config != nil { - in, out := &in.Config, &out.Config - *out = make(map[string]*string, len(*in)) - for key, val := range *in { - var outVal *string - if val == nil { - (*out)[key] = nil - } else { - in, out := &val, &outVal - *out = new(string) - **out = **in - } - (*out)[key] = outVal - } - } - if in.Credentials != nil { - in, out := &in.Credentials, &out.Credentials - *out = make([]ClusterConfigCredentialsParameters, len(*in)) - copy(*out, *in) - } - if in.ID != nil { - in, out := &in.ID, &out.ID - *out = new(string) - **out = **in - } - if in.KafkaCluster != nil { - in, out := &in.KafkaCluster, &out.KafkaCluster - *out = make([]ClusterConfigKafkaClusterObservation, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.RestEndpoint != nil { - in, out := &in.RestEndpoint, &out.RestEndpoint - *out = new(string) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterConfigObservation. -func (in *ClusterConfigObservation) DeepCopy() *ClusterConfigObservation { - if in == nil { - return nil - } - out := new(ClusterConfigObservation) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ClusterConfigParameters) DeepCopyInto(out *ClusterConfigParameters) { - *out = *in - if in.Config != nil { - in, out := &in.Config, &out.Config - *out = make(map[string]*string, len(*in)) - for key, val := range *in { - var outVal *string - if val == nil { - (*out)[key] = nil - } else { - in, out := &val, &outVal - *out = new(string) - **out = **in - } - (*out)[key] = outVal - } - } - if in.Credentials != nil { - in, out := &in.Credentials, &out.Credentials - *out = make([]ClusterConfigCredentialsParameters, len(*in)) - copy(*out, *in) - } - if in.KafkaCluster != nil { - in, out := &in.KafkaCluster, &out.KafkaCluster - *out = make([]ClusterConfigKafkaClusterParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.RestEndpoint != nil { - in, out := &in.RestEndpoint, &out.RestEndpoint - *out = new(string) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterConfigParameters. -func (in *ClusterConfigParameters) DeepCopy() *ClusterConfigParameters { - if in == nil { - return nil - } - out := new(ClusterConfigParameters) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ClusterConfigSpec) DeepCopyInto(out *ClusterConfigSpec) { - *out = *in - in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) - in.ForProvider.DeepCopyInto(&out.ForProvider) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterConfigSpec. -func (in *ClusterConfigSpec) DeepCopy() *ClusterConfigSpec { - if in == nil { - return nil - } - out := new(ClusterConfigSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ClusterConfigStatus) DeepCopyInto(out *ClusterConfigStatus) { - *out = *in - in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) - in.AtProvider.DeepCopyInto(&out.AtProvider) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterConfigStatus. -func (in *ClusterConfigStatus) DeepCopy() *ClusterConfigStatus { - if in == nil { - return nil - } - out := new(ClusterConfigStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ClusterList) DeepCopyInto(out *ClusterList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]Cluster, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterList. -func (in *ClusterList) DeepCopy() *ClusterList { - if in == nil { - return nil - } - out := new(ClusterList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ClusterList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ClusterObservation) DeepCopyInto(out *ClusterObservation) { - *out = *in - if in.APIVersion != nil { - in, out := &in.APIVersion, &out.APIVersion - *out = new(string) - **out = **in - } - if in.Availability != nil { - in, out := &in.Availability, &out.Availability - *out = new(string) - **out = **in - } - if in.Basic != nil { - in, out := &in.Basic, &out.Basic - *out = make([]BasicParameters, len(*in)) - copy(*out, *in) - } - if in.BootstrapEndpoint != nil { - in, out := &in.BootstrapEndpoint, &out.BootstrapEndpoint - *out = new(string) - **out = **in - } - if in.Cloud != nil { - in, out := &in.Cloud, &out.Cloud - *out = new(string) - **out = **in - } - if in.Dedicated != nil { - in, out := &in.Dedicated, &out.Dedicated - *out = make([]DedicatedObservation, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.DisplayName != nil { - in, out := &in.DisplayName, &out.DisplayName - *out = new(string) - **out = **in - } - if in.Environment != nil { - in, out := &in.Environment, &out.Environment - *out = make([]EnvironmentObservation, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.ID != nil { - in, out := &in.ID, &out.ID - *out = new(string) - **out = **in - } - if in.Kind != nil { - in, out := &in.Kind, &out.Kind - *out = new(string) - **out = **in - } - if in.Network != nil { - in, out := &in.Network, &out.Network - *out = make([]NetworkObservation, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.RbacCrn != nil { - in, out := &in.RbacCrn, &out.RbacCrn - *out = new(string) - **out = **in - } - if in.Region != nil { - in, out := &in.Region, &out.Region - *out = new(string) - **out = **in - } - if in.RestEndpoint != nil { - in, out := &in.RestEndpoint, &out.RestEndpoint - *out = new(string) - **out = **in - } - if in.Standard != nil { - in, out := &in.Standard, &out.Standard - *out = make([]StandardParameters, len(*in)) - copy(*out, *in) - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterObservation. -func (in *ClusterObservation) DeepCopy() *ClusterObservation { - if in == nil { - return nil - } - out := new(ClusterObservation) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ClusterParameters) DeepCopyInto(out *ClusterParameters) { - *out = *in - if in.Availability != nil { - in, out := &in.Availability, &out.Availability - *out = new(string) - **out = **in - } - if in.Basic != nil { - in, out := &in.Basic, &out.Basic - *out = make([]BasicParameters, len(*in)) - copy(*out, *in) - } - if in.Cloud != nil { - in, out := &in.Cloud, &out.Cloud - *out = new(string) - **out = **in - } - if in.Dedicated != nil { - in, out := &in.Dedicated, &out.Dedicated - *out = make([]DedicatedParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.DisplayName != nil { - in, out := &in.DisplayName, &out.DisplayName - *out = new(string) - **out = **in - } - if in.Environment != nil { - in, out := &in.Environment, &out.Environment - *out = make([]EnvironmentParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Network != nil { - in, out := &in.Network, &out.Network - *out = make([]NetworkParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Region != nil { - in, out := &in.Region, &out.Region - *out = new(string) - **out = **in - } - if in.Standard != nil { - in, out := &in.Standard, &out.Standard - *out = make([]StandardParameters, len(*in)) - copy(*out, *in) - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterParameters. -func (in *ClusterParameters) DeepCopy() *ClusterParameters { - if in == nil { - return nil - } - out := new(ClusterParameters) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ClusterSpec) DeepCopyInto(out *ClusterSpec) { - *out = *in - in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) - in.ForProvider.DeepCopyInto(&out.ForProvider) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterSpec. -func (in *ClusterSpec) DeepCopy() *ClusterSpec { - if in == nil { - return nil - } - out := new(ClusterSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ClusterStatus) DeepCopyInto(out *ClusterStatus) { - *out = *in - in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) - in.AtProvider.DeepCopyInto(&out.AtProvider) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterStatus. -func (in *ClusterStatus) DeepCopy() *ClusterStatus { - if in == nil { - return nil - } - out := new(ClusterStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CredentialsObservation) DeepCopyInto(out *CredentialsObservation) { - *out = *in -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CredentialsObservation. -func (in *CredentialsObservation) DeepCopy() *CredentialsObservation { - if in == nil { - return nil - } - out := new(CredentialsObservation) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CredentialsParameters) DeepCopyInto(out *CredentialsParameters) { - *out = *in - out.KeySecretRef = in.KeySecretRef - out.SecretSecretRef = in.SecretSecretRef -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CredentialsParameters. -func (in *CredentialsParameters) DeepCopy() *CredentialsParameters { - if in == nil { - return nil - } - out := new(CredentialsParameters) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DedicatedObservation) DeepCopyInto(out *DedicatedObservation) { - *out = *in - if in.Cku != nil { - in, out := &in.Cku, &out.Cku - *out = new(float64) - **out = **in - } - if in.EncryptionKey != nil { - in, out := &in.EncryptionKey, &out.EncryptionKey - *out = new(string) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DedicatedObservation. -func (in *DedicatedObservation) DeepCopy() *DedicatedObservation { - if in == nil { - return nil - } - out := new(DedicatedObservation) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DedicatedParameters) DeepCopyInto(out *DedicatedParameters) { - *out = *in - if in.Cku != nil { - in, out := &in.Cku, &out.Cku - *out = new(float64) - **out = **in - } - if in.EncryptionKey != nil { - in, out := &in.EncryptionKey, &out.EncryptionKey - *out = new(string) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DedicatedParameters. -func (in *DedicatedParameters) DeepCopy() *DedicatedParameters { - if in == nil { - return nil - } - out := new(DedicatedParameters) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EnvironmentObservation) DeepCopyInto(out *EnvironmentObservation) { - *out = *in - if in.ID != nil { - in, out := &in.ID, &out.ID - *out = new(string) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentObservation. -func (in *EnvironmentObservation) DeepCopy() *EnvironmentObservation { - if in == nil { - return nil - } - out := new(EnvironmentObservation) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EnvironmentParameters) DeepCopyInto(out *EnvironmentParameters) { - *out = *in - if in.ID != nil { - in, out := &in.ID, &out.ID - *out = new(string) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentParameters. -func (in *EnvironmentParameters) DeepCopy() *EnvironmentParameters { - if in == nil { - return nil - } - out := new(EnvironmentParameters) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *KafkaClusterObservation) DeepCopyInto(out *KafkaClusterObservation) { - *out = *in - if in.ID != nil { - in, out := &in.ID, &out.ID - *out = new(string) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KafkaClusterObservation. -func (in *KafkaClusterObservation) DeepCopy() *KafkaClusterObservation { - if in == nil { - return nil - } - out := new(KafkaClusterObservation) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *KafkaClusterParameters) DeepCopyInto(out *KafkaClusterParameters) { - *out = *in - if in.ID != nil { - in, out := &in.ID, &out.ID - *out = new(string) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KafkaClusterParameters. -func (in *KafkaClusterParameters) DeepCopy() *KafkaClusterParameters { - if in == nil { - return nil - } - out := new(KafkaClusterParameters) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *NetworkObservation) DeepCopyInto(out *NetworkObservation) { - *out = *in - if in.ID != nil { - in, out := &in.ID, &out.ID - *out = new(string) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkObservation. -func (in *NetworkObservation) DeepCopy() *NetworkObservation { - if in == nil { - return nil - } - out := new(NetworkObservation) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *NetworkParameters) DeepCopyInto(out *NetworkParameters) { - *out = *in - if in.ID != nil { - in, out := &in.ID, &out.ID - *out = new(string) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkParameters. -func (in *NetworkParameters) DeepCopy() *NetworkParameters { - if in == nil { - return nil - } - out := new(NetworkParameters) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *StandardObservation) DeepCopyInto(out *StandardObservation) { - *out = *in -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StandardObservation. -func (in *StandardObservation) DeepCopy() *StandardObservation { - if in == nil { - return nil - } - out := new(StandardObservation) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *StandardParameters) DeepCopyInto(out *StandardParameters) { - *out = *in -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StandardParameters. -func (in *StandardParameters) DeepCopy() *StandardParameters { - if in == nil { - return nil - } - out := new(StandardParameters) - in.DeepCopyInto(out) - return out -} diff --git a/apis/kafka/v1alpha1/zz_generated.managed.go b/apis/kafka/v1alpha1/zz_generated.managed.go deleted file mode 100644 index 6b0d0a7..0000000 --- a/apis/kafka/v1alpha1/zz_generated.managed.go +++ /dev/null @@ -1,236 +0,0 @@ -/* -Copyright 2022 Upbound Inc. -*/ -// Code generated by angryjet. DO NOT EDIT. - -package v1alpha1 - -import xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1" - -// GetCondition of this ACL. -func (mg *ACL) GetCondition(ct xpv1.ConditionType) xpv1.Condition { - return mg.Status.GetCondition(ct) -} - -// GetDeletionPolicy of this ACL. -func (mg *ACL) GetDeletionPolicy() xpv1.DeletionPolicy { - return mg.Spec.DeletionPolicy -} - -// GetManagementPolicy of this ACL. -func (mg *ACL) GetManagementPolicy() xpv1.ManagementPolicy { - return mg.Spec.ManagementPolicy -} - -// GetProviderConfigReference of this ACL. -func (mg *ACL) GetProviderConfigReference() *xpv1.Reference { - return mg.Spec.ProviderConfigReference -} - -/* -GetProviderReference of this ACL. -Deprecated: Use GetProviderConfigReference. -*/ -func (mg *ACL) GetProviderReference() *xpv1.Reference { - return mg.Spec.ProviderReference -} - -// GetPublishConnectionDetailsTo of this ACL. -func (mg *ACL) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { - return mg.Spec.PublishConnectionDetailsTo -} - -// GetWriteConnectionSecretToReference of this ACL. -func (mg *ACL) GetWriteConnectionSecretToReference() *xpv1.SecretReference { - return mg.Spec.WriteConnectionSecretToReference -} - -// SetConditions of this ACL. -func (mg *ACL) SetConditions(c ...xpv1.Condition) { - mg.Status.SetConditions(c...) -} - -// SetDeletionPolicy of this ACL. -func (mg *ACL) SetDeletionPolicy(r xpv1.DeletionPolicy) { - mg.Spec.DeletionPolicy = r -} - -// SetManagementPolicy of this ACL. -func (mg *ACL) SetManagementPolicy(r xpv1.ManagementPolicy) { - mg.Spec.ManagementPolicy = r -} - -// SetProviderConfigReference of this ACL. -func (mg *ACL) SetProviderConfigReference(r *xpv1.Reference) { - mg.Spec.ProviderConfigReference = r -} - -/* -SetProviderReference of this ACL. -Deprecated: Use SetProviderConfigReference. -*/ -func (mg *ACL) SetProviderReference(r *xpv1.Reference) { - mg.Spec.ProviderReference = r -} - -// SetPublishConnectionDetailsTo of this ACL. -func (mg *ACL) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { - mg.Spec.PublishConnectionDetailsTo = r -} - -// SetWriteConnectionSecretToReference of this ACL. -func (mg *ACL) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { - mg.Spec.WriteConnectionSecretToReference = r -} - -// GetCondition of this Cluster. -func (mg *Cluster) GetCondition(ct xpv1.ConditionType) xpv1.Condition { - return mg.Status.GetCondition(ct) -} - -// GetDeletionPolicy of this Cluster. -func (mg *Cluster) GetDeletionPolicy() xpv1.DeletionPolicy { - return mg.Spec.DeletionPolicy -} - -// GetManagementPolicy of this Cluster. -func (mg *Cluster) GetManagementPolicy() xpv1.ManagementPolicy { - return mg.Spec.ManagementPolicy -} - -// GetProviderConfigReference of this Cluster. -func (mg *Cluster) GetProviderConfigReference() *xpv1.Reference { - return mg.Spec.ProviderConfigReference -} - -/* -GetProviderReference of this Cluster. -Deprecated: Use GetProviderConfigReference. -*/ -func (mg *Cluster) GetProviderReference() *xpv1.Reference { - return mg.Spec.ProviderReference -} - -// GetPublishConnectionDetailsTo of this Cluster. -func (mg *Cluster) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { - return mg.Spec.PublishConnectionDetailsTo -} - -// GetWriteConnectionSecretToReference of this Cluster. -func (mg *Cluster) GetWriteConnectionSecretToReference() *xpv1.SecretReference { - return mg.Spec.WriteConnectionSecretToReference -} - -// SetConditions of this Cluster. -func (mg *Cluster) SetConditions(c ...xpv1.Condition) { - mg.Status.SetConditions(c...) -} - -// SetDeletionPolicy of this Cluster. -func (mg *Cluster) SetDeletionPolicy(r xpv1.DeletionPolicy) { - mg.Spec.DeletionPolicy = r -} - -// SetManagementPolicy of this Cluster. -func (mg *Cluster) SetManagementPolicy(r xpv1.ManagementPolicy) { - mg.Spec.ManagementPolicy = r -} - -// SetProviderConfigReference of this Cluster. -func (mg *Cluster) SetProviderConfigReference(r *xpv1.Reference) { - mg.Spec.ProviderConfigReference = r -} - -/* -SetProviderReference of this Cluster. -Deprecated: Use SetProviderConfigReference. -*/ -func (mg *Cluster) SetProviderReference(r *xpv1.Reference) { - mg.Spec.ProviderReference = r -} - -// SetPublishConnectionDetailsTo of this Cluster. -func (mg *Cluster) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { - mg.Spec.PublishConnectionDetailsTo = r -} - -// SetWriteConnectionSecretToReference of this Cluster. -func (mg *Cluster) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { - mg.Spec.WriteConnectionSecretToReference = r -} - -// GetCondition of this ClusterConfig. -func (mg *ClusterConfig) GetCondition(ct xpv1.ConditionType) xpv1.Condition { - return mg.Status.GetCondition(ct) -} - -// GetDeletionPolicy of this ClusterConfig. -func (mg *ClusterConfig) GetDeletionPolicy() xpv1.DeletionPolicy { - return mg.Spec.DeletionPolicy -} - -// GetManagementPolicy of this ClusterConfig. -func (mg *ClusterConfig) GetManagementPolicy() xpv1.ManagementPolicy { - return mg.Spec.ManagementPolicy -} - -// GetProviderConfigReference of this ClusterConfig. -func (mg *ClusterConfig) GetProviderConfigReference() *xpv1.Reference { - return mg.Spec.ProviderConfigReference -} - -/* -GetProviderReference of this ClusterConfig. -Deprecated: Use GetProviderConfigReference. -*/ -func (mg *ClusterConfig) GetProviderReference() *xpv1.Reference { - return mg.Spec.ProviderReference -} - -// GetPublishConnectionDetailsTo of this ClusterConfig. -func (mg *ClusterConfig) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { - return mg.Spec.PublishConnectionDetailsTo -} - -// GetWriteConnectionSecretToReference of this ClusterConfig. -func (mg *ClusterConfig) GetWriteConnectionSecretToReference() *xpv1.SecretReference { - return mg.Spec.WriteConnectionSecretToReference -} - -// SetConditions of this ClusterConfig. -func (mg *ClusterConfig) SetConditions(c ...xpv1.Condition) { - mg.Status.SetConditions(c...) -} - -// SetDeletionPolicy of this ClusterConfig. -func (mg *ClusterConfig) SetDeletionPolicy(r xpv1.DeletionPolicy) { - mg.Spec.DeletionPolicy = r -} - -// SetManagementPolicy of this ClusterConfig. -func (mg *ClusterConfig) SetManagementPolicy(r xpv1.ManagementPolicy) { - mg.Spec.ManagementPolicy = r -} - -// SetProviderConfigReference of this ClusterConfig. -func (mg *ClusterConfig) SetProviderConfigReference(r *xpv1.Reference) { - mg.Spec.ProviderConfigReference = r -} - -/* -SetProviderReference of this ClusterConfig. -Deprecated: Use SetProviderConfigReference. -*/ -func (mg *ClusterConfig) SetProviderReference(r *xpv1.Reference) { - mg.Spec.ProviderReference = r -} - -// SetPublishConnectionDetailsTo of this ClusterConfig. -func (mg *ClusterConfig) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { - mg.Spec.PublishConnectionDetailsTo = r -} - -// SetWriteConnectionSecretToReference of this ClusterConfig. -func (mg *ClusterConfig) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { - mg.Spec.WriteConnectionSecretToReference = r -} diff --git a/apis/kafka/v1alpha1/zz_generated.managedlist.go b/apis/kafka/v1alpha1/zz_generated.managedlist.go deleted file mode 100644 index 7dbbf9c..0000000 --- a/apis/kafka/v1alpha1/zz_generated.managedlist.go +++ /dev/null @@ -1,35 +0,0 @@ -/* -Copyright 2022 Upbound Inc. -*/ -// Code generated by angryjet. DO NOT EDIT. - -package v1alpha1 - -import resource "github.com/crossplane/crossplane-runtime/pkg/resource" - -// GetItems of this ACLList. -func (l *ACLList) GetItems() []resource.Managed { - items := make([]resource.Managed, len(l.Items)) - for i := range l.Items { - items[i] = &l.Items[i] - } - return items -} - -// GetItems of this ClusterConfigList. -func (l *ClusterConfigList) GetItems() []resource.Managed { - items := make([]resource.Managed, len(l.Items)) - for i := range l.Items { - items[i] = &l.Items[i] - } - return items -} - -// GetItems of this ClusterList. -func (l *ClusterList) GetItems() []resource.Managed { - items := make([]resource.Managed, len(l.Items)) - for i := range l.Items { - items[i] = &l.Items[i] - } - return items -} diff --git a/apis/kafka/v1alpha1/zz_generated_terraformed.go b/apis/kafka/v1alpha1/zz_generated_terraformed.go deleted file mode 100755 index 56120ab..0000000 --- a/apis/kafka/v1alpha1/zz_generated_terraformed.go +++ /dev/null @@ -1,236 +0,0 @@ -/* -Copyright 2022 Upbound Inc. -*/ - -// Code generated by upjet. DO NOT EDIT. - -package v1alpha1 - -import ( - "github.com/pkg/errors" - - "github.com/upbound/upjet/pkg/resource" - "github.com/upbound/upjet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this ACL -func (mg *ACL) GetTerraformResourceType() string { - return "confluent_kafka_acl" -} - -// GetConnectionDetailsMapping for this ACL -func (tr *ACL) GetConnectionDetailsMapping() map[string]string { - return map[string]string{"credentials[*].key": "spec.forProvider.credentials[*].keySecretRef", "credentials[*].secret": "spec.forProvider.credentials[*].secretSecretRef"} -} - -// GetObservation of this ACL -func (tr *ACL) GetObservation() (map[string]any, error) { - o, err := json.TFParser.Marshal(tr.Status.AtProvider) - if err != nil { - return nil, err - } - base := map[string]any{} - return base, json.TFParser.Unmarshal(o, &base) -} - -// SetObservation for this ACL -func (tr *ACL) SetObservation(obs map[string]any) error { - p, err := json.TFParser.Marshal(obs) - if err != nil { - return err - } - return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) -} - -// GetID returns ID of underlying Terraform resource of this ACL -func (tr *ACL) GetID() string { - if tr.Status.AtProvider.ID == nil { - return "" - } - return *tr.Status.AtProvider.ID -} - -// GetParameters of this ACL -func (tr *ACL) GetParameters() (map[string]any, error) { - p, err := json.TFParser.Marshal(tr.Spec.ForProvider) - if err != nil { - return nil, err - } - base := map[string]any{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this ACL -func (tr *ACL) SetParameters(params map[string]any) error { - p, err := json.TFParser.Marshal(params) - if err != nil { - return err - } - return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) -} - -// LateInitialize this ACL using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *ACL) LateInitialize(attrs []byte) (bool, error) { - params := &ACLParameters{} - if err := json.TFParser.Unmarshal(attrs, params); err != nil { - return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") - } - opts := []resource.GenericLateInitializerOption{resource.WithZeroValueJSONOmitEmptyFilter(resource.CNameWildcard)} - - li := resource.NewGenericLateInitializer(opts...) - return li.LateInitialize(&tr.Spec.ForProvider, params) -} - -// GetTerraformSchemaVersion returns the associated Terraform schema version -func (tr *ACL) GetTerraformSchemaVersion() int { - return 2 -} - -// GetTerraformResourceType returns Terraform resource type for this Cluster -func (mg *Cluster) GetTerraformResourceType() string { - return "confluent_kafka_cluster" -} - -// GetConnectionDetailsMapping for this Cluster -func (tr *Cluster) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// GetObservation of this Cluster -func (tr *Cluster) GetObservation() (map[string]any, error) { - o, err := json.TFParser.Marshal(tr.Status.AtProvider) - if err != nil { - return nil, err - } - base := map[string]any{} - return base, json.TFParser.Unmarshal(o, &base) -} - -// SetObservation for this Cluster -func (tr *Cluster) SetObservation(obs map[string]any) error { - p, err := json.TFParser.Marshal(obs) - if err != nil { - return err - } - return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) -} - -// GetID returns ID of underlying Terraform resource of this Cluster -func (tr *Cluster) GetID() string { - if tr.Status.AtProvider.ID == nil { - return "" - } - return *tr.Status.AtProvider.ID -} - -// GetParameters of this Cluster -func (tr *Cluster) GetParameters() (map[string]any, error) { - p, err := json.TFParser.Marshal(tr.Spec.ForProvider) - if err != nil { - return nil, err - } - base := map[string]any{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this Cluster -func (tr *Cluster) SetParameters(params map[string]any) error { - p, err := json.TFParser.Marshal(params) - if err != nil { - return err - } - return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) -} - -// LateInitialize this Cluster using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *Cluster) LateInitialize(attrs []byte) (bool, error) { - params := &ClusterParameters{} - if err := json.TFParser.Unmarshal(attrs, params); err != nil { - return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") - } - opts := []resource.GenericLateInitializerOption{resource.WithZeroValueJSONOmitEmptyFilter(resource.CNameWildcard)} - - li := resource.NewGenericLateInitializer(opts...) - return li.LateInitialize(&tr.Spec.ForProvider, params) -} - -// GetTerraformSchemaVersion returns the associated Terraform schema version -func (tr *Cluster) GetTerraformSchemaVersion() int { - return 1 -} - -// GetTerraformResourceType returns Terraform resource type for this ClusterConfig -func (mg *ClusterConfig) GetTerraformResourceType() string { - return "confluent_kafka_cluster_config" -} - -// GetConnectionDetailsMapping for this ClusterConfig -func (tr *ClusterConfig) GetConnectionDetailsMapping() map[string]string { - return map[string]string{"credentials[*].key": "spec.forProvider.credentials[*].keySecretRef", "credentials[*].secret": "spec.forProvider.credentials[*].secretSecretRef"} -} - -// GetObservation of this ClusterConfig -func (tr *ClusterConfig) GetObservation() (map[string]any, error) { - o, err := json.TFParser.Marshal(tr.Status.AtProvider) - if err != nil { - return nil, err - } - base := map[string]any{} - return base, json.TFParser.Unmarshal(o, &base) -} - -// SetObservation for this ClusterConfig -func (tr *ClusterConfig) SetObservation(obs map[string]any) error { - p, err := json.TFParser.Marshal(obs) - if err != nil { - return err - } - return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) -} - -// GetID returns ID of underlying Terraform resource of this ClusterConfig -func (tr *ClusterConfig) GetID() string { - if tr.Status.AtProvider.ID == nil { - return "" - } - return *tr.Status.AtProvider.ID -} - -// GetParameters of this ClusterConfig -func (tr *ClusterConfig) GetParameters() (map[string]any, error) { - p, err := json.TFParser.Marshal(tr.Spec.ForProvider) - if err != nil { - return nil, err - } - base := map[string]any{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this ClusterConfig -func (tr *ClusterConfig) SetParameters(params map[string]any) error { - p, err := json.TFParser.Marshal(params) - if err != nil { - return err - } - return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) -} - -// LateInitialize this ClusterConfig using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *ClusterConfig) LateInitialize(attrs []byte) (bool, error) { - params := &ClusterConfigParameters{} - if err := json.TFParser.Unmarshal(attrs, params); err != nil { - return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") - } - opts := []resource.GenericLateInitializerOption{resource.WithZeroValueJSONOmitEmptyFilter(resource.CNameWildcard)} - - li := resource.NewGenericLateInitializer(opts...) - return li.LateInitialize(&tr.Spec.ForProvider, params) -} - -// GetTerraformSchemaVersion returns the associated Terraform schema version -func (tr *ClusterConfig) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/kafka/v1alpha1/zz_groupversion_info.go b/apis/kafka/v1alpha1/zz_groupversion_info.go deleted file mode 100755 index 9408c3d..0000000 --- a/apis/kafka/v1alpha1/zz_groupversion_info.go +++ /dev/null @@ -1,32 +0,0 @@ -/* -Copyright 2022 Upbound Inc. -*/ - -// Code generated by upjet. DO NOT EDIT. - -// +kubebuilder:object:generate=true -// +groupName=kafka.crossplane.io -// +versionName=v1alpha1 -package v1alpha1 - -import ( - "k8s.io/apimachinery/pkg/runtime/schema" - "sigs.k8s.io/controller-runtime/pkg/scheme" -) - -// Package type metadata. -const ( - CRDGroup = "kafka.crossplane.io" - CRDVersion = "v1alpha1" -) - -var ( - // CRDGroupVersion is the API Group Version used to register the objects - CRDGroupVersion = schema.GroupVersion{Group: CRDGroup, Version: CRDVersion} - - // SchemeBuilder is used to add go types to the GroupVersionKind scheme - SchemeBuilder = &scheme.Builder{GroupVersion: CRDGroupVersion} - - // AddToScheme adds the types in this group-version to the given scheme. - AddToScheme = SchemeBuilder.AddToScheme -) diff --git a/apis/role/v1alpha1/zz_generated.deepcopy.go b/apis/role/v1alpha1/zz_generated.deepcopy.go deleted file mode 100644 index ecfbdba..0000000 --- a/apis/role/v1alpha1/zz_generated.deepcopy.go +++ /dev/null @@ -1,172 +0,0 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - -/* -Copyright 2022 Upbound Inc. -*/ - -// Code generated by controller-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - runtime "k8s.io/apimachinery/pkg/runtime" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Binding) DeepCopyInto(out *Binding) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Binding. -func (in *Binding) DeepCopy() *Binding { - if in == nil { - return nil - } - out := new(Binding) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Binding) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *BindingList) DeepCopyInto(out *BindingList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]Binding, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BindingList. -func (in *BindingList) DeepCopy() *BindingList { - if in == nil { - return nil - } - out := new(BindingList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *BindingList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *BindingObservation) DeepCopyInto(out *BindingObservation) { - *out = *in - if in.CrnPattern != nil { - in, out := &in.CrnPattern, &out.CrnPattern - *out = new(string) - **out = **in - } - if in.ID != nil { - in, out := &in.ID, &out.ID - *out = new(string) - **out = **in - } - if in.Principal != nil { - in, out := &in.Principal, &out.Principal - *out = new(string) - **out = **in - } - if in.RoleName != nil { - in, out := &in.RoleName, &out.RoleName - *out = new(string) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BindingObservation. -func (in *BindingObservation) DeepCopy() *BindingObservation { - if in == nil { - return nil - } - out := new(BindingObservation) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *BindingParameters) DeepCopyInto(out *BindingParameters) { - *out = *in - if in.CrnPattern != nil { - in, out := &in.CrnPattern, &out.CrnPattern - *out = new(string) - **out = **in - } - if in.Principal != nil { - in, out := &in.Principal, &out.Principal - *out = new(string) - **out = **in - } - if in.RoleName != nil { - in, out := &in.RoleName, &out.RoleName - *out = new(string) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BindingParameters. -func (in *BindingParameters) DeepCopy() *BindingParameters { - if in == nil { - return nil - } - out := new(BindingParameters) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *BindingSpec) DeepCopyInto(out *BindingSpec) { - *out = *in - in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) - in.ForProvider.DeepCopyInto(&out.ForProvider) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BindingSpec. -func (in *BindingSpec) DeepCopy() *BindingSpec { - if in == nil { - return nil - } - out := new(BindingSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *BindingStatus) DeepCopyInto(out *BindingStatus) { - *out = *in - in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) - in.AtProvider.DeepCopyInto(&out.AtProvider) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BindingStatus. -func (in *BindingStatus) DeepCopy() *BindingStatus { - if in == nil { - return nil - } - out := new(BindingStatus) - in.DeepCopyInto(out) - return out -} diff --git a/apis/role/v1alpha1/zz_generated.managed.go b/apis/role/v1alpha1/zz_generated.managed.go deleted file mode 100644 index b28e74b..0000000 --- a/apis/role/v1alpha1/zz_generated.managed.go +++ /dev/null @@ -1,84 +0,0 @@ -/* -Copyright 2022 Upbound Inc. -*/ -// Code generated by angryjet. DO NOT EDIT. - -package v1alpha1 - -import xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1" - -// GetCondition of this Binding. -func (mg *Binding) GetCondition(ct xpv1.ConditionType) xpv1.Condition { - return mg.Status.GetCondition(ct) -} - -// GetDeletionPolicy of this Binding. -func (mg *Binding) GetDeletionPolicy() xpv1.DeletionPolicy { - return mg.Spec.DeletionPolicy -} - -// GetManagementPolicy of this Binding. -func (mg *Binding) GetManagementPolicy() xpv1.ManagementPolicy { - return mg.Spec.ManagementPolicy -} - -// GetProviderConfigReference of this Binding. -func (mg *Binding) GetProviderConfigReference() *xpv1.Reference { - return mg.Spec.ProviderConfigReference -} - -/* -GetProviderReference of this Binding. -Deprecated: Use GetProviderConfigReference. -*/ -func (mg *Binding) GetProviderReference() *xpv1.Reference { - return mg.Spec.ProviderReference -} - -// GetPublishConnectionDetailsTo of this Binding. -func (mg *Binding) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { - return mg.Spec.PublishConnectionDetailsTo -} - -// GetWriteConnectionSecretToReference of this Binding. -func (mg *Binding) GetWriteConnectionSecretToReference() *xpv1.SecretReference { - return mg.Spec.WriteConnectionSecretToReference -} - -// SetConditions of this Binding. -func (mg *Binding) SetConditions(c ...xpv1.Condition) { - mg.Status.SetConditions(c...) -} - -// SetDeletionPolicy of this Binding. -func (mg *Binding) SetDeletionPolicy(r xpv1.DeletionPolicy) { - mg.Spec.DeletionPolicy = r -} - -// SetManagementPolicy of this Binding. -func (mg *Binding) SetManagementPolicy(r xpv1.ManagementPolicy) { - mg.Spec.ManagementPolicy = r -} - -// SetProviderConfigReference of this Binding. -func (mg *Binding) SetProviderConfigReference(r *xpv1.Reference) { - mg.Spec.ProviderConfigReference = r -} - -/* -SetProviderReference of this Binding. -Deprecated: Use SetProviderConfigReference. -*/ -func (mg *Binding) SetProviderReference(r *xpv1.Reference) { - mg.Spec.ProviderReference = r -} - -// SetPublishConnectionDetailsTo of this Binding. -func (mg *Binding) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { - mg.Spec.PublishConnectionDetailsTo = r -} - -// SetWriteConnectionSecretToReference of this Binding. -func (mg *Binding) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { - mg.Spec.WriteConnectionSecretToReference = r -} diff --git a/apis/role/v1alpha1/zz_generated.managedlist.go b/apis/role/v1alpha1/zz_generated.managedlist.go deleted file mode 100644 index 68e9d26..0000000 --- a/apis/role/v1alpha1/zz_generated.managedlist.go +++ /dev/null @@ -1,17 +0,0 @@ -/* -Copyright 2022 Upbound Inc. -*/ -// Code generated by angryjet. DO NOT EDIT. - -package v1alpha1 - -import resource "github.com/crossplane/crossplane-runtime/pkg/resource" - -// GetItems of this BindingList. -func (l *BindingList) GetItems() []resource.Managed { - items := make([]resource.Managed, len(l.Items)) - for i := range l.Items { - items[i] = &l.Items[i] - } - return items -} diff --git a/apis/role/v1alpha1/zz_generated_terraformed.go b/apis/role/v1alpha1/zz_generated_terraformed.go deleted file mode 100755 index 37d6ff2..0000000 --- a/apis/role/v1alpha1/zz_generated_terraformed.go +++ /dev/null @@ -1,88 +0,0 @@ -/* -Copyright 2022 Upbound Inc. -*/ - -// Code generated by upjet. DO NOT EDIT. - -package v1alpha1 - -import ( - "github.com/pkg/errors" - - "github.com/upbound/upjet/pkg/resource" - "github.com/upbound/upjet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this Binding -func (mg *Binding) GetTerraformResourceType() string { - return "confluent_role_binding" -} - -// GetConnectionDetailsMapping for this Binding -func (tr *Binding) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// GetObservation of this Binding -func (tr *Binding) GetObservation() (map[string]any, error) { - o, err := json.TFParser.Marshal(tr.Status.AtProvider) - if err != nil { - return nil, err - } - base := map[string]any{} - return base, json.TFParser.Unmarshal(o, &base) -} - -// SetObservation for this Binding -func (tr *Binding) SetObservation(obs map[string]any) error { - p, err := json.TFParser.Marshal(obs) - if err != nil { - return err - } - return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) -} - -// GetID returns ID of underlying Terraform resource of this Binding -func (tr *Binding) GetID() string { - if tr.Status.AtProvider.ID == nil { - return "" - } - return *tr.Status.AtProvider.ID -} - -// GetParameters of this Binding -func (tr *Binding) GetParameters() (map[string]any, error) { - p, err := json.TFParser.Marshal(tr.Spec.ForProvider) - if err != nil { - return nil, err - } - base := map[string]any{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this Binding -func (tr *Binding) SetParameters(params map[string]any) error { - p, err := json.TFParser.Marshal(params) - if err != nil { - return err - } - return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) -} - -// LateInitialize this Binding using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *Binding) LateInitialize(attrs []byte) (bool, error) { - params := &BindingParameters{} - if err := json.TFParser.Unmarshal(attrs, params); err != nil { - return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") - } - opts := []resource.GenericLateInitializerOption{resource.WithZeroValueJSONOmitEmptyFilter(resource.CNameWildcard)} - - li := resource.NewGenericLateInitializer(opts...) - return li.LateInitialize(&tr.Spec.ForProvider, params) -} - -// GetTerraformSchemaVersion returns the associated Terraform schema version -func (tr *Binding) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/role/v1alpha1/zz_groupversion_info.go b/apis/role/v1alpha1/zz_groupversion_info.go deleted file mode 100755 index 01af4f5..0000000 --- a/apis/role/v1alpha1/zz_groupversion_info.go +++ /dev/null @@ -1,32 +0,0 @@ -/* -Copyright 2022 Upbound Inc. -*/ - -// Code generated by upjet. DO NOT EDIT. - -// +kubebuilder:object:generate=true -// +groupName=role.crossplane.io -// +versionName=v1alpha1 -package v1alpha1 - -import ( - "k8s.io/apimachinery/pkg/runtime/schema" - "sigs.k8s.io/controller-runtime/pkg/scheme" -) - -// Package type metadata. -const ( - CRDGroup = "role.crossplane.io" - CRDVersion = "v1alpha1" -) - -var ( - // CRDGroupVersion is the API Group Version used to register the objects - CRDGroupVersion = schema.GroupVersion{Group: CRDGroup, Version: CRDVersion} - - // SchemeBuilder is used to add go types to the GroupVersionKind scheme - SchemeBuilder = &scheme.Builder{GroupVersion: CRDGroupVersion} - - // AddToScheme adds the types in this group-version to the given scheme. - AddToScheme = SchemeBuilder.AddToScheme -) diff --git a/apis/service/v1alpha1/zz_generated.deepcopy.go b/apis/service/v1alpha1/zz_generated.deepcopy.go deleted file mode 100644 index 22c10e6..0000000 --- a/apis/service/v1alpha1/zz_generated.deepcopy.go +++ /dev/null @@ -1,172 +0,0 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - -/* -Copyright 2022 Upbound Inc. -*/ - -// Code generated by controller-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - runtime "k8s.io/apimachinery/pkg/runtime" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Account) DeepCopyInto(out *Account) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Account. -func (in *Account) DeepCopy() *Account { - if in == nil { - return nil - } - out := new(Account) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Account) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AccountList) DeepCopyInto(out *AccountList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]Account, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AccountList. -func (in *AccountList) DeepCopy() *AccountList { - if in == nil { - return nil - } - out := new(AccountList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *AccountList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AccountObservation) DeepCopyInto(out *AccountObservation) { - *out = *in - if in.APIVersion != nil { - in, out := &in.APIVersion, &out.APIVersion - *out = new(string) - **out = **in - } - if in.Description != nil { - in, out := &in.Description, &out.Description - *out = new(string) - **out = **in - } - if in.DisplayName != nil { - in, out := &in.DisplayName, &out.DisplayName - *out = new(string) - **out = **in - } - if in.ID != nil { - in, out := &in.ID, &out.ID - *out = new(string) - **out = **in - } - if in.Kind != nil { - in, out := &in.Kind, &out.Kind - *out = new(string) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AccountObservation. -func (in *AccountObservation) DeepCopy() *AccountObservation { - if in == nil { - return nil - } - out := new(AccountObservation) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AccountParameters) DeepCopyInto(out *AccountParameters) { - *out = *in - if in.Description != nil { - in, out := &in.Description, &out.Description - *out = new(string) - **out = **in - } - if in.DisplayName != nil { - in, out := &in.DisplayName, &out.DisplayName - *out = new(string) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AccountParameters. -func (in *AccountParameters) DeepCopy() *AccountParameters { - if in == nil { - return nil - } - out := new(AccountParameters) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AccountSpec) DeepCopyInto(out *AccountSpec) { - *out = *in - in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) - in.ForProvider.DeepCopyInto(&out.ForProvider) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AccountSpec. -func (in *AccountSpec) DeepCopy() *AccountSpec { - if in == nil { - return nil - } - out := new(AccountSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AccountStatus) DeepCopyInto(out *AccountStatus) { - *out = *in - in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) - in.AtProvider.DeepCopyInto(&out.AtProvider) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AccountStatus. -func (in *AccountStatus) DeepCopy() *AccountStatus { - if in == nil { - return nil - } - out := new(AccountStatus) - in.DeepCopyInto(out) - return out -} diff --git a/apis/service/v1alpha1/zz_generated.managed.go b/apis/service/v1alpha1/zz_generated.managed.go deleted file mode 100644 index e4aba79..0000000 --- a/apis/service/v1alpha1/zz_generated.managed.go +++ /dev/null @@ -1,84 +0,0 @@ -/* -Copyright 2022 Upbound Inc. -*/ -// Code generated by angryjet. DO NOT EDIT. - -package v1alpha1 - -import xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1" - -// GetCondition of this Account. -func (mg *Account) GetCondition(ct xpv1.ConditionType) xpv1.Condition { - return mg.Status.GetCondition(ct) -} - -// GetDeletionPolicy of this Account. -func (mg *Account) GetDeletionPolicy() xpv1.DeletionPolicy { - return mg.Spec.DeletionPolicy -} - -// GetManagementPolicy of this Account. -func (mg *Account) GetManagementPolicy() xpv1.ManagementPolicy { - return mg.Spec.ManagementPolicy -} - -// GetProviderConfigReference of this Account. -func (mg *Account) GetProviderConfigReference() *xpv1.Reference { - return mg.Spec.ProviderConfigReference -} - -/* -GetProviderReference of this Account. -Deprecated: Use GetProviderConfigReference. -*/ -func (mg *Account) GetProviderReference() *xpv1.Reference { - return mg.Spec.ProviderReference -} - -// GetPublishConnectionDetailsTo of this Account. -func (mg *Account) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { - return mg.Spec.PublishConnectionDetailsTo -} - -// GetWriteConnectionSecretToReference of this Account. -func (mg *Account) GetWriteConnectionSecretToReference() *xpv1.SecretReference { - return mg.Spec.WriteConnectionSecretToReference -} - -// SetConditions of this Account. -func (mg *Account) SetConditions(c ...xpv1.Condition) { - mg.Status.SetConditions(c...) -} - -// SetDeletionPolicy of this Account. -func (mg *Account) SetDeletionPolicy(r xpv1.DeletionPolicy) { - mg.Spec.DeletionPolicy = r -} - -// SetManagementPolicy of this Account. -func (mg *Account) SetManagementPolicy(r xpv1.ManagementPolicy) { - mg.Spec.ManagementPolicy = r -} - -// SetProviderConfigReference of this Account. -func (mg *Account) SetProviderConfigReference(r *xpv1.Reference) { - mg.Spec.ProviderConfigReference = r -} - -/* -SetProviderReference of this Account. -Deprecated: Use SetProviderConfigReference. -*/ -func (mg *Account) SetProviderReference(r *xpv1.Reference) { - mg.Spec.ProviderReference = r -} - -// SetPublishConnectionDetailsTo of this Account. -func (mg *Account) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { - mg.Spec.PublishConnectionDetailsTo = r -} - -// SetWriteConnectionSecretToReference of this Account. -func (mg *Account) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { - mg.Spec.WriteConnectionSecretToReference = r -} diff --git a/apis/service/v1alpha1/zz_generated.managedlist.go b/apis/service/v1alpha1/zz_generated.managedlist.go deleted file mode 100644 index f451b33..0000000 --- a/apis/service/v1alpha1/zz_generated.managedlist.go +++ /dev/null @@ -1,17 +0,0 @@ -/* -Copyright 2022 Upbound Inc. -*/ -// Code generated by angryjet. DO NOT EDIT. - -package v1alpha1 - -import resource "github.com/crossplane/crossplane-runtime/pkg/resource" - -// GetItems of this AccountList. -func (l *AccountList) GetItems() []resource.Managed { - items := make([]resource.Managed, len(l.Items)) - for i := range l.Items { - items[i] = &l.Items[i] - } - return items -} diff --git a/apis/service/v1alpha1/zz_generated_terraformed.go b/apis/service/v1alpha1/zz_generated_terraformed.go deleted file mode 100755 index fe68973..0000000 --- a/apis/service/v1alpha1/zz_generated_terraformed.go +++ /dev/null @@ -1,88 +0,0 @@ -/* -Copyright 2022 Upbound Inc. -*/ - -// Code generated by upjet. DO NOT EDIT. - -package v1alpha1 - -import ( - "github.com/pkg/errors" - - "github.com/upbound/upjet/pkg/resource" - "github.com/upbound/upjet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this Account -func (mg *Account) GetTerraformResourceType() string { - return "confluent_service_account" -} - -// GetConnectionDetailsMapping for this Account -func (tr *Account) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// GetObservation of this Account -func (tr *Account) GetObservation() (map[string]any, error) { - o, err := json.TFParser.Marshal(tr.Status.AtProvider) - if err != nil { - return nil, err - } - base := map[string]any{} - return base, json.TFParser.Unmarshal(o, &base) -} - -// SetObservation for this Account -func (tr *Account) SetObservation(obs map[string]any) error { - p, err := json.TFParser.Marshal(obs) - if err != nil { - return err - } - return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) -} - -// GetID returns ID of underlying Terraform resource of this Account -func (tr *Account) GetID() string { - if tr.Status.AtProvider.ID == nil { - return "" - } - return *tr.Status.AtProvider.ID -} - -// GetParameters of this Account -func (tr *Account) GetParameters() (map[string]any, error) { - p, err := json.TFParser.Marshal(tr.Spec.ForProvider) - if err != nil { - return nil, err - } - base := map[string]any{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this Account -func (tr *Account) SetParameters(params map[string]any) error { - p, err := json.TFParser.Marshal(params) - if err != nil { - return err - } - return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) -} - -// LateInitialize this Account using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *Account) LateInitialize(attrs []byte) (bool, error) { - params := &AccountParameters{} - if err := json.TFParser.Unmarshal(attrs, params); err != nil { - return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") - } - opts := []resource.GenericLateInitializerOption{resource.WithZeroValueJSONOmitEmptyFilter(resource.CNameWildcard)} - - li := resource.NewGenericLateInitializer(opts...) - return li.LateInitialize(&tr.Spec.ForProvider, params) -} - -// GetTerraformSchemaVersion returns the associated Terraform schema version -func (tr *Account) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/service/v1alpha1/zz_groupversion_info.go b/apis/service/v1alpha1/zz_groupversion_info.go deleted file mode 100755 index d9effa2..0000000 --- a/apis/service/v1alpha1/zz_groupversion_info.go +++ /dev/null @@ -1,32 +0,0 @@ -/* -Copyright 2022 Upbound Inc. -*/ - -// Code generated by upjet. DO NOT EDIT. - -// +kubebuilder:object:generate=true -// +groupName=service.crossplane.io -// +versionName=v1alpha1 -package v1alpha1 - -import ( - "k8s.io/apimachinery/pkg/runtime/schema" - "sigs.k8s.io/controller-runtime/pkg/scheme" -) - -// Package type metadata. -const ( - CRDGroup = "service.crossplane.io" - CRDVersion = "v1alpha1" -) - -var ( - // CRDGroupVersion is the API Group Version used to register the objects - CRDGroupVersion = schema.GroupVersion{Group: CRDGroup, Version: CRDVersion} - - // SchemeBuilder is used to add go types to the GroupVersionKind scheme - SchemeBuilder = &scheme.Builder{GroupVersion: CRDGroupVersion} - - // AddToScheme adds the types in this group-version to the given scheme. - AddToScheme = SchemeBuilder.AddToScheme -) diff --git a/apis/zz_register.go b/apis/zz_register.go index d37d657..0d5dccc 100755 --- a/apis/zz_register.go +++ b/apis/zz_register.go @@ -10,11 +10,7 @@ package apis import ( "k8s.io/apimachinery/pkg/runtime" - v1alpha1 "github.com/crossplane-contrib/provider-confluent/apis/api/v1alpha1" - v1alpha1confluent "github.com/crossplane-contrib/provider-confluent/apis/confluent/v1alpha1" - v1alpha1kafka "github.com/crossplane-contrib/provider-confluent/apis/kafka/v1alpha1" - v1alpha1role "github.com/crossplane-contrib/provider-confluent/apis/role/v1alpha1" - v1alpha1service "github.com/crossplane-contrib/provider-confluent/apis/service/v1alpha1" + v1alpha1 "github.com/crossplane-contrib/provider-confluent/apis/confluent/v1alpha1" v1alpha1apis "github.com/crossplane-contrib/provider-confluent/apis/v1alpha1" v1beta1 "github.com/crossplane-contrib/provider-confluent/apis/v1beta1" ) @@ -23,10 +19,6 @@ func init() { // Register the types with the Scheme so the components can map objects to GroupVersionKinds and back AddToSchemes = append(AddToSchemes, v1alpha1.SchemeBuilder.AddToScheme, - v1alpha1confluent.SchemeBuilder.AddToScheme, - v1alpha1kafka.SchemeBuilder.AddToScheme, - v1alpha1role.SchemeBuilder.AddToScheme, - v1alpha1service.SchemeBuilder.AddToScheme, v1alpha1apis.SchemeBuilder.AddToScheme, v1beta1.SchemeBuilder.AddToScheme, ) diff --git a/cluster/local/integration_tests.sh b/cluster/local/integration_tests.sh new file mode 100755 index 0000000..8133c34 --- /dev/null +++ b/cluster/local/integration_tests.sh @@ -0,0 +1,196 @@ +#!/usr/bin/env bash +set -e + +# setting up colors +BLU='\033[0;34m' +YLW='\033[0;33m' +GRN='\033[0;32m' +RED='\033[0;31m' +NOC='\033[0m' # No Color +echo_info(){ + printf "\n${BLU}%s${NOC}" "$1" +} +echo_step(){ + printf "\n${BLU}>>>>>>> %s${NOC}\n" "$1" +} +echo_sub_step(){ + printf "\n${BLU}>>> %s${NOC}\n" "$1" +} + +echo_step_completed(){ + printf "${GRN} [✔]${NOC}" +} + +echo_success(){ + printf "\n${GRN}%s${NOC}\n" "$1" +} +echo_warn(){ + printf "\n${YLW}%s${NOC}" "$1" +} +echo_error(){ + printf "\n${RED}%s${NOC}" "$1" + exit 1 +} + +# ------------------------------ +projectdir="$( cd "$( dirname "${BASH_SOURCE[0]}")"/../.. && pwd )" + +# get the build environment variables from the special build.vars target in the main makefile +eval $(make --no-print-directory -C ${projectdir} build.vars) + +# ------------------------------ + +SAFEHOSTARCH="${SAFEHOSTARCH:-amd64}" +CONTROLLER_IMAGE="${BUILD_REGISTRY}/${PROJECT_NAME}-${SAFEHOSTARCH}" + +# tag as latest version to load into kind cluster +K8S_CLUSTER="${K8S_CLUSTER:-${BUILD_REGISTRY}-inttests}" + +CROSSPLANE_NAMESPACE="crossplane-system" +PACKAGE_NAME="provider-confluent" + +# cleanup on exit +if [ "$skipcleanup" != true ]; then + function cleanup { + echo_step "Cleaning up..." + export KUBECONFIG= + "${KIND}" delete cluster --name="${K8S_CLUSTER}" + } + + trap cleanup EXIT +fi + +# setup package cache +echo_step "setting up local package cache" +CACHE_PATH="${projectdir}/.work/inttest-package-cache" +mkdir -p "${CACHE_PATH}" +echo "created cache dir at ${CACHE_PATH}" +"${UP}" alpha xpkg xp-extract --from-xpkg "${OUTPUT_DIR}"/xpkg/linux_"${SAFEHOSTARCH}"/"${PACKAGE_NAME}"-"${VERSION}".xpkg -o "${CACHE_PATH}/${PACKAGE_NAME}.gz" && chmod 644 "${CACHE_PATH}/${PACKAGE_NAME}.gz" + +# create kind cluster with extra mounts +KIND_NODE_IMAGE="kindest/node:${KIND_NODE_IMAGE_TAG}" +echo_step "creating k8s cluster using kind ${KIND_VERSION} and node image ${KIND_NODE_IMAGE}" +KIND_CONFIG="$( cat < + description: APIKey is the Schema for the APIKeys API. properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -50,7 +50,7 @@ spec: metadata: type: object spec: - description: KeySpec defines the desired state of Key + description: APIKeySpec defines the desired state of APIKey properties: deletionPolicy: default: Delete @@ -92,20 +92,173 @@ spec: id: description: The unique identifier for the environment. type: string - required: - - id + idRef: + description: Reference to a Environment to populate + id. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: Resolution specifies whether + resolution of this reference is required. + The default is 'Required', which means the + reconcile will fail if the reference cannot + be resolved. 'Optional' means this reference + will be a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: Resolve specifies when this reference + should be resolved. The default is 'IfNotPresent', + which will attempt to resolve the reference + only when the corresponding field is not + present. Use 'Always' to resolve the reference + on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + idSelector: + description: Selector for a Environment to populate + id. + properties: + matchControllerRef: + description: MatchControllerRef ensures an object + with the same controller reference as the selecting + object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with + matching labels is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: Resolution specifies whether + resolution of this reference is required. + The default is 'Required', which means the + reconcile will fail if the reference cannot + be resolved. 'Optional' means this reference + will be a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: Resolve specifies when this reference + should be resolved. The default is 'IfNotPresent', + which will attempt to resolve the reference + only when the corresponding field is not + present. Use 'Always' to resolve the reference + on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object type: object type: array id: description: The unique identifier for the referred resource. type: string + idRef: + description: Reference to a Cluster to populate id. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: Resolution specifies whether resolution + of this reference is required. The default is + 'Required', which means the reconcile will fail + if the reference cannot be resolved. 'Optional' + means this reference will be a no-op if it cannot + be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: Resolve specifies when this reference + should be resolved. The default is 'IfNotPresent', + which will attempt to resolve the reference only + when the corresponding field is not present. Use + 'Always' to resolve the reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + idSelector: + description: Selector for a Cluster to populate id. + properties: + matchControllerRef: + description: MatchControllerRef ensures an object with + the same controller reference as the selecting object + is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with matching + labels is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: Resolution specifies whether resolution + of this reference is required. The default is + 'Required', which means the reconcile will fail + if the reference cannot be resolved. 'Optional' + means this reference will be a no-op if it cannot + be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: Resolve specifies when this reference + should be resolved. The default is 'IfNotPresent', + which will attempt to resolve the reference only + when the corresponding field is not present. Use + 'Always' to resolve the reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object kind: description: The kind of the referred resource. type: string required: - apiVersion - environment - - id - kind type: object type: array @@ -120,12 +273,87 @@ spec: id: description: The unique identifier for the referred owner. type: string + idRef: + description: Reference to a ServiceAccount to populate id. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: Resolution specifies whether resolution + of this reference is required. The default is + 'Required', which means the reconcile will fail + if the reference cannot be resolved. 'Optional' + means this reference will be a no-op if it cannot + be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: Resolve specifies when this reference + should be resolved. The default is 'IfNotPresent', + which will attempt to resolve the reference only + when the corresponding field is not present. Use + 'Always' to resolve the reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + idSelector: + description: Selector for a ServiceAccount to populate id. + properties: + matchControllerRef: + description: MatchControllerRef ensures an object with + the same controller reference as the selecting object + is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with matching + labels is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: Resolution specifies whether resolution + of this reference is required. The default is + 'Required', which means the reconcile will fail + if the reference cannot be resolved. 'Optional' + means this reference will be a no-op if it cannot + be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: Resolve specifies when this reference + should be resolved. The default is 'IfNotPresent', + which will attempt to resolve the reference only + when the corresponding field is not present. Use + 'Always' to resolve the reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object kind: description: The kind of the referred owner. type: string required: - apiVersion - - id - kind type: object type: array @@ -320,7 +548,7 @@ spec: - message: owner is a required parameter rule: self.managementPolicy == 'ObserveOnly' || has(self.forProvider.owner) status: - description: KeyStatus defines the observed state of Key. + description: APIKeyStatus defines the observed state of APIKey. properties: atProvider: properties: diff --git a/package/crds/kafka.crossplane.io_clusterconfigs.yaml b/package/crds/confluent.crossplane.io_clusterconfigs.yaml similarity index 99% rename from package/crds/kafka.crossplane.io_clusterconfigs.yaml rename to package/crds/confluent.crossplane.io_clusterconfigs.yaml index becfee8..ddfa15f 100644 --- a/package/crds/kafka.crossplane.io_clusterconfigs.yaml +++ b/package/crds/confluent.crossplane.io_clusterconfigs.yaml @@ -5,9 +5,9 @@ metadata: annotations: controller-gen.kubebuilder.io/version: v0.11.3 creationTimestamp: null - name: clusterconfigs.kafka.crossplane.io + name: clusterconfigs.confluent.crossplane.io spec: - group: kafka.crossplane.io + group: confluent.crossplane.io names: categories: - crossplane diff --git a/package/crds/kafka.crossplane.io_clusters.yaml b/package/crds/confluent.crossplane.io_clusters.yaml similarity index 82% rename from package/crds/kafka.crossplane.io_clusters.yaml rename to package/crds/confluent.crossplane.io_clusters.yaml index fae2154..78a9355 100644 --- a/package/crds/kafka.crossplane.io_clusters.yaml +++ b/package/crds/confluent.crossplane.io_clusters.yaml @@ -5,9 +5,9 @@ metadata: annotations: controller-gen.kubebuilder.io/version: v0.11.3 creationTimestamp: null - name: clusters.kafka.crossplane.io + name: clusters.confluent.crossplane.io spec: - group: kafka.crossplane.io + group: confluent.crossplane.io names: categories: - crossplane @@ -105,8 +105,84 @@ spec: id: description: The unique identifier for the environment. type: string - required: - - id + idRef: + description: Reference to a Environment in confluent to + populate id. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: Resolution specifies whether resolution + of this reference is required. The default is + 'Required', which means the reconcile will fail + if the reference cannot be resolved. 'Optional' + means this reference will be a no-op if it cannot + be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: Resolve specifies when this reference + should be resolved. The default is 'IfNotPresent', + which will attempt to resolve the reference only + when the corresponding field is not present. Use + 'Always' to resolve the reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + idSelector: + description: Selector for a Environment in confluent to + populate id. + properties: + matchControllerRef: + description: MatchControllerRef ensures an object with + the same controller reference as the selecting object + is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with matching + labels is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: Resolution specifies whether resolution + of this reference is required. The default is + 'Required', which means the reconcile will fail + if the reference cannot be resolved. 'Optional' + means this reference will be a no-op if it cannot + be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: Resolve specifies when this reference + should be resolved. The default is 'IfNotPresent', + which will attempt to resolve the reference only + when the corresponding field is not present. Use + 'Always' to resolve the reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object type: object type: array network: diff --git a/package/crds/kafka.crossplane.io_acls.yaml b/package/crds/confluent.crossplane.io_kafkaacls.yaml similarity index 71% rename from package/crds/kafka.crossplane.io_acls.yaml rename to package/crds/confluent.crossplane.io_kafkaacls.yaml index fa4d0f2..366e1f6 100644 --- a/package/crds/kafka.crossplane.io_acls.yaml +++ b/package/crds/confluent.crossplane.io_kafkaacls.yaml @@ -5,18 +5,18 @@ metadata: annotations: controller-gen.kubebuilder.io/version: v0.11.3 creationTimestamp: null - name: acls.kafka.crossplane.io + name: kafkaacls.confluent.crossplane.io spec: - group: kafka.crossplane.io + group: confluent.crossplane.io names: categories: - crossplane - managed - confluent - kind: ACL - listKind: ACLList - plural: acls - singular: acl + kind: KafkaACL + listKind: KafkaACLList + plural: kafkaacls + singular: kafkaacl scope: Cluster versions: - additionalPrinterColumns: @@ -35,7 +35,7 @@ spec: name: v1alpha1 schema: openAPIV3Schema: - description: ACL is the Schema for the ACLs API. + description: KafkaACL is the Schema for the KafkaACLs API. properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -50,7 +50,7 @@ spec: metadata: type: object spec: - description: ACLSpec defines the desired state of ACL + description: KafkaACLSpec defines the desired state of KafkaACL properties: deletionPolicy: default: Delete @@ -121,8 +121,82 @@ spec: id: description: The Kafka cluster ID (e.g., `lkc-12345`). type: string - required: - - id + idRef: + description: Reference to a Cluster to populate id. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: Resolution specifies whether resolution + of this reference is required. The default is + 'Required', which means the reconcile will fail + if the reference cannot be resolved. 'Optional' + means this reference will be a no-op if it cannot + be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: Resolve specifies when this reference + should be resolved. The default is 'IfNotPresent', + which will attempt to resolve the reference only + when the corresponding field is not present. Use + 'Always' to resolve the reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + idSelector: + description: Selector for a Cluster to populate id. + properties: + matchControllerRef: + description: MatchControllerRef ensures an object with + the same controller reference as the selecting object + is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with matching + labels is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: Resolution specifies whether resolution + of this reference is required. The default is + 'Required', which means the reconcile will fail + if the reference cannot be resolved. 'Optional' + means this reference will be a no-op if it cannot + be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: Resolve specifies when this reference + should be resolved. The default is 'IfNotPresent', + which will attempt to resolve the reference only + when the corresponding field is not present. Use + 'Always' to resolve the reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object type: object type: array operation: @@ -137,6 +211,79 @@ spec: principal: description: The principal for the ACL. type: string + principalRef: + description: Reference to a ServiceAccount to populate principal. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: Resolution specifies whether resolution of + this reference is required. The default is 'Required', + which means the reconcile will fail if the reference + cannot be resolved. 'Optional' means this reference + will be a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: Resolve specifies when this reference should + be resolved. The default is 'IfNotPresent', which will + attempt to resolve the reference only when the corresponding + field is not present. Use 'Always' to resolve the reference + on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + principalSelector: + description: Selector for a ServiceAccount to populate principal. + properties: + matchControllerRef: + description: MatchControllerRef ensures an object with the + same controller reference as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with matching labels + is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: Resolution specifies whether resolution of + this reference is required. The default is 'Required', + which means the reconcile will fail if the reference + cannot be resolved. 'Optional' means this reference + will be a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: Resolve specifies when this reference should + be resolved. The default is 'IfNotPresent', which will + attempt to resolve the reference only when the corresponding + field is not present. Use 'Always' to resolve the reference + on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object resourceName: description: The resource name for the ACL. type: string @@ -342,14 +489,12 @@ spec: rule: self.managementPolicy == 'ObserveOnly' || has(self.forProvider.patternType) - message: permission is a required parameter rule: self.managementPolicy == 'ObserveOnly' || has(self.forProvider.permission) - - message: principal is a required parameter - rule: self.managementPolicy == 'ObserveOnly' || has(self.forProvider.principal) - message: resourceName is a required parameter rule: self.managementPolicy == 'ObserveOnly' || has(self.forProvider.resourceName) - message: resourceType is a required parameter rule: self.managementPolicy == 'ObserveOnly' || has(self.forProvider.resourceType) status: - description: ACLStatus defines the observed state of ACL. + description: KafkaACLStatus defines the observed state of KafkaACL. properties: atProvider: properties: diff --git a/package/crds/role.crossplane.io_bindings.yaml b/package/crds/confluent.crossplane.io_rolebindings.yaml similarity index 97% rename from package/crds/role.crossplane.io_bindings.yaml rename to package/crds/confluent.crossplane.io_rolebindings.yaml index f76d879..cf5dd1f 100644 --- a/package/crds/role.crossplane.io_bindings.yaml +++ b/package/crds/confluent.crossplane.io_rolebindings.yaml @@ -5,18 +5,18 @@ metadata: annotations: controller-gen.kubebuilder.io/version: v0.11.3 creationTimestamp: null - name: bindings.role.crossplane.io + name: rolebindings.confluent.crossplane.io spec: - group: role.crossplane.io + group: confluent.crossplane.io names: categories: - crossplane - managed - confluent - kind: Binding - listKind: BindingList - plural: bindings - singular: binding + kind: RoleBinding + listKind: RoleBindingList + plural: rolebindings + singular: rolebinding scope: Cluster versions: - additionalPrinterColumns: @@ -35,7 +35,7 @@ spec: name: v1alpha1 schema: openAPIV3Schema: - description: Binding is the Schema for the Bindings API. + description: RoleBinding is the Schema for the RoleBindings API. properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -50,7 +50,7 @@ spec: metadata: type: object spec: - description: BindingSpec defines the desired state of Binding + description: RoleBindingSpec defines the desired state of RoleBinding properties: deletionPolicy: default: Delete @@ -272,7 +272,7 @@ spec: - message: roleName is a required parameter rule: self.managementPolicy == 'ObserveOnly' || has(self.forProvider.roleName) status: - description: BindingStatus defines the observed state of Binding. + description: RoleBindingStatus defines the observed state of RoleBinding. properties: atProvider: properties: diff --git a/package/crds/service.crossplane.io_accounts.yaml b/package/crds/confluent.crossplane.io_serviceaccounts.yaml similarity index 96% rename from package/crds/service.crossplane.io_accounts.yaml rename to package/crds/confluent.crossplane.io_serviceaccounts.yaml index 717b9cd..91bf556 100644 --- a/package/crds/service.crossplane.io_accounts.yaml +++ b/package/crds/confluent.crossplane.io_serviceaccounts.yaml @@ -5,18 +5,18 @@ metadata: annotations: controller-gen.kubebuilder.io/version: v0.11.3 creationTimestamp: null - name: accounts.service.crossplane.io + name: serviceaccounts.confluent.crossplane.io spec: - group: service.crossplane.io + group: confluent.crossplane.io names: categories: - crossplane - managed - confluent - kind: Account - listKind: AccountList - plural: accounts - singular: account + kind: ServiceAccount + listKind: ServiceAccountList + plural: serviceaccounts + singular: serviceaccount scope: Cluster versions: - additionalPrinterColumns: @@ -35,7 +35,8 @@ spec: name: v1alpha1 schema: openAPIV3Schema: - description: Account is the Schema for the Accounts API. + description: ServiceAccount is the Schema for the ServiceAccounts API. properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -50,7 +51,7 @@ spec: metadata: type: object spec: - description: AccountSpec defines the desired state of Account + description: ServiceAccountSpec defines the desired state of ServiceAccount properties: deletionPolicy: default: Delete @@ -264,7 +265,7 @@ spec: - message: displayName is a required parameter rule: self.managementPolicy == 'ObserveOnly' || has(self.forProvider.displayName) status: - description: AccountStatus defines the observed state of Account. + description: ServiceAccountStatus defines the observed state of ServiceAccount. properties: atProvider: properties: