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
9 changes: 9 additions & 0 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,15 @@ tasks:
cmds:
- werf build {{ .target }}

base-images-in-use:
desc: |
Show base images used by the module.
deps:
- check-werf
- check-yq
cmds:
- (werf config render ; SVACE_ENABLED=true werf config render ) | yq -ojson | jq .fromImage | sort | uniq -c

dev:format:yaml:
desc: "Format non-templated YAML files, e.g. CRDs"
cmds:
Expand Down
514 changes: 264 additions & 250 deletions build/base-images/deckhouse_images.yml

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions images/cdi-artifact/werf.inc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ shell:
---
image: {{ .ModuleNamePrefix }}{{ .ImageName }}
final: false
fromImage: {{ eq $.SVACE_ENABLED "false" | ternary "builder/alt" "builder/alt-go-svace" }}
fromImage: {{ eq $.SVACE_ENABLED "false" | ternary "builder/alt" "builder/golang-alt-svace-1.24.9" }}
mount:
- fromPath: ~/go-pkg-cache
to: /go/pkg
Expand Down Expand Up @@ -150,7 +150,7 @@ shell:
---
image: {{ .ModuleNamePrefix }}{{ .ImageName }}-cbuilder
final: false
fromImage: {{ eq $.SVACE_ENABLED "false" | ternary "builder/golang-bookworm-1.24" "builder/alt-go-svace" }}
fromImage: {{ eq $.SVACE_ENABLED "false" | ternary "builder/golang-bookworm-1.24" "builder/golang-alt-svace-1.24.9" }}
git:
- add: {{ .ModuleDir }}/images/{{ .ImageName }}
to: /
Expand Down
2 changes: 1 addition & 1 deletion images/cdi-cloner/werf.inc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ shell:
---
image: {{ .ModuleNamePrefix }}{{ .ImageName }}-gobuild
final: false
fromImage: {{ eq $.SVACE_ENABLED "false" | ternary "builder/golang-bookworm-1.24" "builder/alt-go-svace" }}
fromImage: {{ eq $.SVACE_ENABLED "false" | ternary "builder/golang-bookworm-1.24" "builder/golang-alt-svace-1.24.9" }}
git:
- add: {{ .ModuleDir }}/images/{{ .ImageName }}/cloner-startup
to: /app
Expand Down
2 changes: 1 addition & 1 deletion images/dvcr-artifact/werf.inc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ packages:

image: {{ .ModuleNamePrefix }}{{ .ImageName }}-builder
final: false
fromImage: {{ eq $.SVACE_ENABLED "false" | ternary "builder/alt" "builder/alt-go-svace" }}
fromImage: {{ eq $.SVACE_ENABLED "false" | ternary "builder/alt" "builder/golang-alt-svace-1.24.9" }}
git:
- add: {{ .ModuleDir }}/images/{{ .ImageName }}
to: /src
Expand Down
2 changes: 1 addition & 1 deletion images/dvcr/werf.inc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ imageSpec:
---
image: {{ .ModuleNamePrefix }}{{ .ImageName }}-builder
final: false
fromImage: {{ eq $.SVACE_ENABLED "false" | ternary "builder/golang-bookworm-1.24" "builder/alt-go-svace" }}
fromImage: {{ eq $.SVACE_ENABLED "false" | ternary "builder/golang-bookworm-1.24" "builder/golang-alt-svace-1.24.9" }}
mount:
- fromPath: ~/go-pkg-cache
to: /go/pkg
Expand Down
2 changes: 1 addition & 1 deletion images/hooks/werf.inc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ shell:
---
image: {{ .ModuleNamePrefix }}go-hooks-artifact
final: false
fromImage: {{ eq $.SVACE_ENABLED "false" | ternary "builder/golang-bookworm-1.24" "builder/alt-go-svace" }}
fromImage: {{ eq $.SVACE_ENABLED "false" | ternary "builder/golang-bookworm-1.24" "builder/golang-alt-svace-1.24.9" }}
import:
- image: {{ .ModuleNamePrefix }}{{ .ImageName }}-src-artifact
add: /src
Expand Down
2 changes: 1 addition & 1 deletion images/kube-api-rewriter/werf.inc.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
image: {{ .ModuleNamePrefix }}{{ .ImageName }}-builder
final: false
fromImage: {{ eq $.SVACE_ENABLED "false" | ternary "builder/golang-bookworm-1.24" "builder/alt-go-svace" }}
fromImage: {{ eq $.SVACE_ENABLED "false" | ternary "builder/golang-bookworm-1.24" "builder/golang-alt-svace-1.24.9" }}
git:
- add: {{ .ModuleDir }}/images/{{ .ImageName }}
to: /src/kube-api-rewriter
Expand Down
2 changes: 1 addition & 1 deletion images/libvirt/werf.inc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ packages:
{{ $builderDependencies := include "$name" . | fromYaml }}
image: {{ .ModuleNamePrefix }}{{ .ImageName }}
final: false
fromImage: {{ eq $.SVACE_ENABLED "false" | ternary "builder/alt" "builder/alt-go-svace" }}
fromImage: {{ eq $.SVACE_ENABLED "false" | ternary "builder/alt" "builder/golang-alt-svace-1.24.9" }}
import:
- image: {{ .ModuleNamePrefix }}{{ .ImageName }}-src-artifact
add: /src/{{ $gitRepoName }}-{{ $version }}
Expand Down
2 changes: 1 addition & 1 deletion images/packages/swtpm/werf.inc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ packages:

