Skip to content

Commit 126fdf8

Browse files
committed
Revert "Performance addon operator code base move to NTO (openshift#322)"
This reverts commit 7e304f0.
1 parent 8daf490 commit 126fdf8

File tree

819 files changed

+1364
-116231
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

819 files changed

+1364
-116231
lines changed

Makefile

+11-40
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,11 @@ TUNED_COMMIT:=682c47c0a9eb5596c2d396b6d0dae4e297414c50
1818
TUNED_DIR:=daemon
1919

2020
# API-related variables
21-
API_TYPES_DIR:=pkg/apis
22-
API_TYPES:=$(shell find $(API_TYPES_DIR) -name \*_types.go)
21+
API_TYPES_DIR:=./pkg/apis/tuned/v1
22+
API_TYPES:=$(wildcard $(API_TYPES_DIR)/*_types.go)
2323
API_ZZ_GENERATED:=zz_generated.deepcopy
24-
API_GO_HEADER_FILE:=$(API_TYPES_DIR)/header.go.txt
24+
API_TYPES_GENERATED:=$(API_TYPES_DIR)/$(API_ZZ_GENERATED).go
25+
API_GO_HEADER_FILE:=pkg/apis/header.go.txt
2526

2627
# Container image-related variables
2728
IMAGE_BUILD_CMD=podman build --no-cache
@@ -32,10 +33,6 @@ ORG=openshift
3233
TAG=$(shell git rev-parse --abbrev-ref HEAD)
3334
IMAGE=$(REGISTRY)/$(ORG)/origin-cluster-node-tuning-operator:$(TAG)
3435

35-
# PAO variables
36-
CLUSTER ?= "ci"
37-
PAO_CRD_APIS :=$(addprefix ./$(API_TYPES_DIR)/pao/,v2 v1 v1alpha1)
38-
3936
all: build
4037

4138
# Do not put any includes above the "all" target. We want the default target to build
@@ -62,25 +59,25 @@ $(BINDATA): $(GOBINDATA_BIN) $(ASSETS)
6259

6360
pkg/generated: $(API_TYPES)
6461
$(GO) run k8s.io/code-generator/cmd/deepcopy-gen \
65-
--input-dirs $(PACKAGE)/$(API_TYPES_DIR)/tuned/v1,$(PACKAGE)/$(API_TYPES_DIR)/pao/v1alpha1,$(PACKAGE)/$(API_TYPES_DIR)/pao/v1,$(PACKAGE)/$(API_TYPES_DIR)/pao/v2 \
62+
--input-dirs $(PACKAGE)/pkg/apis/tuned/v1 \
6663
-O $(API_ZZ_GENERATED) \
6764
--go-header-file $(API_GO_HEADER_FILE) \
68-
--bounding-dirs $(PACKAGE)/$(API_TYPES_DIR) \
65+
--bounding-dirs $(PACKAGE)/pkg/apis \
6966
--output-base tmp
7067
$(GO) run k8s.io/code-generator/cmd/client-gen \
7168
--clientset-name versioned \
7269
--input-base '' \
73-
--input $(PACKAGE)/$(API_TYPES_DIR)/tuned/v1 \
70+
--input $(PACKAGE)/pkg/apis/tuned/v1 \
7471
--go-header-file $(API_GO_HEADER_FILE) \
7572
--output-package $(PACKAGE)/pkg/generated/clientset \
7673
--output-base tmp
7774
$(GO) run k8s.io/code-generator/cmd/lister-gen \
78-
--input-dirs $(PACKAGE)/$(API_TYPES_DIR)/tuned/v1 \
75+
--input-dirs $(PACKAGE)/pkg/apis/tuned/v1 \
7976
--go-header-file $(API_GO_HEADER_FILE) \
8077
--output-package $(PACKAGE)/pkg/generated/listers \
8178
--output-base tmp
8279
$(GO) run k8s.io/code-generator/cmd/informer-gen \
83-
--input-dirs $(PACKAGE)/$(API_TYPES_DIR)/tuned/v1 \
80+
--input-dirs $(PACKAGE)/pkg/apis/tuned/v1 \
8481
--versioned-clientset-package $(PACKAGE)/pkg/generated/clientset/versioned \
8582
--listers-package $(PACKAGE)/pkg/generated/listers \
8683
--go-header-file $(API_GO_HEADER_FILE) \
@@ -89,6 +86,7 @@ pkg/generated: $(API_TYPES)
8986
tar c tmp | tar x --strip-components=4
9087
touch $@
9188

89+
9290
$(GOBINDATA_BIN):
9391
$(GO) build -o $(GOBINDATA_BIN) ./vendor/github.com/kevinburke/go-bindata/go-bindata
9492

@@ -132,8 +130,7 @@ local-image-push:
132130
# $2 - apis
133131
# $3 - manifests
134132
# $4 - output
135-
$(call add-crd-gen,tuned,./$(API_TYPES_DIR)/tuned/v1,./manifests,./manifests)
136-
$(call add-crd-gen,pao,$(PAO_CRD_APIS),./manifests,./manifests)
133+
$(call add-crd-gen,tuned,$(API_TYPES_DIR),./manifests,./manifests)
137134

138135
# This will include additional actions on the update and verify targets to ensure that profile patches are applied
139136
# to manifest files
@@ -144,29 +141,3 @@ $(call add-crd-gen,pao,$(PAO_CRD_APIS),./manifests,./manifests)
144141
$(call add-profile-manifests,manifests,./profile-patches,./manifests)
145142

146143
.PHONY: all build deepcopy crd-schema-gen test-e2e verify verify-gofmt clean local-image local-image-push
147-
148-
# PAO
149-
150-
.PHONY: cluster-deploy-pao
151-
cluster-deploy-pao:
152-
@echo "Deploying PAO artifacts"
153-
CLUSTER=$(CLUSTER) hack/deploy.sh
154-
155-
.PHONY: cluster-label-worker-cnf
156-
cluster-label-worker-cnf:
157-
@echo "Adding worker-cnf label to worker nodes"
158-
hack/label-worker-cnf.sh
159-
160-
.PHONY: pao-functests
161-
pao-functests: cluster-label-worker-cnf pao-functests-only
162-
163-
.PHONY: pao-functests-only
164-
pao-functests-only:
165-
@echo "Cluster Version"
166-
hack/show-cluster-version.sh
167-
hack/run-functests.sh
168-
169-
.PHONY: cluster-clean-pao
170-
cluster-clean-pao:
171-
@echo "Cleaning up performance addons artifacts"
172-
hack/clean-deploy.sh

assets/pao/assets.go

-19
This file was deleted.

assets/pao/configs/99-low-latency-hooks.json

-11
This file was deleted.

assets/pao/configs/99-netdev-rps.rules

-1
This file was deleted.

assets/pao/configs/99-runtimes.conf

-20
This file was deleted.

assets/pao/scripts/hugepages-allocation.sh

-26
This file was deleted.

assets/pao/scripts/low-latency-hooks.sh

-35
This file was deleted.

assets/pao/scripts/set-rps-mask.sh

-36
This file was deleted.

assets/pao/tuned/openshift-node-performance

-132
This file was deleted.

0 commit comments

Comments
 (0)