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

feat: reconcile AccessKey #93

Merged
merged 3 commits into from
Jan 10, 2025
Merged

feat: reconcile AccessKey #93

merged 3 commits into from
Jan 10, 2025

Conversation

tenstad
Copy link
Member

@tenstad tenstad commented Jan 9, 2025

Appears only Observe can write to Status. Using external name to transport from Create to Observe: https://github.com/crossplane-contrib/provider-aws/blob/2a9ac2c9815c3a92aff575f2c879c40193287280/pkg/controller/iam/accesskey/controller.go#L165

---
apiVersion: user.cloudian.crossplane.io/v1alpha1
kind: AccessKey
metadata:
    name: tenant1-user2
spec:
    forProvider:
        groupId: tenant1
        userId: user2
    writeConnectionSecretToRef:
        namespace: default
        name: s3creds
status:
    atProvider:
        accessKey: 57927689798c12cafa5c
---
apiVersion: v1
kind: Secret
metadata:
  name: s3creds
  namespace: default
data:
  secretKey: QmJVTDFWbDk1ZTJnWGo4dCsxOHBuSTZueWh6cVFXTlcvWnFrSFlvLw==

Thinking to extend to selector and ref in the future, as with https://marketplace.upbound.io/providers/upbound/provider-aws-iam/v1.18.3/resources/iam.aws.upbound.io/AccessKey/v1beta1

image

@tenstad tenstad force-pushed the reconcile-access-key branch 4 times, most recently from fbb49ec to 1ee9dac Compare January 10, 2025 07:43
@tenstad tenstad requested review from erikgb and mariatsji January 10, 2025 07:44
@tenstad tenstad marked this pull request as ready for review January 10, 2025 07:45
internal/sdk/cloudian/sdk.go Outdated Show resolved Hide resolved
@tenstad tenstad merged commit 79bf9b9 into main Jan 10, 2025
6 checks passed
@tenstad tenstad deleted the reconcile-access-key branch January 10, 2025 14:19
@statnett-bot statnett-bot bot mentioned this pull request Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants