Skip to content

Commit

Permalink
chore: update build process
Browse files Browse the repository at this point in the history
  • Loading branch information
katallaxie authored Nov 28, 2024
1 parent f93d725 commit e4969d2
Show file tree
Hide file tree
Showing 134 changed files with 1,122 additions and 10,279 deletions.
2 changes: 0 additions & 2 deletions cmd/controller/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import (
"github.com/zeiss/typhoon/pkg/flow/reconciler/transformation"
"github.com/zeiss/typhoon/pkg/flow/reconciler/xmltojsontransformation"
"github.com/zeiss/typhoon/pkg/flow/reconciler/xslttransformation"
"github.com/zeiss/typhoon/pkg/routing/reconciler/filter"
"github.com/zeiss/typhoon/pkg/routing/reconciler/splitter"
"github.com/zeiss/typhoon/pkg/sources/reconciler/azservicebusqueuesource"
"github.com/zeiss/typhoon/pkg/sources/reconciler/azservicebussource"
Expand Down Expand Up @@ -61,7 +60,6 @@ func main() {
// extensions
function.NewController,
// routing
filter.NewController,
splitter.NewController,
)
}
45 changes: 0 additions & 45 deletions config/200-clusterroles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,6 @@ rules:
# Only multi-tenant components receive permissions via RoleBindings to
# interact with the Kubernetes API.
resourceNames:
- awssnssource-adapter
- zendesksource-adapter
- filter-adapter
- splitter-adapter
verbs:
- update
Expand Down Expand Up @@ -421,48 +418,6 @@ rules:

---

apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: filter-adapter
labels:
app.kubernetes.io/part-of: typhoon
rules:
- apiGroups:
- ''
resources:
- events
verbs:
- create
- patch
- update
- apiGroups:
- ''
resources:
- configmaps
verbs:
- get
- list
- watch
- apiGroups:
- routing.typhoon.zeiss.com
resources:
- filters
verbs:
- get
- list
- watch
- apiGroups:
- coordination.k8s.io
resources:
- leases
verbs:
- get
- create
- update

---

apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
Expand Down
15 changes: 0 additions & 15 deletions config/202-clusterrolebindings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,21 +54,6 @@ roleRef:
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: filter-adapter
labels:
app.kubernetes.io/part-of: typhoon
subjects:
- kind: ServiceAccount
name: typhoon-controller
namespace: typhoon
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: filter-adapter
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: splitter-adapter
labels:
Expand Down
2 changes: 0 additions & 2 deletions config/500-controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,6 @@ spec:
- name: XMLTOJSONTRANSFORMATION_IMAGE
value: ko://github.com/zeiss/typhoon/cmd/xmltojsontransformation-adapter
# Routing adapters
- name: FILTER_IMAGE
value: ko://github.com/zeiss/typhoon/cmd/filter-adapter
- name: SPLITTER_IMAGE
value: ko://github.com/zeiss/typhoon/cmd/splitter-adapter
# Custom build adapters
Expand Down
37 changes: 17 additions & 20 deletions hack/inc.codegen.mk
Original file line number Diff line number Diff line change
Expand Up @@ -27,43 +27,40 @@ deepcopy:
@echo "+ Generating deepcopy funcs for $(API_GROUPS)"
$(GO_RUN_TOOLS) k8s.io/code-generator/cmd/deepcopy-gen \
--go-header-file hack/copyright.go.txt \
--input-dirs $(subst $(space),$(comma),$(api-import-paths)) \
--trim-path-prefix $(PKG)/ \
--output-base . \
--output-file-base zz_generated.deepcopy
--output-file zz_generated.deepcopy.go \
$(find_dirs_containing_comment_tags "+k8s:deepcopy-gen=")

client:
@echo "+ Generating clientsets for $(API_GROUPS)"
@rm -rf pkg/client/generated/clientset
$(GO_RUN_TOOLS) k8s.io/code-generator/cmd/client-gen \
--go-header-file hack/copyright.go.txt \
--input $(subst $(space),$(comma),$(API_GROUPS)) \
--input-base $(PKG)/pkg/apis \
--trim-path-prefix $(PKG)/ \
--output-base . \
--output-package $(PKG)/pkg/client/generated/clientset
echo "+ Generating clientsets for $$apigrp" ; \
$(GO_RUN_TOOLS) k8s.io/code-generator/cmd/client-gen \
--fake-clientset=true \
--input $(subst $(space),$(comma),$(API_GROUPS)) \
--input-base $(PKG)/pkg/apis \
--go-header-file hack/copyright.go.txt \
--output-pkg $(PKG)/pkg/client/generated/clientset \
--output-dir pkg/client/generated/clientset; \

lister:
@echo "+ Generating listers for $(API_GROUPS)"
@rm -rf pkg/client/generated/listers
$(GO_RUN_TOOLS) k8s.io/code-generator/cmd/lister-gen \
--go-header-file hack/copyright.go.txt \
--input-dirs $(subst $(space),$(comma),$(api-import-paths)) \
--trim-path-prefix $(PKG)/ \
--output-base . \
--output-package $(PKG)/pkg/client/generated/listers
--output-pkg $(PKG)/pkg/client/generated/listers \
--output-dir pkg/client/generated/listers \
${api-import-paths}

informer:
@echo "+ Generating informers for $(API_GROUPS)"
@rm -rf pkg/client/generated/informers
$(GO_RUN_TOOLS) k8s.io/code-generator/cmd/informer-gen \
--go-header-file hack/copyright.go.txt \
--input-dirs $(subst $(space),$(comma),$(api-import-paths)) \
--output-package $(PKG)/pkg/client/generated/informers \
--trim-path-prefix $(PKG)/ \
--output-base . \
--output-pkg $(PKG)/pkg/client/generated/informers \
--output-dir pkg/client/generated/informers \
--versioned-clientset-package $(PKG)/pkg/client/generated/clientset/internalclientset \
--listers-package $(PKG)/pkg/client/generated/listers
--listers-package $(PKG)/pkg/client/generated/listers \
${api-import-paths}

injection:
@echo "+ Generating injection for $(API_GROUPS)"
Expand Down
101 changes: 0 additions & 101 deletions hack/lib/build/archive.sh

This file was deleted.

Loading

0 comments on commit e4969d2

Please sign in to comment.