Skip to content

Commit

Permalink
Merge pull request #8561 from subhamkrai/helm-k8s-check
Browse files Browse the repository at this point in the history
ceph: add `-0` for helm k8s version check
  • Loading branch information
travisn committed Aug 18, 2021
2 parents c00b290 + 1681cfe commit 67acab9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/crds/build-crds.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ build_helm_resources() {
{
# add header
echo "{{- if .Values.crds.enabled }}"
echo "{{- if semverCompare \">=1.16.0\" .Capabilities.KubeVersion.GitVersion }}"
echo "{{- if semverCompare \">=1.16.0-0\" .Capabilities.KubeVersion.GitVersion }}"

# Add helm annotations to all CRDS and skip the first 4 lines of crds.yaml
"$YQ_BIN_PATH" w -d'*' "$CEPH_CRDS_FILE_PATH" "metadata.annotations[helm.sh/resource-policy]" keep | tail -n +5
Expand Down
2 changes: 1 addition & 1 deletion cluster/charts/rook-ceph/templates/resources.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if .Values.crds.enabled }}
{{- if semverCompare ">=1.16.0" .Capabilities.KubeVersion.GitVersion }}
{{- if semverCompare ">=1.16.0-0" .Capabilities.KubeVersion.GitVersion }}
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
Expand Down

0 comments on commit 67acab9

Please sign in to comment.