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

Readiness not correctly reflected in claim for Object.kubernetes.crossplane.io/v1alpha2 MRs #99

Open
milkpirate opened this issue May 27, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@milkpirate
Copy link

What happened?

I have multiple kubernetes.crossplane.io/v1alpha2 Objects (provider-kubernetes) which get created correctly and are synced and ready:

$ kg objects
NAME                                                                             KIND             PROVIDERCONFIG   SYNCED   READY   AGE
role.tunnel.secret.transformer.of.tunnel-example.of.example-cf-setup             Role             default          True     True    34m
rb.tunnel.secret.transformer.of.tunnel-example.of.example-cf-setup               RoleBinding      default          True     True    34m
sa.tunnel.secret.transformer.of.example-cf-setup                                 ServiceAccount   default          True     True    34m
credentials.tunnel.of.tunnel-example.of.example-cf-setup                         Secret           default          True     True    3m5s
objecttemplate.tunnel.secret.transformer.of.tunnel-example.of.example-cf-setup   ObjectTemplate   default          True     True    34m

But their status is not correctly reflected in the status/events of the claim:

$ kgf claim.yaml
...
Status:
  At Provider:
    Ca Certs:
      Applications:
        Browser - Ssh:
  Conditions:
    Last Transition Time:  2024-05-27T18:47:31Z
    Reason:                ReconcileSuccess
    Status:                True
    Type:                  Synced
    Last Transition Time:  2024-05-27T19:18:33Z
    Message:               Unready resources: secret-transform-role, secret-transform-role-binding, secret-transform-sa, and 2 more
    Reason:                Creating
    Status:                False
    Type:                  Ready
  Connection Details:
    Last Published Time:  2024-05-27T18:47:31Z
Events:
  Type    Reason            Age                   From                                                             Message
  ----    ------            ----                  ----                                                             -------
  Normal  ComposeResources  31m                   defined/compositeresourcedefinition.apiextensions.crossplane.io  Composed resource "secret-transform-role" is not yet ready
  Normal  ComposeResources  31m                   defined/compositeresourcedefinition.apiextensions.crossplane.io  Composed resource "secret-transform-role-binding" is not yet ready
  Normal  ComposeResources  31m                   defined/compositeresourcedefinition.apiextensions.crossplane.io  Composed resource "secret-transformer" is not yet ready
  Normal  ComposeResources  3m16s (x68 over 31m)  defined/compositeresourcedefinition.apiextensions.crossplane.io  Successfully composed resources

All other resource(type)s work well and their status gets propagated well. What am I missing for Objects?

How can we reproduce it?

Sample objcet:

          ---
          apiVersion: kubernetes.crossplane.io/v1alpha2
          kind: Object
          metadata:
            name: sa.tunnel.secret.transformer.of.{{ $name }}
            annotations:
              gotemplating.fn.crossplane.io/composition-resource-name: secret-transform-sa
          spec:
            forProvider:
              manifest:
                apiVersion: v1
                kind: ServiceAccount
                metadata:
                  name: tunnel.secret.transformer.of.{{ $tunnel.name }}.of.{{ $name }}
                  namespace: crossplane-system

What environment did it happen in?

Function version: v0.4.1

@milkpirate milkpirate added the bug Something isn't working label May 27, 2024
@milkpirate milkpirate changed the title Eeadiness not correctly reflected in claim for Object.kubernetes.crossplane.io/v1alpha2 MRs Readiness not correctly reflected in claim for Object.kubernetes.crossplane.io/v1alpha2 MRs May 27, 2024
@bobh66
Copy link
Contributor

bobh66 commented Aug 31, 2024

@milkpirate have you tried adding function-auto-ready to the end of your pipeline?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants