Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add version labels to release manifest items #75

Merged
merged 1 commit into from
Jul 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion hack/make-kustomization.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

# Copyright 2023 Hewlett Packard Enterprise Development LP
# Copyright 2023-2024 Hewlett Packard Enterprise Development LP
# Other additional copyright holders may be indicated within.
#
# The entirety of this work is licensed under the Apache License,
Expand Down Expand Up @@ -33,6 +33,21 @@ cat <<EOF > "$OVERLAY_DIR"/kustomization.yaml
resources:
- ../$OVERLAY

commonLabels:
app.kubernetes.io/version: "$TAG"
app.kubernetes.io/component: lustre-csi-driver
EOF

if [[ -n $NNF_VERSION ]]
then
cat <<EOF >> "$OVERLAY_DIR"/kustomization.yaml
app.kubernetes.io/nnf-version: "$NNF_VERSION"
app.kubernetes.io/part-of: nnf
EOF
fi

cat <<EOF >> "$OVERLAY_DIR"/kustomization.yaml

apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
images:
Expand Down
Loading