This repository was archived by the owner on Sep 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Restart the frontend deployment to update site-config #60776
Open
daxmc99
wants to merge
13
commits into
main
Choose a base branch
from
dax/rollout_the_frontend_on_conf_change
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 7 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
1853fff
Restart the frontend deployment to update site-config
daxmc99 2f5ecc0
Bazel
daxmc99 da84257
Merge branch 'main' into dax/rollout_the_frontend_on_conf_change
daxmc99 f911529
Merge branch 'main' into dax/rollout_the_frontend_on_conf_change
daxmc99 1e3ff6d
fixup naming
daxmc99 0cbe359
Merge branch 'main' into dax/rollout_the_frontend_on_conf_change
daxmc99 05109d2
fixup naming
daxmc99 efecd89
Use SOAP to determine if we are on cloud
daxmc99 c379ad6
Merge branch 'main' into dax/rollout_the_frontend_on_conf_change
daxmc99 0302598
Address review comments
daxmc99 5f98984
Merge branch 'main' into dax/rollout_the_frontend_on_conf_change
daxmc99 7f73efe
bazel
daxmc99 17d5aeb
Merge branch 'main' into dax/rollout_the_frontend_on_conf_change
daxmc99 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
will this cause drift with the deployment manifests? e.g., kustomize, helm.
I would like to see an E2E test against a locally deployed (with
kind) sourcegraph k8s deployment.you can build images from this branch with:
Then in your helm overrides:
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.
@michaellzc I do not expect any drift, b/c I just did
kubectl rollout restart deployment sourcegraph-frontendand it resulted in these annotations being added to deployment:so this action is same as normal operation done by our self-service
but +1 for test results.
Uh oh!
There was an error while loading. Please reload this page.
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.
got it, didn't know that's how
rollout restartwork underneath.on that notes, a few suggestions:
kubectl.kubernetes.io/restartedAtto something likesourcegraph.com/restartedAt. just makes it clear we're not trying to impersonate askubectl, and leave a proper fingerprint.SRC_ENABLE_FRONTEND_SITE_RELOAD) so it's possible to disable this feature if we want, especially frontend availability affects Cloud uptime SLA.