dkb-bank / provider-opensearch

provider-opensearch
Apache License 2.0
5 stars 4 forks source link

Error while installing the provider #15

Open ashishvaishno opened 3 months ago

ashishvaishno commented 3 months ago

Hello,

I tried to install the provider and end up with the below error

k logs -n crossplane-system dkb-bank-provider-opensearch-0c5ee1514935-8657d56bc8-wfg7h
2024-03-18T08:44:12.506Z    DEBUG   provider-opensearch Starting    {"sync-period": "1h0m0s"}
I0318 08:44:13.557249       1 request.go:601] Waited for 1.043540937s due to client-side throttling, not priority and fairness, request: GET:https://10.100.0.1:443/apis/eks.aws.upbound.io/v1beta1?timeout=32s
2024-03-18T08:44:14.209Z    INFO    controller-runtime.metrics  Metrics server is starting to listen    {"addr": ":8080"}
2024-03-18T08:44:14.218Z    INFO    provider-opensearch Alpha feature enabled   {"flag": "EnableAlphaExternalSecretStores"}
provider: error: cannot create default store config: no kind is registered for the type v1alpha1.StoreConfig in scheme "pkg/runtime/scheme.go:100"

I tried to create the default storeconfig in crossplane-system namespace to mitigate the error, but that doesnt help

The cluster role binding is also correctly created once the provider is installed

Name:         crossplane:provider:dkb-bank-provider-opensearch-0c5ee1514935:system
Labels:       <none>
Annotations:  <none>
Role:
  Kind:  ClusterRole
  Name:  crossplane:provider:dkb-bank-provider-opensearch-0c5ee1514935:system
Subjects:
  Kind            Name                     Namespace
  ----            ----                     ---------
  ServiceAccount  crossplane-aws-provider  crossplane-system

Clusterrole

PolicyRule:
  Resources                                             Non-Resource URLs  Resource Names  Verbs
  ---------                                             -----------------  --------------  -----
  configmaps                                            []                 []              [*]
  events                                                []                 []              [*]
  leases                                                []                 []              [*]
  secrets                                               []                 []              [*]
  configmaps.coordination.k8s.io                        []                 []              [*]
  events.coordination.k8s.io                            []                 []              [*]
  leases.coordination.k8s.io                            []                 []              [*]
  secrets.coordination.k8s.io                           []                 []              [*]
  componenttemplates.opensearch.crossplane.io/status    []                 []              [get list watch update patch create]
  componenttemplates.opensearch.crossplane.io           []                 []              [get list watch update patch create]
  datastreams.opensearch.crossplane.io/status           []                 []              [get list watch update patch create]
  datastreams.opensearch.crossplane.io                  []                 []              [get list watch update patch create]
  indextemplates.opensearch.crossplane.io/status        []                 []              [get list watch update patch create]
  indextemplates.opensearch.crossplane.io               []                 []              [get list watch update patch create]
  ismpolicies.opensearch.crossplane.io/status           []                 []              [get list watch update patch create]
  ismpolicies.opensearch.crossplane.io                  []                 []              [get list watch update patch create]
  ismpolicymappings.opensearch.crossplane.io/status     []                 []              [get list watch update patch create]
  ismpolicymappings.opensearch.crossplane.io            []                 []              [get list watch update patch create]
  providerconfigs.opensearch.crossplane.io/status       []                 []              [get list watch update patch create]
  providerconfigs.opensearch.crossplane.io              []                 []              [get list watch update patch create]
  providerconfigusages.opensearch.crossplane.io/status  []                 []              [get list watch update patch create]
  providerconfigusages.opensearch.crossplane.io         []                 []              [get list watch update patch create]
  roles.opensearch.crossplane.io/status                 []                 []              [get list watch update patch create]
  roles.opensearch.crossplane.io                        []                 []              [get list watch update patch create]
  rolesmappings.opensearch.crossplane.io/status         []                 []              [get list watch update patch create]
  rolesmappings.opensearch.crossplane.io                []                 []              [get list watch update patch create]
  storeconfigs.opensearch.crossplane.io/status          []                 []              [get list watch update patch create]
  storeconfigs.opensearch.crossplane.io                 []                 []              [get list watch update patch create]
  *.opensearch.crossplane.io/finalizers                 []                 []              [update]

What am i missing?