image: {{ .ModuleNamePrefix }}{{ .PackagePath }}/{{ .ImageName }}-builder
final: false
fromImage: {{ eq $.SVACE_ENABLED "false" | ternary "builder/alt" "builder/alt-go-svace" }}
fromImage: {{ eq $.SVACE_ENABLED "false" | ternary "builder/alt" "builder/golang-alt-svace-1.24.9" }}
import:
- image: {{ .ModuleNamePrefix }}{{ .PackagePath }}/{{ .ImageName }}-src-artifact
add: /src
Expand Down
2 changes: 1 addition & 1 deletion images/pre-delete-hook/werf.inc.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
image: {{ .ModuleNamePrefix }}{{ .ImageName }}-builder
final: false
fromImage: {{ eq $.SVACE_ENABLED "false" | ternary "builder/golang-bookworm-1.24" "builder/alt-go-svace" }}
fromImage: {{ eq $.SVACE_ENABLED "false" | ternary "builder/golang-bookworm-1.24" "builder/golang-alt-svace-1.24.9" }}
git:
- add: {{ .ModuleDir }}/images/{{ .ImageName }}
to: /pre-delete-hook
Expand Down
2 changes: 1 addition & 1 deletion images/qemu/werf.inc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ packages:

image: {{ .ModuleNamePrefix }}{{ .ImageName }}
final: false
fromImage: {{ eq $.SVACE_ENABLED "false" | ternary "builder/alt" "builder/alt-go-svace" }}
fromImage: {{ eq $.SVACE_ENABLED "false" | ternary "builder/alt" "builder/golang-alt-svace-1.24.9" }}
import:
- image: {{ .ModuleNamePrefix }}{{ .ImageName }}-src-artifact
add: /src/{{ $gitRepoName }}-{{ $version }}
Expand Down
4 changes: 2 additions & 2 deletions images/virt-artifact/werf.inc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ packages:

image: {{ .ModuleNamePrefix }}{{ .ImageName }}
final: false
fromImage: {{ eq $.SVACE_ENABLED "false" | ternary "builder/alt" "builder/alt-go-svace" }}
fromImage: {{ eq $.SVACE_ENABLED "false" | ternary "builder/alt" "builder/golang-alt-svace-1.24.9" }}
mount:
- fromPath: ~/go-pkg-cache
to: /go/pkg
Expand Down Expand Up @@ -85,7 +85,7 @@ shell:
export GOPROXY=$(cat /run/secrets/GOPROXY)
mkdir -p ~/.ssh && echo "StrictHostKeyChecking accept-new" > ~/.ssh/config
cd /kubevirt

go mod download
go mod vendor

Expand Down
4 changes: 2 additions & 2 deletions images/virt-launcher/werf.inc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ shell:
---
image: {{ .ModuleNamePrefix }}{{ .ImageName }}-gobuilder
final: false
fromImage: {{ eq $.SVACE_ENABLED "false" | ternary "builder/golang-bookworm-1.24" "builder/alt-go-svace" }}
fromImage: {{ eq $.SVACE_ENABLED "false" | ternary "builder/golang-bookworm-1.24" "builder/golang-alt-svace-1.24.9" }}
git:
- add: {{ .ModuleDir }}/images/{{ .ImageName }}/node-labeller
to: /node-labeller
Expand Down Expand Up @@ -451,7 +451,7 @@ shell:
---
image: {{ .ModuleNamePrefix }}{{ .ImageName }}-cbuilder
final: false
fromImage: {{ eq $.SVACE_ENABLED "false" | ternary "builder/golang-bookworm-1.24" "builder/alt-go-svace" }}
fromImage: {{ eq $.SVACE_ENABLED "false" | ternary "builder/golang-bookworm-1.24" "builder/golang-alt-svace-1.24.9" }}
git:
- add: {{ .ModuleDir }}/images/{{ .ImageName }}/static_binaries
to: /static_binaries
Expand Down
2 changes: 1 addition & 1 deletion images/virtualization-artifact/werf.inc.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
image: {{ .ModuleNamePrefix }}{{ .ImageName }}
final: false
fromImage: {{ eq $.SVACE_ENABLED "false" | ternary "builder/golang-bookworm-1.24" "builder/alt-go-svace" }}
fromImage: {{ eq $.SVACE_ENABLED "false" | ternary "builder/golang-bookworm-1.24" "builder/golang-alt-svace-1.24.9" }}
git:
- add: {{ .ModuleDir }}/api
to: /src/api
Expand Down
4 changes: 2 additions & 2 deletions images/vm-route-forge/werf.inc.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
image: {{ .ModuleNamePrefix }}{{ .ImageName }}-builder
final: false
fromImage: {{ eq $.SVACE_ENABLED "false" | ternary "builder/golang-bookworm-1.24" "builder/alt-go-svace" }}
fromImage: {{ eq $.SVACE_ENABLED "false" | ternary "builder/golang-bookworm-1.24" "builder/golang-alt-svace-1.24.9" }}
git:
- add: {{ .ModuleDir }}/images/{{ .ImageName }}
to: /app/images/vm-route-forge
Expand Down Expand Up @@ -34,7 +34,7 @@ shell:
- export CGO_ENABLED=0
- |
{{- $_ := set $ "ProjectName" (list $.ImageName "vm-route-forge" | join "/") }}

