Skip to content

Commit

Permalink
Update golang to 1.20.7 (#2884)
Browse files Browse the repository at this point in the history
* Update golang to 1.20.7

Use the cdi builder which is configured with golang 1.20.7
Updated some libraries to the latest version, specifically
excluding k8s and runtime-controller due to issues that need
to be resolved outside of this commit.

Signed-off-by: Alexander Wels <awels@redhat.com>

* Fix linter issue
Fix generate verify issue

Signed-off-by: Alexander Wels <awels@redhat.com>

* Ran make deps-update

Signed-off-by: Alexander Wels <awels@redhat.com>

* Fix cdi verify go mod

Signed-off-by: Alexander Wels <awels@redhat.com>

---------

Signed-off-by: Alexander Wels <awels@redhat.com>
  • Loading branch information
awels committed Sep 3, 2023
1 parent 9b890db commit bd63352
Show file tree
Hide file tree
Showing 737 changed files with 64,496 additions and 15,981 deletions.
82 changes: 0 additions & 82 deletions .travis.yml

This file was deleted.

64 changes: 15 additions & 49 deletions api/openapi-spec/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,33 +40,7 @@
}
}
},
"/apis": {
"get": {
"description": "Get a CDI API GroupList",
"produces": [
"application/json"
],
"operationId": "getUploadAPIs",
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.APIGroupList"
}
},
"401": {
"description": "Unauthorized"
},
"404": {
"description": "Not Found",
"schema": {
"type": "string"
}
}
}
}
},
"/apis/cdi.kubevirt.io/": {
"/apis/cdi.kubevirt.io": {
"get": {
"description": "Get a KubeVirt CDI API group",
"produces": [
Expand All @@ -92,7 +66,7 @@
}
}
},
"/apis/cdi.kubevirt.io/v1beta1/": {
"/apis/cdi.kubevirt.io/v1beta1": {
"get": {
"description": "Get KubeVirt API Resources",
"produces": [
Expand Down Expand Up @@ -3509,7 +3483,7 @@
}
}
},
"/apis/upload.cdi.kubevirt.io/v1beta1/": {
"/apis/upload.cdi.kubevirt.io/v1beta1": {
"get": {
"description": "Get a CDI API resources",
"produces": [
Expand Down Expand Up @@ -3602,22 +3576,6 @@
}
}
}
},
"/openapi/v2": {
"get": {
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"operationId": "func5",
"responses": {
"401": {
"description": "Unauthorized"
}
}
}
}
},
"definitions": {
Expand Down Expand Up @@ -4363,8 +4321,12 @@
"type": "string"
},
"volumeMode": {
"description": "volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec.",
"type": "string"
"description": "volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec.\n\nPossible enum values:\n - `\"Block\"` means the volume will not be formatted with a filesystem and will remain a raw block device.\n - `\"Filesystem\"` means the volume will be or is formatted with a filesystem.",
"type": "string",
"enum": [
"Block",
"Filesystem"
]
},
"volumeName": {
"description": "volumeName is the binding reference to the PersistentVolume backing this claim.",
Expand Down Expand Up @@ -6003,8 +5965,12 @@
"type": "string"
},
"volumeMode": {
"description": "volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec.",
"type": "string"
"description": "volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec.\n\nPossible enum values:\n - `\"Block\"` means the volume will not be formatted with a filesystem and will remain a raw block device.\n - `\"Filesystem\"` means the volume will be or is formatted with a filesystem.",
"type": "string",
"enum": [
"Block",
"Filesystem"
]
},
"volumeName": {
"description": "VolumeName is the binding reference to the PersistentVolume backing this claim.",
Expand Down
2 changes: 1 addition & 1 deletion cmd/cdi-operator/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ go_library(
"//pkg/operator/controller:go_default_library",
"//pkg/util:go_default_library",
"//staging/src/kubevirt.io/containerized-data-importer-api/pkg/apis/core/v1beta1:go_default_library",
"//vendor/github.com/coreos/prometheus-operator/pkg/apis/monitoring/v1:go_default_library",
"//vendor/github.com/openshift/api/config/v1:go_default_library",
"//vendor/github.com/openshift/api/route/v1:go_default_library",
"//vendor/github.com/openshift/api/security/v1:go_default_library",
"//vendor/github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1:go_default_library",
"//vendor/go.uber.org/zap/zapcore:go_default_library",
"//vendor/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1:go_default_library",
"//vendor/k8s.io/kube-aggregator/pkg/apis/apiregistration/v1:go_default_library",
Expand Down
2 changes: 1 addition & 1 deletion cmd/cdi-operator/operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ import (
"runtime"
"strconv"

promv1 "github.com/coreos/prometheus-operator/pkg/apis/monitoring/v1"
ocpconfigv1 "github.com/openshift/api/config/v1"
routev1 "github.com/openshift/api/route/v1"
secv1 "github.com/openshift/api/security/v1"
promv1 "github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1"
"go.uber.org/zap/zapcore"
extv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
apiregistrationv1 "k8s.io/kube-aggregator/pkg/apis/apiregistration/v1"
Expand Down
Loading

0 comments on commit bd63352

Please sign in to comment.