-
Notifications
You must be signed in to change notification settings - Fork 335
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps): bump golangci-lint from v1.51.2 to v1.53.3 (#7334)
Signed-off-by: Charly Molter <charly.molter@konghq.com>
- Loading branch information
1 parent
4de28c4
commit 4a9c16f
Showing
41 changed files
with
182 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Golangci-lint | ||
on: | ||
push: | ||
pull_request: | ||
permissions: | ||
contents: read | ||
jobs: | ||
golangci: | ||
name: lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v4 | ||
with: | ||
cache: false | ||
go-version: 1.20.5 | ||
- uses: golangci/golangci-lint-action@v3 | ||
with: | ||
args: --verbose | ||
version: v1.53.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
<<<<<<< HEAD | ||
50cf4b94403bc1e03c8ca18db970b193881ef991 | ||
======= | ||
ddcb18fef158bd55f6534f1a4ab75af4f9db3b6f | ||
>>>>>>> 409438fbc (chore(deps): bump golangci-lint from v1.51.2 to v1.53.3 (#7334)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
package connectivity | ||
|
||
import ( | ||
"github.com/gruntwork-io/terratest/modules/k8s" | ||
. "github.com/onsi/ginkgo/v2" | ||
. "github.com/onsi/gomega" | ||
corev1 "k8s.io/api/core/v1" | ||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||
"k8s.io/apimachinery/pkg/util/intstr" | ||
|
||
. "github.com/kumahq/kuma/test/framework" | ||
"github.com/kumahq/kuma/test/framework/client" | ||
"github.com/kumahq/kuma/test/framework/deployments/testserver" | ||
"github.com/kumahq/kuma/test/framework/envs/kubernetes" | ||
) | ||
|
||
func HeadlessServices() { | ||
meshName := "headless-svc" | ||
namespace := "headless-svc" | ||
|
||
BeforeAll(func() { | ||
err := NewClusterSetup(). | ||
Install(MTLSMeshKubernetes(meshName)). | ||
Install(NamespaceWithSidecarInjection(namespace)). | ||
Install(testserver.Install( | ||
testserver.WithName("demo-client"), | ||
testserver.WithMesh(meshName), | ||
testserver.WithNamespace(namespace), | ||
)). | ||
Install(testserver.Install( | ||
testserver.WithName("test-server"), | ||
testserver.WithMesh(meshName), | ||
testserver.WithNamespace(namespace), | ||
)). | ||
Setup(kubernetes.Cluster) | ||
Expect(err).ToNot(HaveOccurred()) | ||
|
||
err = k8s.RunKubectlE( | ||
kubernetes.Cluster.GetTesting(), | ||
kubernetes.Cluster.GetKubectlOptions(namespace), | ||
"delete", "svc", "test-server", "-n", namespace, | ||
) | ||
Expect(err).ToNot(HaveOccurred()) | ||
|
||
// create headless service with port that is not the same as app port | ||
headlessSvc := &corev1.Service{ | ||
TypeMeta: metav1.TypeMeta{ | ||
Kind: "Service", | ||
APIVersion: "v1", | ||
}, | ||
ObjectMeta: metav1.ObjectMeta{ | ||
Name: "test-server-headless", | ||
Namespace: namespace, | ||
}, | ||
Spec: corev1.ServiceSpec{ | ||
Ports: []corev1.ServicePort{ | ||
{ | ||
Name: "main", | ||
Port: int32(9090), | ||
TargetPort: intstr.FromString("main"), | ||
}, | ||
}, | ||
Selector: map[string]string{ | ||
"app": "test-server", | ||
}, | ||
}, | ||
} | ||
Expect(kubernetes.Cluster.Install(YamlK8sObject(headlessSvc))).To(Succeed()) | ||
}) | ||
|
||
E2EAfterAll(func() { | ||
Expect(kubernetes.Cluster.TriggerDeleteNamespace(namespace)).To(Succeed()) | ||
Expect(kubernetes.Cluster.DeleteMesh(meshName)).To(Succeed()) | ||
}) | ||
|
||
It("should be able to connect to the headless service", func() { | ||
Eventually(func(g Gomega) { | ||
_, err := client.CollectEchoResponse( | ||
kubernetes.Cluster, | ||
"demo-client", | ||
"test-server-headless:9090", | ||
client.FromKubernetesPod(namespace, "demo-client"), | ||
) | ||
g.Expect(err).ToNot(HaveOccurred()) | ||
}, "30s", "1s").Should(Succeed()) | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.