hashicorp / vault-secrets-operator

The Vault Secrets Operator (VSO) allows Pods to consume Vault secrets natively from Kubernetes Secrets.
https://hashicorp.com
Other
471 stars 102 forks source link

Extract swagger and openapi specs #966

Open HamzaShili65 opened 2 weeks ago

HamzaShili65 commented 2 weeks ago

This PR automates the retrieval and conversion of the Kubernetes Swagger v2 spec to OpenAPI v3 within the VSO build workflow, only executing these steps after successful integration tests. It conditionally publishes the artifacts based on a new publish-swagger input, and manually installs kubectl to comply with organization restrictions.

current issue: I need to setup kubectl, but I can't do that currently cause the azure/setup-kubectl action isn't allowed. If we can't allow it, we can still install kubectl manually

- name: Install kubectl
  shell: bash
  run: |
    curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
    chmod +x kubectl
    sudo mv kubectl /usr/local/bin/
    kubectl version --client