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

deleting kube quadlet do not delete yaml matching file #39

Open
axel7083 opened this issue Dec 10, 2024 · 1 comment
Open

deleting kube quadlet do not delete yaml matching file #39

axel7083 opened this issue Dec 10, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@axel7083
Copy link
Contributor

Description

Kube quadlet look like the following

# caddy.kube
[Kube]
Yaml=caddy-kube.yaml

Then are pointing to a Yaml file, here caddy-kube.yaml.

Deleting the Kube quadlet from the podman desktop extension do not delete the corresponding yaml file.

Solution

  1. detect the quadlet type on request delete
  2. read the source and extract the Yaml file
  3. delete on user request
@axel7083 axel7083 added the enhancement New feature or request label Jan 17, 2025
@axel7083
Copy link
Contributor Author

axel7083 commented Jan 30, 2025

Proposal

I am yet not sure how to proceed with displaying the corresponding Yaml of a kube Quadlet in the details.

I would argue the first step would be to add to the Quadlet and QuadletInfo interface the type: QuadletType (Draft branch https://github.com/axel7083/extension-podman-quadlet/tree/feature/adding-type-quadlet-info)

Then we may add a specific method like getYAML to the QuadletAPI which would check the YAML property and read from the podman machine the file 🤔

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

No branches or pull requests

1 participant