{{- if eq $.DEBUG_COMPONENT "delve/vm-route-forge" }}
go build -o vm-route-forge cmd/vm-route-forge/main.go
{{- else }}
Expand Down
24 changes: 12 additions & 12 deletions monitoring/grafana-dashboards/main/virtual-machine.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"type": "prometheus",
"uid": "${ds_prometheus}"
},
"description": "",
"description": "Shows the current status of the virtual machine including Running, Stopped, Migrating, and other operational states.",
"fieldConfig": {
"defaults": {
"color": {
Expand Down Expand Up @@ -165,7 +165,7 @@
"refId": "A"
}
],
"title": "VM status ",
"title": "Status",
"type": "stat"
},
{
Expand Down Expand Up @@ -308,7 +308,7 @@
"type": "prometheus",
"uid": "${ds_prometheus}"
},
"description": "",
"description": "Shows the current CPU core usage percentage of the virtual machine, including OS usage, hypervisor overhead, and CPU reservation levels.",
"fieldConfig": {
"defaults": {
"decimals": 1,
Expand Down Expand Up @@ -448,7 +448,7 @@
"type": "prometheus",
"uid": "${ds_prometheus}"
},
"description": "",
"description": "Displays the current memory usage percentage of the virtual machine based on configured memory allocation.",
"fieldConfig": {
"defaults": {
"decimals": 1,
Expand Down Expand Up @@ -565,7 +565,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "P0D6E4079E36703EB"
"uid": "${ds_prometheus}"
},
"editorMode": "code",
"exemplar": false,
Expand Down Expand Up @@ -637,7 +637,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "P0D6E4079E36703EB"
"uid": "${ds_prometheus}"
},
"editorMode": "code",
"exemplar": false,
Expand All @@ -648,15 +648,15 @@
"refId": "A"
}
],
"title": "Total disks usage",
"title": "Total filesystem usage",
"type": "gauge"
},
{
"datasource": {
"type": "prometheus",
"uid": "${ds_prometheus}"
},
"description": "",
"description": "Shows the agent readiness status for the virtual machine, indicating whether the VM agent is ready to receive commands.",
"fieldConfig": {
"defaults": {
"color": {
Expand Down Expand Up @@ -1002,7 +1002,7 @@
"type": "prometheus",
"uid": "${ds_prometheus}"
},
"description": "",
"description": "Displays memory usage percentage over time, showing how much of the allocated memory is being used by the virtual machine.",
"fieldConfig": {
"defaults": {
"color": {
Expand Down Expand Up @@ -1167,7 +1167,7 @@
"type": "prometheus",
"uid": "${ds_prometheus}"
},
"description": "",
"description": "Shows network bandwidth utilization displaying transmit and receive data rates for all network interfaces in the virtual machine.",
"fieldConfig": {
"defaults": {
"color": {
Expand Down Expand Up @@ -1747,7 +1747,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "P0D6E4079E36703EB"
"uid": "${ds_prometheus}"
},
"editorMode": "code",
"expr": "rate(d8_virtualization_virtualmachine_migration_data_processed_bytes{namespace=\"$namespace\", name=\"$name\"}[$__rate_interval])",
Expand Down Expand Up @@ -2398,7 +2398,7 @@
"type": "prometheus",
"uid": "${ds_prometheus}"
},
"description": "",
"description": "Timeline visualization displaying the virtual machine status changes over time, including running, stopped, migrating, and other states.",
"fieldConfig": {
"defaults": {
"color": {
Expand Down
Loading