Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Support preview flag when apply walrus file #2181

Closed
aiwantaozi opened this issue Mar 5, 2024 · 4 comments
Closed

Support preview flag when apply walrus file #2181

aiwantaozi opened this issue Mar 5, 2024 · 4 comments
Assignees
Labels
enhancement New feature or request p1 high priority
Milestone

Comments

@aiwantaozi
Copy link
Contributor

aiwantaozi commented Mar 5, 2024

Support adding a preview flag when applying walrus file, and support preview output, waiting for preview output

@aiwantaozi aiwantaozi added the enhancement New feature or request label Mar 5, 2024
@aiwantaozi aiwantaozi added this to the v0.6.0 milestone Mar 5, 2024
@aiwantaozi aiwantaozi self-assigned this Mar 5, 2024
@alexcodelf
Copy link
Contributor

Should we support import walrus file with preview in UI?

@Finenyaco
Copy link

Environment

  • Walrus version: main 96792e2
  • UI version: dev-040e825

Test Result: pass

 ~ w apply -f preview.yaml --preview --wait
resource default/local/nginx2 preview generating
resource default/local/nginx2 preview is generated, changes: 3 created, 0 updated, 0 deleted
 NAME              TYPE                       CHANGE TYPE
----------------- -------------------------- -------------
 ephemeral_files   kubernetes_config_map_v1   create
 deployment        kubernetes_deployment_v1   create
 service           kubernetes_service_v1      create
esource default/local/nginx2 preview generating
resource default/local/nginx2 preview is generated, changes: 0 created, 1 updated, 0 deleted
 NAME                                                               TYPE                       CHANGE TYPE
------------------------------------------------------------------ -------------------------- -------------
 default-local/eph-f-run-0-nginx-432e8a41659fd978d2fbae0a291a4423   kubernetes_config_map_v1   no-change
 default-local/nginx2-w9gk7                                         kubernetes_deployment_v1   update
 default-local/nginx2                                               kubernetes_service_v1      no-change

@gitlawr
Copy link
Contributor

gitlawr commented Mar 12, 2024

There's no way to apply the planned runs at the moment.

@Finenyaco
Copy link

Verified in c6bba6b.

Usage:
  walrus preview [flags]

Examples:
  # Generate preview of the configuration in the walrus-file.yaml
  $ walrus preview -f walrus-file.yaml --run-labels key=value

  # Generate preview of yaml files from a directory
  $ walrus preview -f dir/ --run-labels key=value

  # Generate preview of yamls files from a directory recursively
  $ walrus preview -f dir/ --recursive --run-labels key=value

  # Generate preview of yaml files with a specific project/environment
  $ walrus preview -f dir/ --run-labels key=value -p my-project -e my-environment

  # Apply generated preview with specific labels
  $ walrus preview -f walrus-file.yaml --run-labels key=value --apply

Known issue: #2243

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request p1 high priority
Projects
None yet
Development

No branches or pull requests

4 participants