ankaios icon indicating copy to clipboard operation
ankaios copied to clipboard

ank apply does not return when empty agent is provided

Open windsource opened this issue 10 months ago • 3 comments

ank apply does not return when a manifest with an empty agent is provided.

Current Behavior

ank apply -d blocks and shows

❯ ank apply nginx_empty.yaml
 WORKLOAD NAME   AGENT   RUNTIME     EXECUTION STATE   ADDITIONAL INFO
 nginx1                  podman    / NotScheduled

Expected Behavior

ank apply shall return and show the the workload is in state NotScheduled.

Steps to Reproduce

  1. Create a file nginx_empty.yaml:
apiVersion: v0.1
workloads:
  nginx1:
    runtime: podman
    agent: ""
    runtimeConfig: |
      image: docker.io/nginx:latest
  1. Call ank apply nginx_empty.yaml.

Context (Environment)

Anakios v0.3.0

Logs

Additional Information

Final result

To be filled by the one closing the issue.

windsource avatar Apr 12 '24 09:04 windsource