Skip to content

Refactor component-vcluster to use helm chart #87

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

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

Conversation

TheBigLee
Copy link
Member

@TheBigLee TheBigLee commented Apr 29, 2025

Checklist

  • The PR has a meaningful title. It will be used to auto-generate the
    changelog.
    The PR has a meaningful description that sums up the change. It will be
    linked in the changelog.
  • PR contains a single logical change (to build a better changelog).
  • Update the documentation.
  • Categorize the PR by adding one of the labels:
    bug, enhancement, documentation, change, breaking, dependency
    as they show up in the changelog.
  • Link this PR to related issues or PRs.

@TheBigLee TheBigLee force-pushed the refactor branch 9 times, most recently from 742cc2a to 31fed67 Compare May 13, 2025 15:29
@TheBigLee TheBigLee added enhancement New feature or request change breaking and removed change labels May 13, 2025
@TheBigLee TheBigLee force-pushed the refactor branch 2 times, most recently from 10df627 to 002af82 Compare May 13, 2025 15:43
@TheBigLee TheBigLee removed the enhancement New feature or request label May 13, 2025
@TheBigLee TheBigLee marked this pull request as ready for review May 13, 2025 15:49
@TheBigLee TheBigLee requested review from simu and bastjan May 13, 2025 15:49
Copy link
Member

@simu simu left a comment

Choose a reason for hiding this comment

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

Can't really properly review this since there's almost no context for the changes (i.e. it's hard to tell if the changes are correct/make sense without any information about the why).

I assume https://github.com/projectsyn/component-vcluster/blob/master/docs/modules/ROOT/pages/how-tos/oidc.adoc and https://github.com/projectsyn/component-vcluster/blob/master/docs/modules/ROOT/pages/tutorials/installation-openshift.adoc are outdated as well, given all the changes in this PR.

role:
extraRules:
- apiGroups: [""]
resources: ["endpoints/restricted"]
Copy link
Contributor

Choose a reason for hiding this comment

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

@TheBigLee TheBigLee force-pushed the refactor branch 9 times, most recently from 59af946 to 6daeeab Compare May 15, 2025 12:50
@TheBigLee TheBigLee force-pushed the refactor branch 8 times, most recently from a838124 to 8e60b1c Compare May 15, 2025 15:58
@TheBigLee TheBigLee requested review from simu and bastjan May 15, 2025 15:58
@TheBigLee
Copy link
Member Author

I've done some refactorings and changes. Please review again

This will refactor the component completely to use the latest
official helm chart.

Due to this change, there are a few breaking changes that will have
to be handled carefully. Check the docs for more information

Signed-off-by: Nicolas Bigler <[email protected]>
@TheBigLee
Copy link
Member Author

TheBigLee commented May 19, 2025

Copy link
Member

@simu simu left a comment

Choose a reason for hiding this comment

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

From a fairly quick review, there's no glaring issues anymore.

See inline for some things that might need another look .


echo "Patching route..."

kubectl -n "$NAMESPACE" patch route "$route_name" --patch-file "${patch_file}"
Copy link
Member

Choose a reason for hiding this comment

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

Once again, are we sure that this patch will survive OpenShift's ingress-to-route controller applying arbitrary other changes (e.g. frontend LE certificate rotation)? Afaict, there's no guarantee that the ArgoCD PostSync hook will run everytime the route that's generated from the ingress changes.


==== `additional_manifests`

This parameter has changed form a dict to a string, as the upstream field changed.
Copy link
Member

Choose a reason for hiding this comment

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

Comment on lines -29 to -31

syn:
registration_url: https://syn.example.com/steward/install.json?token=w84kxjbhf
Copy link
Member

Choose a reason for hiding this comment

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

Does this still need to be removed? Afaict we're keeping this functionality now?


// Define outputs below
{
'00_namespace': kube.Namespace(params.namespace) {
metadata+: com.makeMergeable(params.namespaceMetadata),
},
'10_cluster': cluster.Cluster(instance, params),
[if isOpenshift && params.ingress.enabled && params.ingress.host != null then '11_ocp_route']: ocpRoute.RouteCreateJob(instance, 'vc-%s' % instance, params.ingress.host),
Copy link
Member

Choose a reason for hiding this comment

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

RouteCreateJob is a bit misnamed now, should be RoutePatchJob afaict

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

Successfully merging this pull request may close these issues.

3 participants