Skip to content

Commit

Permalink
Merge branch 'main' into vsukhin/feature/test-workflow-running-context
Browse files Browse the repository at this point in the history
Signed-off-by: Vladislav Sukhin <[email protected]>

# Conflicts:
#	.github/workflows/docker-build-beta-tag.yaml
#	.github/workflows/docker-build-release.yaml
#	api/testexecution/v1/testexecution_types.go
#	api/testworkflows/v1/status_types.go
#	api/testworkflows/v1/testworkflowexecution_types.go
#	api/testworkflows/v1/zz_generated.deepcopy.go
#	config/crd/bases/tests.testkube.io_testexecutions.yaml
#	config/crd/bases/testworkflows.testkube.io_testworkflowexecutions.yaml
#	config/crd/bases/testworkflows.testkube.io_testworkflows.yaml
#	internal/controller/testexecution/testexecution_controller.go
#	internal/controller/testsuiteexecution/testsuiteexecution_controllller.go
#	internal/controller/testworkflowexecution/testworkflowexecution_controller.go
#	internal/controller/testworkflows/testworkflow_controller.go
#	pkg/client/executors/v1/webhooks.go
  • Loading branch information
vsukhin committed Oct 22, 2024
2 parents 1943acb + 515e6a3 commit 90c5f77
Show file tree
Hide file tree
Showing 8 changed files with 411 additions and 125 deletions.
60 changes: 0 additions & 60 deletions .github/workflows/docker-build-beta-tag.yaml

This file was deleted.

5 changes: 4 additions & 1 deletion .github/workflows/docker-build-develop.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ name: Develop build
on:
push:
branches:
- develop
- main

env:
ALPINE_IMAGE: alpine:3.18.3

env:
ALPINE_IMAGE: alpine:3.18.3
Expand Down
63 changes: 0 additions & 63 deletions .github/workflows/docker-build-release.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
This is the k8s operator for [testkube](https://github.com/kubeshop/testkube/) - your friendly Kubernetes testing framework!

*`Please note!`* For now it has limited functionality and only installs needed CRDs (custom resurces definitions) into an active k8s cluster.
It's meant to be installed as a part of main Helm chart as described in the [Installation](https://kubeshop.github.io/testkube/installing/) guide.
It's meant to be installed as a part of main Helm chart as described in the [Installation](https://kubeshop.github.io/testkube/installing/) guide
138 changes: 138 additions & 0 deletions pkg/client/executors/v1/mock_webhooks.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions pkg/client/executors/v1/webhooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,17 @@ import (
"sigs.k8s.io/controller-runtime/pkg/client"
)

//go:generate mockgen -destination=./mock_webhooks.go -package=executors "github.com/kubeshop/testkube-operator/pkg/client/executors/v1" WebhooksInterface
type WebhooksInterface interface {
List(selector string) (*executorsv1.WebhookList, error)
Get(name string) (*executorsv1.Webhook, error)
GetByEvent(event executorsv1.EventType) (*executorsv1.WebhookList, error)
Create(webhook *executorsv1.Webhook) (*executorsv1.Webhook, error)
Update(webhook *executorsv1.Webhook) (*executorsv1.Webhook, error)
Delete(name string) error
DeleteByLabels(selector string) error
}

// NewWebhooksClient returns new client instance, needs kubernetes client to be passed as dependecy
func NewWebhooksClient(client client.Client, namespace string) *WebhooksClient {
return &WebhooksClient{
Expand Down
Loading

0 comments on commit 90c5f77

Please sign in to comment.