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

[jaeger-operator]upgrade to using helm3 crd procedure since crd-install hook is no lon… #173

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

vincenthcui
Copy link

@vincenthcui vincenthcui commented Nov 26, 2020

What this PR does

upgrade to using helm3 crd procedure since crd-install hook is no longer supported

Which issue this PR fixes

(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format,
will close that issue when PR gets merged)

Checklist

  • DCO signed
  • Commits are GPG signed
  • Chart Version bumped
  • Title of the PR starts with chart name ([jaeger] or [jaeger-operator])

…ger supported

fixes jaegertracing#170

chart.Values.crd.install is no longer support since crd MUST be install
refer: https://helm.sh/docs/topics/charts/#custom-resource-definitions-crds

Signed-off-by: vincentcui <[email protected]>
@@ -2,9 +2,6 @@ apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: jaegers.jaegertracing.io
annotations:
"helm.sh/hook": crd-install
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Comment on lines -1 to -6
{{- if .Values.crd.install }}
{{- range $path, $bytes := .Files.Glob "crds/*.yaml" }}
{{ $.Files.Get $path }}
---
{{- end }}
{{- end }}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is still useful for systems that use helm template to generate manifests but don't use helm install to deploy. Particularly, it's useful when upgrading CRDs, since helm upgrade doesn't provide support for upgrading CRDs.

I would leave it.

Base automatically changed from master to main February 27, 2021 18:28
@aledbf
Copy link

aledbf commented Jun 30, 2021

@vincenthcui any update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[jaeger-operator] Helm skipping crd-install hook
3 participants