-
Notifications
You must be signed in to change notification settings - Fork 73
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
DOP-4474: redirects for offline part 1 #1041
Conversation
Your feature branch infrastructure has been deployed! Your webhook URL is: https://og4qr0ym8a.execute-api.us-east-2.amazonaws.com/prod/webhook/githubEndpoint/trigger/build For more information on how to use this endpoint, follow these instructions. |
- RoutingRuleCondition: | ||
KeyPrefixEquals: ${self:custom.site.prefix.${self:provider.stage}}/atlas/cli/v1.2.1 | ||
KeyPrefixEquals: ${self:custom.site.prefix.${self:provider.stage}}/atlas/cli/v1.2 | ||
RedirectRule: | ||
Protocol: "https" | ||
HostName: ${self:custom.site.host.${self:provider.stage}} | ||
ReplaceKeyPrefixWith: ${self:custom.site.prefix.${self:provider.stage}}/atlas/cli/v1.2 | ||
- RoutingRuleCondition: | ||
KeyPrefixEquals: ${self:custom.site.prefix.${self:provider.stage}}/atlas/cli/v1.2.0 | ||
KeyPrefixEquals: ${self:custom.site.prefix.${self:provider.stage}}/atlas/cli/v1.1 | ||
RedirectRule: | ||
Protocol: "https" | ||
HostName: ${self:custom.site.host.${self:provider.stage}} | ||
ReplaceKeyPrefixWith: ${self:custom.site.prefix.${self:provider.stage}}/atlas/cli/v1.2 | ||
ReplaceKeyPrefixWith: ${self:custom.site.prefix.${self:provider.stage}}/atlas/cli/v1.1 |
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.
a little confused on these changes - won't this redirect /v1.2 to itself and same with v1.1?
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.
Yes, but it'll also capture v1.2.x and v1.21 and replace them with v1.2, which is the outcome we want (same with v1.1*)
infrastructure/ecs-main/buckets.yml
Outdated
HostName: ${self.custom.site.host.${self:provider.stage}} | ||
ReplaceKeyPrefixWith: ${self:custom.site.prefix.${self:provider.stage}}/kubernetes-operator/stable | ||
- RoutingRuleCondition: | ||
KeyPrefixEquals: ${self:custom.site.prefix.${self:provider.stage}}/kubernetes-operator/v1.1 |
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.
do we also need to add rules for k8s v1.2 through v1.9? i see those on the spreadsheet but (unless i'm not looking correctly) i don't see those here!
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.
Ooh good catch, it should just be v1 -- fixing.
infrastructure/ecs-main/buckets.yml
Outdated
HostName: ${self.custom.site.host.${self:provider.stage}} | ||
ReplaceKeyPrefixWith: ${self:custom.site.prefix.${self:provider.stage}}/kubernetes-operator/stable | ||
- RoutingRuleCondition: | ||
KeyPrefixEquals: ${self:custom.site.prefix.${self:provider.stage}}/mongocli/v0 |
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.
(tiny micro nit) perhaps make this v0.
for consistency with the v0.
above?
RedirectRule: | ||
Protocol: "https" | ||
HostName: ${self.custom.site.host.${self:provider.stage}} | ||
ReplaceKeyPrefixWith: ${self:custom.site.prefix.${self:provider.stage}}/mongocli/stable |
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.
again, unless I'm not looking correctly, I don't see redirects for mongo cli v1.0.0-1.24
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.
mongocli v1.0.0-v1.24 build with Snooty, so we don't have offline versions of them currently! Marvellous attention to detail though :)
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.
looks good, left a small comment about removing redundancy but that's non-blocking
HostName: ${self.custom.site.host.${self:provider.stage}} | ||
ReplaceKeyPrefixWith: ${self:custom.site.prefix.${self:provider.stage}}/kubernetes-operator/stable | ||
- RoutingRuleCondition: | ||
KeyPrefixEquals: ${self:custom.site.prefix.${self:provider.stage}}/kubernetes-operator/v1.0 |
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 probaby remove this rule, since we have the /v1
prefix now
Stories/Links:
DOP-4474
Notes
README updates