Skip to content

Commit

Permalink
Remove the application lister and cleaner from the eventing-controller (
Browse files Browse the repository at this point in the history
#18281)

* Remove the application lister and cleaner

* Update image
  • Loading branch information
marcobebway authored Oct 9, 2023
1 parent 6efbe5f commit e2526c1
Show file tree
Hide file tree
Showing 18 changed files with 79 additions and 701 deletions.
1 change: 0 additions & 1 deletion components/eventing-controller/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ copy-crds: manifests-local ## copy Eventing CRDs to installation/eventing
copy-external-crds: ## copy external CRDs to config/crd/external
mkdir -p config/crd/external
cp ../../installation/resources/crds/api-gateway/apirules.gateway.crd.yaml config/crd/external/apirules-gateway-kyma-project-io.yaml
cp ../../installation/resources/crds/application-connector/applications.applicationconnector.crd.yaml config/crd/external/applications-applicationconnector-kyma-project-io.yaml

$(eval $(call buildpack-cp-ro,resolve))
$(eval $(call buildpack-mount,mod-verify))
Expand Down

Large diffs are not rendered by default.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ resources:
- bases/eventing.kyma-project.io_subscriptions.yaml
- bases/eventing.kyma-project.io_eventingbackends.yaml
- external/apirules-gateway-kyma-project-io.yaml
- external/applications-applicationconnector-kyma-project-io.yaml
#+kubebuilder:scaffold:crdkustomizeresource

patchesStrategicMerge:
Expand Down
8 changes: 0 additions & 8 deletions components/eventing-controller/config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,6 @@ rules:
- get
- list
- watch
- apiGroups:
- applicationconnector.kyma-project.io
resources:
- applications
verbs:
- get
- list
- watch
- apiGroups:
- apps
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ func (r *Reconciler) SetBackendConfig(backendCfg env.BackendConfig) {
// +kubebuilder:rbac:groups=apps,resources=deployments,verbs=get;list;watch;update;patch;create;delete
// +kubebuilder:rbac:groups=eventing.kyma-project.io,resources=eventingbackends,verbs=get;list;watch;create;update;patch;delete
// +kubebuilder:rbac:groups=eventing.kyma-project.io,resources=eventingbackends/status,verbs=get;update;patch
// +kubebuilder:rbac:groups="applicationconnector.kyma-project.io",resources=applications,verbs=get;list;watch
// +kubebuilder:rbac:groups="",resources=services,verbs=get;list;watch;delete
// +kubebuilder:rbac:groups="",resources=pods,verbs=get;list;watch;delete

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,6 @@ func NewReconciler(ctx context.Context, client client.Client, logger *logger.Log
// Generate required RBAC to emit kubernetes events in the controller.
// +kubebuilder:rbac:groups="",resources=events,verbs=create;patch
// +kubebuilder:rbac:groups=gateway.kyma-project.io,resources=apirules,verbs=get;list;watch;create;update;patch;delete
// Generated required RBAC to list Applications (required by event type cleaner).
// +kubebuilder:rbac:groups="applicationconnector.kyma-project.io",resources=applications,verbs=get;list;watch

func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
// fetch current subscription object and ensure the object was not deleted in the meantime
Expand Down
1 change: 0 additions & 1 deletion components/eventing-controller/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ require (
github.com/kelseyhightower/envconfig v1.4.0
github.com/kyma-incubator/api-gateway v0.0.0-20220819093753-296e6704d413
github.com/kyma-project/kyma/common/logging v0.0.0-20230616102347-ad6927dc28d5
github.com/kyma-project/kyma/components/application-operator v0.0.0-20230127165033-ec8e43477eca
github.com/mitchellh/hashstructure/v2 v2.0.2
github.com/nats-io/nats-server/v2 v2.9.21
github.com/nats-io/nats.go v1.28.0
Expand Down
2 changes: 0 additions & 2 deletions components/eventing-controller/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,6 @@ github.com/kyma-project/api-gateway v0.0.0-20220819093753-296e6704d413 h1:fkGKNO
github.com/kyma-project/api-gateway v0.0.0-20220819093753-296e6704d413/go.mod h1:5kBV6C2JEaapjTAn10Mo81Te4e6LN3epexUCSLXgQLI=
github.com/kyma-project/kyma/common/logging v0.0.0-20230616102347-ad6927dc28d5 h1:Uey3jJWq9eyXiepEvqQjBIWwPGM8nMIylBpcTc9FuDM=
github.com/kyma-project/kyma/common/logging v0.0.0-20230616102347-ad6927dc28d5/go.mod h1:JGb5RBi8Uz+RZ/jf54+qA+RqY6uPQBJ8pO1w3KSwm1Q=
github.com/kyma-project/kyma/components/application-operator v0.0.0-20230127165033-ec8e43477eca h1:7UpCIk6+sMCOhPfolAlppRugSln5M4T8/dHJm8x0erc=
github.com/kyma-project/kyma/components/application-operator v0.0.0-20230127165033-ec8e43477eca/go.mod h1:Tog02gZ1VT7yvFmhSqmiuGZpDYt18zTF4kr6E0N9ttk=
github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0=
github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc=
github.com/matttproud/golang_protobuf_extensions v1.0.4 h1:mmDVorXM7PCGKw94cs5zkfA9PSy5pEvNWRP0ET0TIVo=
Expand Down

This file was deleted.

39 changes: 0 additions & 39 deletions components/eventing-controller/pkg/application/clean.go

This file was deleted.

67 changes: 0 additions & 67 deletions components/eventing-controller/pkg/application/clean_unit_test.go

This file was deleted.

Loading

0 comments on commit e2526c1

Please sign in to comment.