Skip to content
This repository was archived by the owner on Jun 12, 2025. It is now read-only.

[1.5] Cleanup CRD fields in v1alpha2 of Release Candidate related fields#450

Draft
jordigilh wants to merge 6 commits intorhdhorchestrator:mainfrom
jordigilh:cleanup_values.yaml_v1alpha2
Draft

[1.5] Cleanup CRD fields in v1alpha2 of Release Candidate related fields#450
jordigilh wants to merge 6 commits intorhdhorchestrator:mainfrom
jordigilh:cleanup_values.yaml_v1alpha2

Conversation

@jordigilh
Copy link
Collaborator

Changes to schema:

  • Normalized subscription's source field name.
  • Removed isReleaseCandidate field and validations.
  • Removed rhdh.image field used in RC.
  • Removed sonataflowPlatform.image.[dataIndexImage|jobServiceImage] subfields used in RC.
  • Removed get-cluster-version helper used to retrieve the OCP version in the cluster
  • Moved rhdhOperator.subscription.targetNamespace to rhdhOperator.targetNamespace to avoid confusion as seen related to the subscription. @masayag @jenniferubah @chadcrum Please let me know about this change, since this is relocating a field not related to RC.

I think that's pretty much it, any other field that lingers should be addressed in the upcoming schema revision.

@jordigilh jordigilh changed the title Cleanup CRD fields in v1alpha2 Cleanup CRD fields in v1alpha2 of Release Candidate related fields Dec 20, 2024
@jordigilh jordigilh changed the title Cleanup CRD fields in v1alpha2 of Release Candidate related fields [1.4] Cleanup CRD fields in v1alpha2 of Release Candidate related fields Dec 20, 2024
type: object
targetNamespace:
default: rhdh-operator
description: The target namespace for the backstage CR in which
Copy link
Collaborator

@masayag masayag Dec 22, 2024

Choose a reason for hiding this comment

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

For the default namespace for the Backstage CR, we should pick a different one than the target namespace of the operator, perhaps the orchestrator as default (if namespace exists) or require the user to specify if the RHDH is disabled.

Copy link
Collaborator Author

@jordigilh jordigilh Jan 7, 2025

Choose a reason for hiding this comment

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

On a second thought, I think we should remove it. Look at the logic where it is being referenced:

{{- else if (and (.Values.rhdhOperator.enabled .Values.rhdhOperator.targetNamespace )}}
{{- $namespace = .Values.rhdhOperator.targetNamespace }} # otherwise, use targetNamespace if defined

If the operator is enabled, why can't we use the subscription.namespace value and instead we have to have a new field? Maybe I'm missing something here, because I remember we had an extensive discussion about this field before, but my memory is failing me.

Thoughts @jenniferubah ?

Copy link
Collaborator

Choose a reason for hiding this comment

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

We use rhdhOperator.targetNamespace because that is used the user to indicate the namespace they want the RHDH instance deployed and that can be different from the RHDH operator namespace subscription.namespace and also less confusing.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe we could default the value of targetNamespace to rhdh if the operator is enabled instead of rhdh-operator since we want to keep those separate.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ah I see it now. Thanks for refreshing my memory :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@masayag I will change the default value to orchestrator as you suggest, to avoid the situation where the user is attempting to deploy the CR in the same namespace where rhdh is deployed by default

Copy link
Collaborator Author

@jordigilh jordigilh Jan 8, 2025

Choose a reason for hiding this comment

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

@masayag should we also change the default location for RHDH in the setup.sh script? Currently it'srhdh-operator.

https://github.com/jordigilh/orchestrator-helm-operator/blob/d15e518d5b3f01fe7537758b2612d9f95bf63a19/hack/setup.sh#L18-L20

Copy link
Collaborator

Choose a reason for hiding this comment

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

I have a concern about this one, since the same script is used for all releases.
So not sure what will be the impact of it.
And yet, I'd prefer for 1.4 the default to be orchestrator.

default: true
description: Enabled determines whether the operator should be deployed by the chart. Defaults to true
type: boolean
targetNamespace:
Copy link
Collaborator

Choose a reason for hiding this comment

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

same as above.

Copy link
Collaborator

@gabriel-farache gabriel-farache left a comment

Choose a reason for hiding this comment

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

So we are removing all components related to RC for OSL and RHDH? That means we won't be able to use that as canaries to validate before they are officially GA
I see 54a11fc removed all templates already and this PR is simply removing the leftovers

Or is there a way to do that still? Is it documented? Maybe there is a RC branch to just to that in which the RC files still remain?

@masayag
Copy link
Collaborator

masayag commented Jan 7, 2025

@jordigilh this PR is needed for 1.4 release, can you please rebase/address comments to finalize it?

@jordigilh jordigilh force-pushed the cleanup_values.yaml_v1alpha2 branch from 9928818 to f60b128 Compare January 7, 2025 21:27
@jordigilh
Copy link
Collaborator Author

So we are removing all components related to RC for OSL and RHDH? That means we won't be able to use that as canaries to validate before they are officially GA I see 54a11fc removed all templates already and this PR is simply removing the leftovers

Or is there a way to do that still? Is it documented? Maybe there is a RC branch to just to that in which the RC files still remain?

I think RC is main now, whatever version it is, so there's no need to support this capability anymore. In the past we didn't branch the charts when we were working with 1.1 and 1.2 (first operator release) at the same time, so we had to expose these values.

@jordigilh
Copy link
Collaborator Author

jordigilh commented Jan 7, 2025

@jordigilh this PR is needed for 1.4 release, can you please rebase/address comments to finalize it?

Done rebasing. Addressing the comments now

@jordigilh jordigilh force-pushed the cleanup_values.yaml_v1alpha2 branch 2 times, most recently from 6bfbf3d to 7a31d8a Compare January 7, 2025 22:26
@jordigilh jordigilh force-pushed the cleanup_values.yaml_v1alpha2 branch from 7a31d8a to d15e518 Compare January 8, 2025 14:26
@jordigilh
Copy link
Collaborator Author

Tested with helm install --dry-run=server with success :)

