tagesjump / provider-upjet-yc

Crossplane provider for Yandex.Cloud
https://marketplace.upbound.io/providers/tages/provider-upjet-yc
Apache License 2.0
22 stars 1 forks source link

I can't create ServiceAccountStaticAccessKey - No argument or block type is named "name" #5

Closed abix5 closed 7 months ago

abix5 commented 7 months ago
apiVersion: iam.yandex-cloud.upjet.crossplane.io/v1alpha1
kind: ServiceAccountStaticAccessKey
metadata:
  annotations:
    crossplane.io/external-name: sa-static-key
    kubectl.kubernetes.io/last-applied-configuration: |
      {"apiVersion":"iam.yandex-cloud.upjet.crossplane.io/v1alpha1","kind":"ServiceAccountStaticAccessKey","metadata":{"annotations":{},"labels":{"testing.upbound.io/example-name":"sa-static-key"},"name":"sa-static-key"},"spec":{"forProvider":{"description":"static access key for object storage","serviceAccountIdRef":{"name":"sa-crossplane"}},"providerConfigRef":{"name":"provider-upjet-yc"}}}
  creationTimestamp: "2024-02-18T16:02:37Z"
  generation: 3
  labels:
    testing.upbound.io/example-name: sa-static-key
  name: sa-static-key
  resourceVersion: "634052479"
  uid: 6a76de49-d45e-401f-85fd-bbf86a73b757
spec:
  deletionPolicy: Delete
  forProvider:
    description: static access key for object storage
    serviceAccountId: {{MY_ID_SA}}
    serviceAccountIdRef:
      name: sa-crossplane
  initProvider: {}
  managementPolicies:
  - '*'
  providerConfigRef:
    name: provider-upjet-yc
status:
  atProvider: {}
  conditions:
  - lastTransitionTime: "2024-02-18T16:02:38Z"
    message: 'observe failed: cannot run refresh: refresh failed: Extraneous JSON
      object property: No argument or block type is named "name".'
    reason: ReconcileError
    status: "False"
    type: Synced
---

apiVersion: iam.yandex-cloud.upjet.crossplane.io/v1alpha1
kind: ServiceAccountStaticAccessKey
metadata:
  labels:
    testing.upbound.io/example-name: sa-static-key
  name: sa-static-key
spec:
  forProvider:
    description: static access key for object storage
    serviceAccountIdRef:
      name: sa-crossplane
  providerConfigRef:
    name: provider-upjet-yc

---

apiVersion: iam.yandex-cloud.upjet.crossplane.io/v1alpha1
kind: ServiceAccount
metadata:
  annotations:
    meta.upbound.io/example-id: iam/v1alpha1/serviceaccount
  labels:
    testing.upbound.io/example-name: sa-crossplane
  name: sa-crossplane
spec:
  forProvider:
    description: service account for crossplane
    folderId: b1guugseh3jmtmgukcs5
  providerConfigRef:
    name: provider-upjet-yc
  writeConnectionSecretToRef:
    name: upjet-creds
    namespace: crossplane-system
abix5 commented 7 months ago

Hi, any progress in working on this bug?

ssch1337 commented 7 months ago

Hi! Unfortunately, it took us a little longer to get to work on your issue. The solution has been tested and is in the attached pull request which we will accept and release a new 0.1.6 tag with the fix.

Thanks for your issue, it helps us to be better!