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

Issue/Help with "Generate a Helm Deployment Chart for Defender" #743

Open
ihortelanog opened this issue Sep 19, 2024 · 0 comments
Open

Issue/Help with "Generate a Helm Deployment Chart for Defender" #743

ihortelanog opened this issue Sep 19, 2024 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@ihortelanog
Copy link

Documentation link

https://pan.dev/compute/api/post-defenders-helm-twistlock-defender-helm-tar-gz/#curl-request

Describe the problem

The orchestrator value is not correct in the example. The right values are: kubernetes, openshift, etc but not container. Also you need to add containerRuntime to the API call otherwise it failed with the error 400 Bad Request.
$ curl -k \ -u <USER> \ -H 'Content-Type: application/json' \ -X POST \ -o twistlock-defender-helm.tar.gz \ -d \ '{ "orchestration": "container", "consoleAddr": "servo-vmware71", "namespace": "twistlock" }' \ "https://<CONSOLE>/api/v<VERSION>/defenders/helm/twistlock-defender-helm.tar.gz"

Suggested fix

This should be the correct curl example.

curl -k \ -u <USER> \ -H 'Content-Type: application/json' \ -X POST \ -o twistlock-defender-helm.tar.gz \ -d \ '{ "orchestration": "kubernetes", "containerRuntime": "containerd", "consoleAddr": "servo-vmware71", "namespace": "twistlock" }' \ https://<CONSOLE>/api/v<VERSION>/defenders/helm/twistlock-defender-helm.tar.gz"

@ihortelanog ihortelanog added the documentation Improvements or additions to documentation label Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant