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

test upgrade with no change in values #1618

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from
Draft

test upgrade with no change in values #1618

wants to merge 11 commits into from

Conversation

jinja2
Copy link
Collaborator

@jinja2 jinja2 commented Jan 15, 2025

Description:

Link to Splunk idea: <Link to Splunk idea, see https://ideas.splunk.com>

Testing:

Documentation:

@atoulme
Copy link
Contributor

atoulme commented Jan 16, 2025

The chart fails to upgrade:

Error: UPGRADE FAILED: Unable to continue with update: Instrumentation "sock-splunk-otel-collector" in namespace "default" exists and cannot be imported into the current release: invalid ownership metadata; annotation validation error: missing key "meta.helm.sh/release-name": must be set to "sock"; annotation validation error: missing key "meta.helm.sh/release-namespace": must be set to "default"

@jinja2
Copy link
Collaborator Author

jinja2 commented Jan 16, 2025

So upgrade fails due to this change introduced in latest which makes instrumentation a non-hook object. On upgrade helm sees the object exists but it is not part of tracked objects in its release, hence the error about missing annotations "meta.helm.sh/*"

- name: Update dependencies
run: |
make dep-update
- name: try to import instrumentation in helm
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

required cmds to get around the instrumentation hook to non-hook change on upgrade

@jinja2
Copy link
Collaborator Author

jinja2 commented Jan 16, 2025

I think I have tried all combinations of possible ways an existing user with operator enabled could try to helm upgrade. The only option which seems to work where upgrade does not fail and the crds are kept is where they explicitly add the var operator.crds.create=true and some fix for the instrumentation object. For the latter, let me see if i can conditionally introduce the hook annotations back if crds.create is true and that solves the issue for new installs with subchart and existing operator templates.

@jinja2 jinja2 closed this Jan 17, 2025
@jinja2 jinja2 reopened this Jan 17, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Jan 17, 2025
@jinja2 jinja2 closed this Jan 17, 2025
@jinja2 jinja2 reopened this Jan 17, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants