-
Notifications
You must be signed in to change notification settings - Fork 104
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
Adds an ingress to redirect from Hub Preview to Hub #266
Conversation
/cc @afrittoli Will be great if you can review |
@piyush-garg: GitHub didn't allow me to request PR reviews from the following users: can, review, Will, be, great, if, you. Note that only tektoncd members and repo collaborators can review this PR, and authors cannot review their own PRs. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
f124ef6
to
588ee34
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.
Thank you for this!
Could you include the annotation for the DNS name too?
dns.gardener.cloud/dnsnames: hub-preview.tekton.dev
dns.gardener.cloud/ttl: "3600"
I guess it's ok for now to have this in the hub
repo but I'd really prefer eventually to separate this out to the plumbing
repo - because this is specific to the deployment to dogfooding and anyone installing hub
does not really need this ingress at all.
- secretName: ui-hub-preview-tekton-dev-tls | ||
hosts: [hub-preview.tekton.dev] | ||
rules: | ||
- http: |
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.
I usually include host: hub-preview.tekton.dev
as key under rules
too, but I'm not 100% sure if it's required:
spec:
rules:
- host: hub-preview.tekton.dev
http: (...)
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.
Sorry for late reply
Is it fine if we apply the ingress on dogfooding first and see and if that works fine then merge the pr ??
588ee34
to
8a8fc62
Compare
I tried on the cluster but unfortunately it doesn't work, we'd have to install a separate nginx controller. Using a CNAME record works, as long as the hub ingress is updated to include |
Hey @afrittoli I have added this annotation and updated the pr
Should we try this on dogfooding once ?? Is there anything more we need to do from Hub Side ?? |
I deployed the nginx ingress controller to dogfooding to watch the
I also deployed this ingress resource, and the redirect works fine:
Could you update this PR to match the ingress above ^^^ ? Thank you! |
- This patch adds an annotation which redirects from Hub Preview to Hub as `nginx.ingress.kubernetes.io/permanent-redirect: https://hub.tekton.dev` Signed-off-by: Puneet Punamiya <ppunamiy@redhat.com>
8a8fc62
to
f677464
Compare
@afrittoli Thanks a lot for all your help, have updated the pr, could you please take a look at it once |
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.
Thank you for the updtes!
/lgtm
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sm43 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
nginx.ingress.kubernetes.io/permanent-redirect: https://hub.tekton.dev
Signed-off-by: Puneet Punamiya ppunamiy@redhat.com
Changes
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
See the contribution guide for more details.