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

Extract swagger and openapi specs #966

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

HamzaShili65
Copy link

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

@HamzaShili65 HamzaShili65 requested a review from benashz November 7, 2024 04:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant