Repository navigation
Commit e4d715f
deps: comprehensive dependency upgrade to latest versions
This commit modernizes all dependencies and removes obsolete packages while
maintaining full API compatibility and test coverage.
Upgrades completed:
- github.com/openshift/api: v3.9.1+incompatible -> v0.0.0-20260521125114 (latest)
- github.com/pkg/errors: v0.9.1 -> v0.9.2-0.20260327151000 (latest commit)
- github.com/sirupsen/logrus: v1.8.3 -> v1.9.4
- github.com/spf13/pflag: v1.0.5 -> v1.0.10
- github.com/stretchr/testify: v1.7.0 -> v1.11.1
- github.com/vmware/go-vmware-nsxt: v0.0.0-20201207175959 -> v0.0.0-20230223012718
- github.com/vmware/vsphere-automation-sdk-go/runtime: v0.7.0 -> v0.8.1-0.20250317060414
- github.com/vmware/vsphere-automation-sdk-go/services/nsxt: v0.12.0 -> v0.12.1-0.20250317060414
- gopkg.in/ini.v1: v1.51.0 -> v1.67.2
Kubernetes ecosystem coordinated upgrade:
- k8s.io/api: v0.18.2 -> v0.36.1
- k8s.io/apimachinery: v0.18.3 -> v0.36.1
- k8s.io/client-go: v12.0.0+incompatible -> v0.36.1
- k8s.io/kubectl: v0.17.4 -> v0.36.1
- sigs.k8s.io/controller-runtime: v0.5.2 -> v0.24.1
Indirect dependency upgrades:
- github.com/klauspost/compress: v1.18.1 -> v1.18.6
- golang.org/x/net: v0.53.0 -> v0.55.0
- golang.org/x/oauth2: v0.35.0 -> v0.36.0
- golang.org/x/sys: v0.43.0 -> v0.45.0
- golang.org/x/term: v0.42.0 -> v0.43.0
- golang.org/x/text: v0.36.0 -> v0.37.0
- golang.org/x/time: v0.14.0 -> v0.15.0
Dependencies removed:
- github.com/ghodss/yaml v1.0.0 (replaced with sigs.k8s.io/yaml v1.6.0)
- github.com/imdario/mergo v0.3.7 (replaced with dario.cat/mergo v1.0.2)
- github.com/openshift/cluster-network-operator v0.0.0-20200505233431 (internalized utilities)
- github.com/openshift/library-go v0.0.0-20200511081854 (internalized helpers)
- github.com/operator-framework/operator-sdk v0.17.1 (no longer needed)
Dependencies added:
- dario.cat/mergo v1.0.2 (modern replacement for imdario/mergo)
- github.com/go-logr/zapr v1.3.1-0.20260413055308 (latest commit)
- go.uber.org/zap v1.28.0 (structured logging)
- k8s.io/utils v0.0.0-20260507154919 (Kubernetes utilities)
- sigs.k8s.io/yaml v1.6.0 (modern YAML library)
Comprehensive application logic changes:
- Removed dependency on openshift/cluster-network-operator by internalizing utilities:
* Created pkg/util/render/render.go with custom template rendering
* Created pkg/util/k8s/unstructured.go with ToUnstructured helper
* Created pkg/util/k8s/v1helpers.go with status condition helpers
- Updated import paths across all controllers to use internal utilities
- Replaced github.com/ghodss/yaml with sigs.k8s.io/yaml throughout codebase
- Fixed controller-runtime v0.18+ status subresource semantics in tests:
* Configured fake clients with WithStatusSubresource()
* Changed client.Update() to client.Status().Update() for status fields
- Updated Go version requirement to 1.26.2
- Modernized dependency analyzer script with enhanced pseudo-version handling
- All unit tests pass with new dependency versions
- Build verified with latest Kubernetes v0.36.1 APIs
This upgrade resolves version conflicts, removes 216+ obsolete transitive
dependencies, and positions the project for modern Kubernetes environments.
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent ee1184a commit e4d715f
16 files changed
Lines changed: 1695 additions & 1511 deletions
File tree
- cmd/manager
- pkg
- controller
- configmap
- node
- pod
- statusmanager
- types
- util
- k8s
- render
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
| |||
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
16 | | - | |
17 | 15 | | |
18 | 16 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
| 17 | + | |
23 | 18 | | |
24 | | - | |
| 19 | + | |
| 20 | + | |
25 | 21 | | |
26 | 22 | | |
27 | | - | |
28 | 23 | | |
29 | 24 | | |
30 | 25 | | |
| |||
33 | 28 | | |
34 | 29 | | |
35 | 30 | | |
36 | | - | |
37 | 31 | | |
38 | 32 | | |
39 | 33 | | |
40 | | - | |
41 | | - | |
42 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | 56 | | |
66 | 57 | | |
67 | 58 | | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
72 | 62 | | |
73 | 63 | | |
74 | 64 | | |
| |||
78 | 68 | | |
79 | 69 | | |
80 | 70 | | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
| 71 | + | |
| 72 | + | |
107 | 73 | | |
108 | | - | |
| 74 | + | |
109 | 75 | | |
110 | 76 | | |
111 | 77 | | |
112 | | - | |
113 | | - | |
| 78 | + | |
114 | 79 | | |
115 | | - | |
| 80 | + | |
116 | 81 | | |
117 | 82 | | |
118 | 83 | | |
119 | 84 | | |
120 | 85 | | |
121 | 86 | | |
122 | 87 | | |
123 | | - | |
| 88 | + | |
124 | 89 | | |
125 | 90 | | |
126 | 91 | | |
127 | 92 | | |
128 | 93 | | |
129 | | - | |
| 94 | + | |
130 | 95 | | |
131 | 96 | | |
132 | 97 | | |
133 | 98 | | |
134 | 99 | | |
135 | 100 | | |
136 | | - | |
| 101 | + | |
137 | 102 | | |
138 | 103 | | |
139 | 104 | | |
| |||
0 commit comments