Skip to content

Commit

Permalink
Vendor gardener 1.57.1 and upgrade ginkgo to v2 (#450)
Browse files Browse the repository at this point in the history
* Vendor gardener 1.57.1

* Upgrade ginkgo to v2

* linter fixes and added/removed TODOs

* Added github username to TODOs

* Added review suggestions

* Made fixes to PR

* Rebase master

* squash

* remove changes to make manifests
  • Loading branch information
AleksandarSavchev authored Jan 12, 2023
1 parent 09e62b2 commit fa55c9b
Show file tree
Hide file tree
Showing 2,631 changed files with 207,477 additions and 179,528 deletions.
1 change: 0 additions & 1 deletion .ci/set_dependency_version
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env bash

# TODO @shreyas-s-rao: Revendor gardener/gardener to >v1.13.1 to include fix from https://github.com/gardener/gardener/pull/3233
"$(dirname $0)"/../vendor/github.com/gardener/gardener/hack/.ci/set_dependency_version
2 changes: 1 addition & 1 deletion .ci/test
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function header_text {

###############################################################################

GINKGO_COMMON_FLAGS="-r -timeout=1h0m0s --randomizeAllSpecs --randomizeSuites --failOnPending --progress"
GINKGO_COMMON_FLAGS="-r -timeout=1h0m0s --randomize-all --randomize-suites --fail-on-pending --progress"
if [ -z $COVER ] || [ "$COVER" = false ] ; then
echo "[INFO] Test coverage is disabled."
make test
Expand Down
2 changes: 0 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ IMAGE_BUILD_TAG := $(VERSION)
BUILD_DIR := build
PROVIDERS := ""

GOLANGCI_LINT_VERSION := v1.50.1

IMG ?= ${IMAGE_REPOSITORY}:${IMAGE_BUILD_TAG}

#########################################
Expand Down
2 changes: 1 addition & 1 deletion api/v1alpha1/etcd_types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"context"
"time"

. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/resource"
Expand Down
8 changes: 3 additions & 5 deletions api/v1alpha1/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"path/filepath"
"testing"

. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"k8s.io/client-go/kubernetes/scheme"
"k8s.io/client-go/rest"
Expand Down Expand Up @@ -50,7 +50,7 @@ func TestAPIs(t *testing.T) {
)
}

var _ = BeforeSuite(func(done Done) {
var _ = BeforeSuite(func() {
logf.SetLogger(zap.New(zap.WriteTo(GinkgoWriter), zap.UseDevMode(true)))

By("bootstrapping test environment")
Expand All @@ -68,9 +68,7 @@ var _ = BeforeSuite(func(done Done) {
k8sClient, err = client.New(cfg, client.Options{Scheme: scheme.Scheme})
Expect(err).ToNot(HaveOccurred())
Expect(k8sClient).ToNot(BeNil())

close(done)
}, 60)
})

var _ = AfterSuite(func() {
By("tearing down the test environment")
Expand Down
3 changes: 1 addition & 2 deletions api/validation/etcd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ import (
"github.com/gardener/etcd-druid/api/v1alpha1"
"github.com/gardener/etcd-druid/api/validation"

. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/extensions/table"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
. "github.com/onsi/gomega/gstruct"
"github.com/onsi/gomega/types"
Expand Down
3 changes: 1 addition & 2 deletions api/validation/etcdcopybackupstask_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ import (
"github.com/gardener/etcd-druid/api/v1alpha1"
"github.com/gardener/etcd-druid/api/validation"

. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/extensions/table"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
. "github.com/onsi/gomega/gstruct"
"github.com/onsi/gomega/types"
Expand Down
2 changes: 1 addition & 1 deletion api/validation/validation_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package validation_test
import (
"testing"

. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@

---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.7.0
controller-gen.kubebuilder.io/version: v0.10.0
creationTimestamp: null
name: etcdcopybackupstasks.druid.gardener.cloud
spec:
Expand Down Expand Up @@ -72,14 +71,15 @@ spec:
to connect to the backup store.
properties:
name:
description: Name is unique within a namespace to reference
description: name is unique within a namespace to reference
a secret resource.
type: string
namespace:
description: Namespace defines the space within which the
description: namespace defines the space within which the
secret name must be unique.
type: string
type: object
x-kubernetes-map-type: atomic
required:
- prefix
type: object
Expand All @@ -102,14 +102,15 @@ spec:
to connect to the backup store.
properties:
name:
description: Name is unique within a namespace to reference
description: name is unique within a namespace to reference
a secret resource.
type: string
namespace:
description: Namespace defines the space within which the
description: namespace defines the space within which the
secret name must be unique.
type: string
type: object
x-kubernetes-map-type: atomic
required:
- prefix
type: object
Expand Down Expand Up @@ -189,9 +190,3 @@ spec:
storage: true
subresources:
status: {}
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []
Loading

0 comments on commit fa55c9b

Please sign in to comment.