Skip to content

Commit c80ed73

Browse files
fix(bumpup): Pism-Go-Client v0.6.0, CCM v0.6.0 (#625)
1 parent 79e51d0 commit c80ed73

File tree

14 files changed

+131
-39
lines changed

14 files changed

+131
-39
lines changed

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,6 @@ mocks: ## Generate mocks for the project
368368
mockgen -destination=mocks/k8sclient/informer.go -package=mockk8sclient k8s.io/client-go/informers/core/v1 ConfigMapInformer,SecretInformer
369369
mockgen -destination=mocks/k8sclient/lister.go -package=mockk8sclient k8s.io/client-go/listers/core/v1 SecretLister,SecretNamespaceLister
370370
mockgen -destination=mocks/k8sapimachinery/interfaces.go -package=mockmeta k8s.io/apimachinery/pkg/api/meta RESTMapper,RESTScope
371-
mockgen -destination=mocks/nutanix/v3.go -package=mocknutanixv3 github.com/nutanix-cloud-native/prism-go-client/v3 Service
372371
mockgen -destination=mocks/converged/vms.go -package=mockconverged github.com/nutanix-cloud-native/prism-go-client/converged VMs
373372
mockgen -destination=mocks/converged/operation.go -package=mockconverged github.com/nutanix-cloud-native/prism-go-client/converged Operation
374373
mockgen -destination=mocks/converged/anti_affinity_policies.go -package=mockconverged github.com/nutanix-cloud-native/prism-go-client/converged AntiAffinityPolicies

controllers/helpers_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2513,7 +2513,7 @@ type MockConvergedClientWrapper struct {
25132513
Client *v4Converged.Client
25142514

25152515
MockAntiAffinityPolicies *mockconverged.MockAntiAffinityPolicies[policyModels.VmAntiAffinityPolicy]
2516-
MockClusters *mockconverged.MockClusters[clusterModels.Cluster, clusterModels.VirtualGpuProfile, clusterModels.PhysicalGpuProfile]
2516+
MockClusters *mockconverged.MockClusters[clusterModels.Cluster, clusterModels.VirtualGpuProfile, clusterModels.PhysicalGpuProfile, clusterModels.Host]
25172517
MockCategories *mockconverged.MockCategories[prismModels.Category]
25182518
MockImages *mockconverged.MockImages[imageModels.Image]
25192519
MockStorageContainers *mockconverged.MockStorageContainers[clusterModels.StorageContainer]
@@ -2526,7 +2526,7 @@ type MockConvergedClientWrapper struct {
25262526
// NewMockConvergedClient creates a new mock converged client
25272527
func NewMockConvergedClient(ctrl *gomock.Controller) *MockConvergedClientWrapper {
25282528
mockAntiAffinityPolicies := mockconverged.NewMockAntiAffinityPolicies[policyModels.VmAntiAffinityPolicy](ctrl)
2529-
mockClusters := mockconverged.NewMockClusters[clusterModels.Cluster, clusterModels.VirtualGpuProfile, clusterModels.PhysicalGpuProfile](ctrl)
2529+
mockClusters := mockconverged.NewMockClusters[clusterModels.Cluster, clusterModels.VirtualGpuProfile, clusterModels.PhysicalGpuProfile, clusterModels.Host](ctrl)
25302530
mockCategories := mockconverged.NewMockCategories[prismModels.Category](ctrl)
25312531
mockImages := mockconverged.NewMockImages[imageModels.Image](ctrl)
25322532
mockStorageContainers := mockconverged.NewMockStorageContainers[clusterModels.StorageContainer](ctrl)
@@ -2542,6 +2542,7 @@ func NewMockConvergedClient(ctrl *gomock.Controller) *MockConvergedClientWrapper
25422542
clusterModels.Cluster,
25432543
clusterModels.VirtualGpuProfile,
25442544
clusterModels.PhysicalGpuProfile,
2545+
clusterModels.Host,
25452546
prismModels.Category,
25462547
imageModels.Image,
25472548
clusterModels.StorageContainer,

go.mod

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ require (
1010
github.com/go-logr/logr v1.4.2
1111
github.com/google/go-cmp v0.7.0
1212
github.com/google/uuid v1.6.0
13-
github.com/nutanix-cloud-native/prism-go-client v0.5.0
13+
github.com/nutanix-cloud-native/prism-go-client v0.6.0
1414
github.com/nutanix/ntnx-api-golang-clients/volumes-go-client/v4 v4.1.1
1515
github.com/onsi/ginkgo/v2 v2.23.4
1616
github.com/onsi/gomega v1.36.3
@@ -187,7 +187,6 @@ require (
187187
)
188188

189189
replace (
190-
github.com/nutanix-cloud-native/prism-go-client => github.com/nutanix-cloud-native/prism-go-client v0.5.2-0.20251023040331-ea5df46774dd
191190
// CVE fixes for https://avd.aquasec.com/nvd/2024/cve-2024-45338
192191
golang.org/x/net => golang.org/x/net v0.33.0
193192
sigs.k8s.io/kind v0.20.0 => sigs.k8s.io/kind v0.22.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,8 @@ github.com/morikuni/aec v1.0.0 h1:nP9CBfwrvYnBRgY6qfDQkygYDmYwOilePFkwzv4dU8A=
268268
github.com/morikuni/aec v1.0.0/go.mod h1:BbKIizmSmc5MMPqRYbxO4ZU0S0+P200+tUnFx7PXmsc=
269269
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq1c1nUAm88MOHcQC9l5mIlSMApZMrHA=
270270
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ=
271-
github.com/nutanix-cloud-native/prism-go-client v0.5.2-0.20251023040331-ea5df46774dd h1:UhfmnlEC/l7Ll+bzXkPF9J+IA0mJPbMWgPpzzZnJYGM=
272-
github.com/nutanix-cloud-native/prism-go-client v0.5.2-0.20251023040331-ea5df46774dd/go.mod h1:MGMzqONi2f9aZHeWwQYwL5j/r6Kxv56g6VIvkVFIlbU=
271+
github.com/nutanix-cloud-native/prism-go-client v0.6.0 h1:aNWmQaVZnjfY7g5hxfBv0t+bpA4HlTNGHMU1NJeXKlA=
272+
github.com/nutanix-cloud-native/prism-go-client v0.6.0/go.mod h1:MGMzqONi2f9aZHeWwQYwL5j/r6Kxv56g6VIvkVFIlbU=
273273
github.com/nutanix/ntnx-api-golang-clients/clustermgmt-go-client/v4 v4.1.1 h1:4ZkiY4yavcy3Suwi5ntofjh3mzL3muTCVs9OPkZ940k=
274274
github.com/nutanix/ntnx-api-golang-clients/clustermgmt-go-client/v4 v4.1.1/go.mod h1:sd4Fnk6MVfEDVY+8WyRoQTmLhi2SgZ3riySWErVHf8E=
275275
github.com/nutanix/ntnx-api-golang-clients/networking-go-client/v4 v4.1.1 h1:XqAQX+sT8EZBRoJbhBm2jpjYGnHd//mjx1PjQI+zIGQ=

mocks/converged/clusters.go

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

scripts/ccm_nutanix_update.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16-
NUTANIX_CCM_VERSION=0.3.2
16+
NUTANIX_CCM_VERSION=0.6.0
1717
NUTANIX_CCM_REPO=ghcr.io/nutanix-cloud-native/cloud-provider-nutanix/controller
1818

1919
helm repo add nutanix https://nutanix.github.io/helm/ --force-update && helm repo update

templates/ccm/nutanix-ccm.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ spec:
189189
key: node.kubernetes.io/not-ready
190190
operator: Exists
191191
containers:
192-
- image: "${CCM_REPO=ghcr.io/nutanix-cloud-native/cloud-provider-nutanix/controller}:${CCM_TAG=v0.5.4}"
192+
- image: "${CCM_REPO=ghcr.io/nutanix-cloud-native/cloud-provider-nutanix/controller}:${CCM_TAG=v0.6.0}"
193193
imagePullPolicy: IfNotPresent
194194
name: nutanix-cloud-controller-manager
195195
env:

templates/cluster-template-csi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ data:
200200
key: node.kubernetes.io/not-ready
201201
operator: Exists
202202
containers:
203-
- image: "${CCM_REPO=ghcr.io/nutanix-cloud-native/cloud-provider-nutanix/controller}:${CCM_TAG=v0.5.4}"
203+
- image: "${CCM_REPO=ghcr.io/nutanix-cloud-native/cloud-provider-nutanix/controller}:${CCM_TAG=v0.6.0}"
204204
imagePullPolicy: IfNotPresent
205205
name: nutanix-cloud-controller-manager
206206
env:

templates/cluster-template-csi3.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ data:
200200
key: node.kubernetes.io/not-ready
201201
operator: Exists
202202
containers:
203-
- image: "${CCM_REPO=ghcr.io/nutanix-cloud-native/cloud-provider-nutanix/controller}:${CCM_TAG=v0.5.4}"
203+
- image: "${CCM_REPO=ghcr.io/nutanix-cloud-native/cloud-provider-nutanix/controller}:${CCM_TAG=v0.6.0}"
204204
imagePullPolicy: IfNotPresent
205205
name: nutanix-cloud-controller-manager
206206
env:

0 commit comments

Comments
 (0)