@jordigilh jordigilh marked this pull request as draft January 8, 2025 14:43
@jordigilh
Copy link
Collaborator Author

jordigilh commented Jan 8, 2025

This PR should be merged in milestone-5, changing it to draft to avoid accidental merge

@masayag
Copy link
Collaborator

masayag commented Jan 8, 2025

This PR should be merged in milestone-5, changing it to draft to avoid accidental merge

Somehow I thought we wanted this to 1.4. Thanks for the clarification.

@jordigilh
Copy link
Collaborator Author

This PR should be merged in milestone-5, changing it to draft to avoid accidental merge

Somehow I thought we wanted this to 1.4. Thanks for the clarification.

I thought so, but since we're in RC for 1.4, I think it's not a good idea to merge it there. But if QE is fine, I'm fine as well.

@masayag
Copy link
Collaborator

masayag commented Jan 8, 2025

This PR should be merged in milestone-5, changing it to draft to avoid accidental merge

Somehow I thought we wanted this to 1.4. Thanks for the clarification.

I thought so, but since we're in RC for 1.4, I think it's not a good idea to merge it there. But if QE is fine, I'm fine as well.

Ok, so let's merge this one in milestone-5 to reduce instabilities.

@jordigilh jordigilh changed the title [1.4] Cleanup CRD fields in v1alpha2 of Release Candidate related fields [1.5] Cleanup CRD fields in v1alpha2 of Release Candidate related fields Jan 8, 2025
@jenniferubah
Copy link
Collaborator

jenniferubah commented Jan 9, 2025

This PR should be merged in milestone-5, changing it to draft to avoid accidental merge

Somehow I thought we wanted this to 1.4. Thanks for the clarification.

I thought so, but since we're in RC for 1.4, I think it's not a good idea to merge it there. But if QE is fine, I'm fine as well.

Ok, so let's merge this one in milestone-5 to reduce instabilities.

@jordigilh @masayag, please could we split this PR? There are changes pertaining to consistency with source/ sourceName that would resolve FLPATH-1981 and FLPATH-1956 for 1.4 release. And then the other changes could be in the other PR for 1.5

@jordigilh
Copy link
Collaborator Author

This PR should be merged in milestone-5, changing it to draft to avoid accidental merge

Somehow I thought we wanted this to 1.4. Thanks for the clarification.

I thought so, but since we're in RC for 1.4, I think it's not a good idea to merge it there. But if QE is fine, I'm fine as well.

Ok, so let's merge this one in milestone-5 to reduce instabilities.

@jordigilh @masayag, please could we split this PR? There are changes pertaining to consistency with source/ sourceName that would resolve FLPATH-1981 and FLPATH-1956 for 1.4 release. And then the other changes could be in the other PR for 1.5

Will do. I'll raise a new PR shortly

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants