Skip to content

Commit ce94262

Browse files
Temporarily vendor local k8s-operator-libs restart-only predicate
The restart-only feature depends on the RestartOnlyPredicate hook in k8s-operator-libs, which is not yet released. To let the operator build against it and to make this branch reviewable end-to-end, add a go.mod replace pointing at a local k8s-operator-libs checkout and vendor the modified upgrade-package files. This is a throwaway shim for discussion only -- the replace uses an absolute local path and will not build elsewhere. Drop this commit before merge; the real change bumps the dependency to a tagged library release. Signed-off-by: Rajath Agasthya <ragasthya@nvidia.com>
1 parent 30d844a commit ce94262

5 files changed

Lines changed: 52 additions & 6 deletions

File tree

go.mod

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,3 +130,5 @@ require (
130130
sigs.k8s.io/randfill v1.0.0 // indirect
131131
sigs.k8s.io/structured-merge-diff/v6 v6.3.2 // indirect
132132
)
133+
134+
replace github.com/NVIDIA/k8s-operator-libs => /Users/ragasthya/workspace/k8s-operator-libs

vendor/github.com/NVIDIA/k8s-operator-libs/pkg/upgrade/common_manager.go

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/NVIDIA/k8s-operator-libs/pkg/upgrade/upgrade_inplace.go

Lines changed: 27 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/NVIDIA/k8s-operator-libs/pkg/upgrade/upgrade_state.go

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/modules.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ github.com/NVIDIA/go-nvlib/pkg/pciids
3030
# github.com/NVIDIA/k8s-kata-manager v0.2.3
3131
## explicit; go 1.23.0
3232
github.com/NVIDIA/k8s-kata-manager/api/v1alpha1/config
33-
# github.com/NVIDIA/k8s-operator-libs v0.0.0-20260505175649-fa6a3643c441
33+
# github.com/NVIDIA/k8s-operator-libs v0.0.0-20260505175649-fa6a3643c441 => /Users/ragasthya/workspace/k8s-operator-libs
3434
## explicit; go 1.26.0
3535
github.com/NVIDIA/k8s-operator-libs/api/upgrade/v1alpha1
3636
github.com/NVIDIA/k8s-operator-libs/pkg/consts
@@ -1181,3 +1181,4 @@ sigs.k8s.io/structured-merge-diff/v6/value
11811181
## explicit; go 1.22
11821182
sigs.k8s.io/yaml
11831183
sigs.k8s.io/yaml/kyaml
1184+
# github.com/NVIDIA/k8s-operator-libs => /Users/ragasthya/workspace/k8s-operator-libs

0 commit comments

Comments
 (0)