-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: master
Are you sure you want to change the base?
Conversation
742cc2a
to
31fed67
Compare
10df627
to
002af82
Compare
There was a problem hiding this 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"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting context openshift/kubernetes#899 (comment)
59af946
to
6daeeab
Compare
a838124
to
8e60b1c
Compare
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]>
Only the installation-openshift.adoc was outdated. |
There was a problem hiding this 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}" |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given this, you will need to update the additional_manifests
config shown in https://github.com/projectsyn/component-vcluster/blob/master/docs/modules/ROOT/pages/how-tos/oidc.adoc#configure-vcluster
|
||
syn: | ||
registration_url: https://syn.example.com/steward/install.json?token=w84kxjbhf |
There was a problem hiding this comment.
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), |
There was a problem hiding this comment.
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
Checklist
changelog.
The PR has a meaningful description that sums up the change. It will be
linked in the changelog.
bug
,enhancement
,documentation
,change
,breaking
,dependency
as they show up in the changelog.