Skip to content

Commit

Permalink
Enable prettier format
Browse files Browse the repository at this point in the history
  • Loading branch information
electrocucaracha committed Oct 5, 2024
1 parent 186389e commit 14ae737
Show file tree
Hide file tree
Showing 50 changed files with 307 additions and 292 deletions.
3 changes: 2 additions & 1 deletion .github/ISSUE_TEMPLATE/bug-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
name: Bug Report
about: Report a bug encountered while operating Kubernetes
labels: kind/bug

---

<!--
Please, be ready for followup questions, and please respond in a timely
manner. If we can't reproduce a bug or think a feature already exists, we
Expand Down Expand Up @@ -38,6 +38,7 @@ How to reproduce this issue
`git rev-parse --short HEAD`

### Output of Setup Kubernetes log file

<!-- We recommend using snippets services like https://gist.github.com/ etc. -->

`vagrant ssh installer -- cat /vagrant/setup-kubernetes.log`
1 change: 1 addition & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Provide a general summary of your changes in the Title above
## Details

Describe your changes in detail

<!---
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
Expand Down
8 changes: 4 additions & 4 deletions .github/actions/molecule-test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
name: Molecule execution
inputs:
tox-env:
description: 'Python TOX environment'
description: "Python TOX environment"
runs:
using: "composite"
steps:
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # 5.2.0
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # 5.2.0
with:
python-version: '3.x'
- uses: syphar/restore-virtualenv@e536692e76315a068b4905f792e25febfe6d4391 # 1.3
python-version: "3.x"
- uses: syphar/restore-virtualenv@e536692e76315a068b4905f792e25febfe6d4391 # 1.3
id: cache-tox-molecule
with:
requirement_files: test-requirements.txt
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/vagrant-setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ runs:
using: "composite"
steps:
- name: Cache Vagrant boxes
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # 4.0.2
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # 4.0.2
with:
path: ~/.vagrant.d/boxes
key: ${{ runner.os }}-vagrant-ubuntu-bionic-${{ hashFiles('distros_supported.yml') }}
Expand Down
56 changes: 28 additions & 28 deletions .github/actions/vagrant-up/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,73 +10,73 @@
name: Vagrant up
inputs:
debug:
description: 'Enable debug level'
description: "Enable debug level"
default: false
memory:
description: 'Memory'
description: "Memory"
default: 12288
os:
description: 'Operating System'
description: "Operating System"
default: ubuntu
release:
description: 'Release'
description: "Release"
default: jammy
vbox-controller:
description: 'VirtualBox Controller'
default: 'Virtual I/O Device SCSI controller'
description: "VirtualBox Controller"
default: "Virtual I/O Device SCSI controller"
test-multinode:
description: 'Multinode test environment'
description: "Multinode test environment"
default: false
host-installer:
description: 'Run KRD deployment script on the host machine'
description: "Run KRD deployment script on the host machine"
default: false
kube-version:
description: 'Kubernetes version'
description: "Kubernetes version"
kubespray-version:
description: 'Kubespray version'
description: "Kubespray version"
cert-manager-enabled:
description: 'Enable Kubernetes Cert-Manager'
description: "Enable Kubernetes Cert-Manager"
default: false
ingress-enabled:
description: 'Enable Kubernetes Ingress Controller'
description: "Enable Kubernetes Ingress Controller"
default: false
container-runtime:
description: 'Container Runtime'
description: "Container Runtime"
kata-containers-enabled:
description: 'Enable Katacontainers'
description: "Enable Katacontainers"
default: false
crun-enabled:
description: 'Enable crun'
description: "Enable crun"
default: false
gvisor-enabled:
description: 'Enable gVisor'
description: "Enable gVisor"
default: false
metallb-enabled:
description: 'Enable MetalLB'
description: "Enable MetalLB"
default: false
krew-plugins-list:
description: 'List of Krew plugins to be installed'
default: ' '
description: "List of Krew plugins to be installed"
default: " "
docker-version:
description: 'Docker version'
description: "Docker version"
containerd-version:
description: 'ContainerD version'
description: "ContainerD version"
network-plugin:
description: 'CNI plugin'
default: 'flannel'
description: "CNI plugin"
default: "flannel"
enable-tests:
description: 'Enable KRD functional tests'
description: "Enable KRD functional tests"
default: false
int-tests:
description: 'List of KRD integration tests'
description: "List of KRD integration tests"
test-virtlet:
description: 'Validate Virtlet services'
description: "Validate Virtlet services"
default: false
run-conformance-tools:
description: 'Run conformance tools'
description: "Run conformance tools"
default: false
run-benchmarks:
description: 'Run K6 and iperf networking benchmark tools'
description: "Run K6 and iperf networking benchmark tools"
default: false
runs:
using: "composite"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
## Available labels

