Skip to content

Commit

Permalink
update build-release-yamls so it does only operator pieces
Browse files Browse the repository at this point in the history
Signed-off-by: Mohamed Mahmoud <mmahmoud@redhat.com>
  • Loading branch information
msherif1234 committed Jul 10, 2024
1 parent 3906a80 commit 340f98f
Showing 1 changed file with 1 addition and 42 deletions.
43 changes: 1 addition & 42 deletions hack/build-release-yamls.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ done

echo "Generated:" release-v${VERSION}/bpfman-crds-install.yaml

## 2. bpfman-operator 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
Expand All @@ -61,44 +61,3 @@ sed -i "s/quay.io\/bpfman\/bpfman-agent:latest/quay.io\/bpfman\/bpfman-agent:v${
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

0 comments on commit 340f98f

Please sign in to comment.