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

GenericKind cannot be watched #1838

Open
cmwylie19 opened this issue Feb 17, 2025 · 1 comment
Open

GenericKind cannot be watched #1838

cmwylie19 opened this issue Feb 17, 2025 · 1 comment
Assignees

Comments

@cmwylie19
Copy link
Contributor

Describe what should be investigated or refactored

When(a.GenericKind, {
  group: "pepr.dev",
  version: "v1",
  kind: "Unicorn",
})
  .IsCreated()
  .WithName("example-1")
  .Watch(() => Log.info("Unicorn Created"));

Seems like the watch URL is being called with GenericKind, if we do the GVK map and it is undefined than there is more work to do in order to know what to watch.

[08:50:49.696] DEBUG (95315): Watch event network_error received. watch connect failed: 404 Not Found.
@cmwylie19
Copy link
Contributor Author

This may not be a problem, when this is tested let's ensure the CRD is first applied to the cluster

apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  name: unicorns.pepr.dev
spec:
  group: pepr.dev
  versions:
    - name: v1
      served: true
      storage: true
      schema:
        openAPIV3Schema:
          type: object
          properties:
            spec:
              type: object
              properties:
                message:
                  type: string
                counter:
                  type: number
  scope: Namespaced
  names:
    plural: unicorns
    singular: unicorn
    kind: Unicorn

@cmwylie19 cmwylie19 moved this from 🆕 New to 🏗 In progress in Pepr Project Board Feb 18, 2025
@cmwylie19 cmwylie19 self-assigned this Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🏗 In progress
Development

No branches or pull requests

1 participant