Skip to content

Commit 7d38fdb

Browse files
committed
chore: add modules in ko, exclude syslog-health-monitor
1 parent ee3de2b commit 7d38fdb

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

.ko.yaml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ builds:
2828
dir: fault-quarantine-module
2929
main: .
3030

31-
- id: fault-remediation
31+
- id: fault-remediation-module
3232
dir: fault-remediation-module
3333
main: .
3434

@@ -44,12 +44,6 @@ builds:
4444
dir: health-monitors/csp-health-monitor
4545
main: cmd/maintenance-notifier
4646

47-
- id: syslog-health-monitor
48-
baseImage: nvcr.io/nvidia/cuda:12.1.1-base-ubuntu22.04
49-
dir: health-monitors/syslog-health-monitor
50-
env: [CGO_ENABLED=1]
51-
main: .
52-
5347
- id: labeler-module
5448
dir: labeler-module
5549
main: .
@@ -61,4 +55,4 @@ builds:
6155
labels:
6256
org.opencontainers.image.source: "https://github.com/nvidia/nvsentinel"
6357
org.opencontainers.image.licenses: "Apache-2.0"
64-
org.opencontainers.image.title: "NVSentinel"
58+
org.opencontainers.image.title: "NVSentinel"

scripts/buildko

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@ export BUILD_DATE=$(date -u +%FT%TZ)
1010
# Ensure go.work file exists
1111
if [ ! -f go.work ]; then
1212
go work init
13+
go work use \
14+
./fault-quarantine-module \
15+
./fault-remediation-module \
16+
./health-events-analyzer \
17+
./health-monitors/csp-health-monitor/cmd/csp-health-monitor \
18+
./health-monitors/csp-health-monitor/cmd/maintenance-notifier \
19+
./labeler-module \
20+
./node-drainer-module \
21+
./platform-connectors
1322
fi
1423

1524
ko build -B --sbom=cyclonedx --tags="${VERSION}-slim" --tags=latest \
@@ -18,7 +27,6 @@ ko build -B --sbom=cyclonedx --tags="${VERSION}-slim" --tags=latest \
1827
./health-events-analyzer \
1928
./health-monitors/csp-health-monitor/cmd/csp-health-monitor \
2029
./health-monitors/csp-health-monitor/cmd/maintenance-notifier \
21-
./health-monitors/syslog-health-monitor \
2230
./labeler-module \
2331
./node-drainer-module \
2432
./platform-connectors

0 commit comments

Comments
 (0)