Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
abix5 opened this issue Feb 18, 2024 · 2 comments · Fixed by #6
Closed
Assignees
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@abix5
Copy link

abix5 commented Feb 18, 2024

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
@ssch1337 ssch1337 self-assigned this Feb 18, 2024
@ssch1337 ssch1337 added the bug Something isn't working label Feb 18, 2024
@abix5
Copy link
Author

abix5 commented Feb 21, 2024

Hi, any progress in working on this bug?

@ssch1337
Copy link
Member

ssch1337 commented Feb 22, 2024

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!

@ssch1337 ssch1337 added the good first issue Good for newcomers label Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
2 participants