moonbeam-nyc / snorlax

wake and sleep Kubernetes deployments on a schedule
https://moonbeam.nyc
Apache License 2.0
147 stars 10 forks source link

Example fails because of API schema issue #5

Closed volatilemolotov closed 3 months ago

volatilemolotov commented 3 months ago

When trying out the example from github it fails with

Error from server (BadRequest): error when creating "infra/ollama/ollama-sleep-shedule.yaml": SleepSchedule in version "v1beta1" cannot be handled as a SleepSchedule: strict decoding error: unknown field "spec.ingresses[0].requires.deployments"

Commenting out the requires from ingresses helps:

  ingresses:
  - name: openweb-ui

    # (optional, defaults to all deployments) specify which deployments
    # must be ready to wake this ingress
    # requires:
    #   deployments:
    #   - name: test
azlyth commented 3 months ago

Nooo, sorry @volatilemolotov, the README example was wrong, I've updated it now, the correct format is:

    # (optional, defaults to all deployments) specify which deployments
    # must be ready to wake this ingress
    requires:
    - deployment:
        name: your-app-frontend