| Label name | Description |
| :-------------|----------------------------------------------------|
| :------------ | -------------------------------------------------- |
| documentation | Changes on documentation files |
| test | Changes on script files located in `tests/` folder |
| ci | Changes on GitHub files |
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/diagram.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@ jobs:
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # 4.2.0
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # 4.2.0
- name: Update diagram
uses: githubocto/repo-visualizer@a999615bdab757559bf94bda1fe6eef232765f85 # 0.9.1
uses: githubocto/repo-visualizer@a999615bdab757559bf94bda1fe6eef232765f85 # 0.9.1
with:
excluded_paths: "ignore,.github"
output_file: codebase-structure.svg
should_push: false
- uses: technote-space/create-pr-action@91114507cf92349bec0a9a501c2edf1635427bc5 # 2.1.4
- uses: technote-space/create-pr-action@91114507cf92349bec0a9a501c2edf1635427bc5 # 2.1.4
with:
COMMIT_MESSAGE: 'Upgrade documentation diagram'
COMMIT_NAME: 'electrocucaracha bot'
COMMIT_MESSAGE: "Upgrade documentation diagram"
COMMIT_NAME: "electrocucaracha bot"
PR_BRANCH_NAME: "versions-update-${PR_ID}"
PR_TITLE: 'chore: update diagram'
PR_TITLE: "chore: update diagram"
18 changes: 9 additions & 9 deletions .github/workflows/distros.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,27 @@ name: Scheduled Latest Vagrant Boxes verification
# yamllint disable-line rule:truthy
on:
schedule:
- cron: '0 0 1 * *'
- cron: "0 0 1 * *"
workflow_dispatch:
jobs:
check-versions:
permissions:
contents: write # for technote-space/create-pr-action to push code
pull-requests: write # for technote-space/create-pr-action to create a PR
contents: write # for technote-space/create-pr-action to push code
pull-requests: write # for technote-space/create-pr-action to create a PR
runs-on: macos-12
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # 4.2.0
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # 4.0.2
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # 4.2.0
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # 4.0.2
with:
path: ~/.vagrant.d/boxes
key: ${{ runner.os }}-vagrant-${{ hashFiles('distros_supported.yml') }}
restore-keys: |
${{ runner.os }}-vagrant-
- uses: technote-space/create-pr-action@91114507cf92349bec0a9a501c2edf1635427bc5 # 2.1.4
- uses: technote-space/create-pr-action@91114507cf92349bec0a9a501c2edf1635427bc5 # 2.1.4
with:
EXECUTE_COMMANDS: |
./ci/update_distros.sh
COMMIT_MESSAGE: 'Upgrade distro list versions'
COMMIT_NAME: 'electrocucaracha bot'
COMMIT_MESSAGE: "Upgrade distro list versions"
COMMIT_NAME: "electrocucaracha bot"
PR_BRANCH_NAME: "versions-update-${PR_ID}"
PR_TITLE: 'chore: update distro versions'
PR_TITLE: "chore: update distro versions"
18 changes: 9 additions & 9 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ jobs:
name: Count Lines of Code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # 4.2.0
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # 4.2.0
- name: Setup Go
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # 5.0.2
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # 5.0.2
with:
go-version: '>=1.20.0'
go-version: ">=1.20.0"
- name: Install dependencies
run: go install github.com/boyter/scc/v3@latest
- name: Run scc tool
Expand All @@ -30,29 +30,29 @@ jobs:
name: Check documentation external links
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # 4.2.0
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # 4.2.0
- name: Check broken links
uses: gaurav-nelson/github-action-markdown-link-check@d53a906aa6b22b8979d33bc86170567e619495ec # 1.0.15
uses: gaurav-nelson/github-action-markdown-link-check@d53a906aa6b22b8979d33bc86170567e619495ec # 1.0.15
check-super-linter:
name: Check syntax (super-linter)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # 4.2.0
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # 4.2.0
- name: Run super-linter validation
uses: github/super-linter@b807e99ddd37e444d189cfd2c2ca1274d8ae8ef1 # 7
uses: github/super-linter@b807e99ddd37e444d189cfd2c2ca1274d8ae8ef1 # 7
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
LINTER_RULES_PATH: /
VALIDATE_KUBERNETES_KUBEVAL: false
VALIDATE_NATURAL_LANGUAGE: false
VALIDATE_SHELL_SHFMT: false
EDITORCONFIG_FILE_NAME: .editorconfig
KUBERNETES_KUBECONFORM_OPTIONS: '-ignore-missing-schemas -ignore-filename-pattern custom-rules.yml'
KUBERNETES_KUBECONFORM_OPTIONS: "-ignore-missing-schemas -ignore-filename-pattern custom-rules.yml"
check-tox:
name: Check syntax (tox)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # 4.2.0
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # 4.2.0
- name: Install tox
run: pip install tox
- name: Run tox lint validation
Expand Down
38 changes: 19 additions & 19 deletions .github/workflows/on-demand_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ name: Integration tests
on:
push:
paths:
- '**.sh'
- '!ci/update_*.sh'
- '*.yml'
- '!playbooks/**/*.yml'
- '*.tpl'
- '*.env'
- 'resources/*'
- '!**.md'
- "**.sh"
- "!ci/update_*.sh"
- "*.yml"
- "!playbooks/**/*.yml"
- "*.tpl"
- "*.env"
- "resources/*"
- "!**.md"
pull_request_review:
types:
- submitted
Expand All @@ -38,21 +38,21 @@ jobs:
kata_containers_enabled: false
- runtime: containerd
gvisor_enabled: true
kata_containers_enabled: false # TODO: Enable this once this PR is included(https://github.com/kubernetes-sigs/kubespray/pull/8797)
kata_containers_enabled: false # TODO: Enable this once this PR is included(https://github.com/kubernetes-sigs/kubespray/pull/8797)
- enable_tests: true
krew_plugins_list: 'virt'
krew_plugins_list: "virt"
metallb_enabled: true
int_tests: "metallb istio kubevirt knative"
- test_multinode: true
run_conformance_tools: true
- enable_tests: true
int_tests: 'falco kyverno gatekeeper'
- krew_plugins_list: 'cert-manager'
int_tests: "falco kyverno gatekeeper"
- krew_plugins_list: "cert-manager"
enable_tests: true
int_tests: 'virtink'
int_tests: "virtink"
cert_manager_enabled: true
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # 4.2.0
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # 4.2.0
- uses: ./.github/actions/vagrant-up
with:
container-runtime: ${{ matrix.runtime }}
Expand All @@ -72,8 +72,8 @@ jobs:
outputs:
scripts: ${{ steps.filter.outputs.scripts }}
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # 4.2.0
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # 3.0.2
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # 4.2.0
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # 3.0.2
if: ${{ !env.ACT }}
id: filter
with:
Expand All @@ -87,9 +87,9 @@ jobs:
needs: changes
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # 4.2.0
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # 4.2.0
- name: Run the sh-checker
uses: luizm/action-sh-checker@17bd25a6ee188d2b91f677060038f4ba37ba14b2 # 0.9.0
uses: luizm/action-sh-checker@17bd25a6ee188d2b91f677060038f4ba37ba14b2 # 0.9.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SHFMT_OPTS: -i 4 -s
Expand All @@ -102,7 +102,7 @@ jobs:
needs: changes
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # 4.2.0
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # 4.2.0
- name: Install ShellSpec
run: curl -fsSL https://github.com/shellspec/shellspec/releases/latest/download/shellspec-dist.tar.gz | tar -xz -C ..
- name: Run Shellspec
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/on-demand_corner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ name: Check Corner cases
on:
push:
paths:
- '**.sh'
- '!ci/update_*.sh'
- '*.yml'
- '!playbooks/**/*.yml'
- '*.tpl'
- '*.env'
- 'resources/*'
- '!**.md'
- "**.sh"
- "!ci/update_*.sh"
- "*.yml"
- "!playbooks/**/*.yml"
- "*.tpl"
- "*.env"
- "resources/*"
- "!**.md"
pull_request_review:
types:
- submitted
Expand All @@ -38,7 +38,7 @@ jobs:
- test: kubewarden
cert-mgr: true
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # 4.2.0
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # 4.2.0
- uses: ./.github/actions/vagrant-up
with:
cert-manager-enabled: ${{ matrix.cert-mgr }}
Expand Down
Loading

0 comments on commit 14ae737

Please sign in to comment.