From f098ba9ed1526327cdae478c44fb144b880eb79e Mon Sep 17 00:00:00 2001 From: Mohamed Mahmoud Date: Wed, 10 Jul 2024 11:58:03 -0400 Subject: [PATCH] remove build-release-yamls for examples as it belongs to bpfman repo Signed-off-by: Mohamed Mahmoud --- Makefile | 4 -- hack/build-release-yamls.sh | 104 ------------------------------------ 2 files changed, 108 deletions(-) delete mode 100755 hack/build-release-yamls.sh diff --git a/Makefile b/Makefile index 3c8c16302..55256488b 100644 --- a/Makefile +++ b/Makefile @@ -308,10 +308,6 @@ bundle: operator-sdk generate kustomize manifests ## Generate bundle manifests a cp config/manifests/dependencies.yaml bundle/metadata/ $(OPERATOR_SDK) bundle validate ./bundle -.PHONY: build-release-yamls -build-release-yamls: generate kustomize ## Generate the crd install bundle for a specific release version. - VERSION=$(VERSION) ./hack/build-release-yamls.sh - ##@ Build .PHONY: build diff --git a/hack/build-release-yamls.sh b/hack/build-release-yamls.sh deleted file mode 100755 index ee0ca0cc4..000000000 --- a/hack/build-release-yamls.sh +++ /dev/null @@ -1,104 +0,0 @@ -#!/usr/bin/env bash - -# Copyright 2022 The Kubernetes Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -o errexit -set -o nounset -set -o pipefail - -thisyear=`date +"%Y"` - -mkdir -p release-v${VERSION}/ - -## Location to install dependencies to -LOCALBIN=$(pwd)/bin - -## Tool Binaries -KUSTOMIZE=${LOCALBIN}/kustomize - -# Generate all install yaml's - -## 1. bpfman CRD install - -# Make clean files with boilerplate -cat hack/boilerplate.sh.txt > release-v${VERSION}/bpfman-crds-install.yaml -sed -i "s/YEAR/$thisyear/g" release-v${VERSION}/bpfman-crds-install.yaml -cat << EOF >> release-v${VERSION}/bpfman-crds-install.yaml -# -# bpfman Kubernetes API install -# -EOF - -for file in `ls config/crd/bases/bpfman*.yaml` -do - echo "---" >> release-v${VERSION}/bpfman-crds-install.yaml - echo "#" >> release-v${VERSION}/bpfman-crds-install.yaml - echo "# $file" >> release-v${VERSION}/bpfman-crds-install.yaml - echo "#" >> release-v${VERSION}/bpfman-crds-install.yaml - cat $file >> release-v${VERSION}/bpfman-crds-install.yaml -done - -echo "Generated:" release-v${VERSION}/bpfman-crds-install.yaml - -## 2. bpfman-operator install yaml - -$(cd ./config/bpfman-operator-deployment && ${KUSTOMIZE} edit set image quay.io/bpfman/bpfman-operator=quay.io/bpfman/bpfman-operator:v${VERSION}) -${KUSTOMIZE} build ./config/default > release-v${VERSION}/bpfman-operator-install.yaml -### replace configmap :latest images with :v${VERSION} -sed -i "s/quay.io\/bpfman\/bpfman-agent:latest/quay.io\/bpfman\/bpfman-agent:v${VERSION}/g" release-v${VERSION}/bpfman-operator-install.yaml -sed -i "s/quay.io\/bpfman\/bpfman:latest/quay.io\/bpfman\/bpfman:v${VERSION}/g" release-v${VERSION}/bpfman-operator-install.yaml - -echo "Generated:" release-v${VERSION}/bpfman-operator-install.yaml - -## 3. examples install yamls - -### XDP -${KUSTOMIZE} build ../examples/config/v${VERSION}/go-xdp-counter > release-v${VERSION}/go-xdp-counter-install.yaml -echo "Generated:" release-v${VERSION}/go-xdp-counter-install.yaml -### TC -${KUSTOMIZE} build ../examples/config/v${VERSION}/go-tc-counter > release-v${VERSION}/go-tc-counter-install.yaml -echo "Generated:" release-v${VERSION}/go-tc-counter-install.yaml -### TRACEPOINT -${KUSTOMIZE} build ../examples/config/v${VERSION}/go-tracepoint-counter > release-v${VERSION}/go-tracepoint-counter-install.yaml -echo "Generated:" release-v${VERSION}/go-tracepoint-counter-install.yaml -### UPROBE -${KUSTOMIZE} build ../examples/config/v${VERSION}/go-uprobe-counter > release-v${VERSION}/go-uprobe-counter-install.yaml -echo "Generated:" release-v${VERSION}/go-uprobe-counter-install.yaml -### URETPROBE -${KUSTOMIZE} build ../examples/config/v${VERSION}/go-uretprobe-counter > release-v${VERSION}/go-uretprobe-counter-install.yaml -echo "Generated:" release-v${VERSION}/go-uretprobe-counter-install.yaml -### KPROBE -${KUSTOMIZE} build ../examples/config/v${VERSION}/go-kprobe-counter > release-v${VERSION}/go-kprobe-counter-install.yaml -echo "Generated:" release-v${VERSION}/go-kprobe-counter-install.yaml - -## 4. examples install yamls for SELINUX distros -### XDP -${KUSTOMIZE} build ../examples/config/v${VERSION}-selinux/go-xdp-counter > release-v${VERSION}/go-xdp-counter-install-selinux.yaml -echo "Generated:" release-v${VERSION}/go-xdp-counter-install-selinux.yaml -### TC -${KUSTOMIZE} build ../examples/config/v${VERSION}-selinux/go-tc-counter > release-v${VERSION}/go-tc-counter-install-selinux.yaml -echo "Generated:" release-v${VERSION}/go-tc-counter-install-selinux.yaml -### TRACEPOINT -${KUSTOMIZE} build ../examples/config/v${VERSION}-selinux/go-tracepoint-counter > release-v${VERSION}/go-tracepoint-counter-install-selinux.yaml -echo "Generated:" release-v${VERSION}/go-tracepoint-counter-install-selinux.yaml -### UPROBE -${KUSTOMIZE} build ../examples/config/v${VERSION}-selinux/go-uprobe-counter > release-v${VERSION}/go-uprobe-counter-install-selinux.yaml -echo "Generated:" release-v${VERSION}/go-uprobe-counter-install-selinux.yaml -### URETPROBE -${KUSTOMIZE} build ../examples/config/v${VERSION}-selinux/go-uretprobe-counter > release-v${VERSION}/go-uretprobe-counter-install-selinux.yaml -echo "Generated:" release-v${VERSION}/go-uretprobe-counter-install-selinux.yaml -### KPROBE -${KUSTOMIZE} build ../examples/config/v${VERSION}-selinux/go-kprobe-counter > release-v${VERSION}/go-kprobe-counter-install-selinux.yaml -echo "Generated:" release-v${VERSION}/go-kprobe-counter-install-selinux.yaml