Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/dev_module_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,39 @@ jobs:
svace_analyze_ssh_user: "${{ secrets.SVACE_ANALYZE_SSH_USER }}"
svace_analyze_ssh_key: "${{ secrets.SVACE_ANALYZE_SSH_PRIVATE_KEY }}"

test_build_d8v_cli:
name: Test build d8v cli
if: ${{ github.event_name == 'pull_request' }}
runs-on: ubuntu-latest
needs: set_vars
steps:
- name: Set up Go ${{ env.GO_VERSION }}
uses: actions/setup-go@v5
with:
go-version: "${{ env.GO_VERSION }}"

- name: Install Task
uses: arduino/setup-task@v2
with:
version: 3.x
repo-token: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }}

- name: Test build d8v cli
run: |
task d8v-cli:build

- name: Workability check
run: |
task d8v-cli:install
export PATH=$PATH:~/.local/bin
echo ""
echo "Print help"
d8v --help

pull_request_info:
name: Get PR info
if: ${{ github.event_name == 'pull_request' }}
Expand Down
81 changes: 66 additions & 15 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ includes:
perf:
taskfile: ./test/performance
dir: ./test/performance
d8v-cli:
taskfile: ./src/cli
dir: ./src/cli

vars:
deckhouse_lib_helm_ver: 1.55.1
Expand Down Expand Up @@ -155,11 +158,27 @@ tasks:
"spec": {
"template": {
"spec": {
"containers": [ {
"name": "virt-controller",
"image": "${IMAGE}",
"ports": [ { "containerPort": 2345, "name": "dlv" } ]
}]
"containers": [
{
"name": "virt-controller",
"image": "${IMAGE}",
"ports": [ { "containerPort": 2345, "name": "dlv" } ],
"readinessProbe": null,
"livenessProbe": null,
"command": null,
"args": []
},
{
"name": "proxy",
"readinessProbe": null,
"livenessProbe": null
},
{
"name": "kube-rbac-proxy",
"readinessProbe": null,
"livenessProbe": null
}
]
}
}
}
Expand Down Expand Up @@ -189,11 +208,27 @@ tasks:
"spec": {
"template": {
"spec": {
"containers": [ {
"name": "virt-handler",
"image": "${IMAGE}",
"ports": [ { "containerPort": 2345, "name": "dlv" } ]
}]
"containers": [
{
"name": "virt-handler",
"image": "${IMAGE}",
"ports": [ { "containerPort": 2345, "name": "dlv" } ],
"readinessProbe": null,
"livenessProbe": null,
"command": null,
"args": []
},
{
"name": "proxy",
"readinessProbe": null,
"livenessProbe": null
},
{
"name": "kube-rbac-proxy",
"readinessProbe": null,
"livenessProbe": null
}
]
}
}
}
Expand Down Expand Up @@ -223,11 +258,27 @@ tasks:
"spec": {
"template": {
"spec": {
"containers": [ {
"name": "virt-api",
"image": "${IMAGE}",
"ports": [ { "containerPort": 2345, "name": "dlv" } ]
}]
"containers": [
{
"name": "virt-api",
"image": "${IMAGE}",
"ports": [ { "containerPort": 2345, "name": "dlv" } ],
"readinessProbe": null,
"livenessProbe": null,
"command": null,
"args": []
},
{
"name": "proxy",
"readinessProbe": null,
"livenessProbe": null
},
{
"name": "kube-rbac-proxy",
"readinessProbe": null,
"livenessProbe": null
}
]
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion images/hooks/cmd/virtualization-module-hooks/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ import (
_ "hooks/pkg/hooks/discovery-workload-nodes"
_ "hooks/pkg/hooks/drop-openshift-labels"
_ "hooks/pkg/hooks/generate-secret-for-dvcr"
_ "hooks/pkg/hooks/install-vmclass-generic"
_ "hooks/pkg/hooks/migrate-delete-renamed-validation-admission-policy"
_ "hooks/pkg/hooks/migrate-virthandler-kvm-node-labels"
_ "hooks/pkg/hooks/prevent-default-vmclasses-deletion"
_ "hooks/pkg/hooks/tls-certificates-api"
_ "hooks/pkg/hooks/tls-certificates-api-proxy"
_ "hooks/pkg/hooks/tls-certificates-controller"
Expand Down
Loading
Loading