Skip to content
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

DEVOPS-3213 Add customerPortal Lint rules and update quip links #120

Merged
merged 11 commits into from
Dec 13, 2022

Conversation

rc-marina
Copy link
Contributor

@rc-marina rc-marina commented Dec 6, 2022

During testing of changes, a number of tenants triggered the customerPortal lint rules:

ERROR <tenant>: WEB_SITE_KEY and GATEWAY_WEB_CLIENT_TOKEN must be present if customerPortal is enabled. Please refer to https://github.com/Ridecell/comp-customer-portal#required-kubernetes-config-for-successful-deployment for help.

Logic adjusted to just check for GATEWAY_WEB_CLIENT_TOKEN.

Additional changes made for having detailed message for no instance found error are repetitive. It would be better to re-organize the code as a function (something like checkInstanceExists that could be re-used in all these locations, but considering to leave that work for a separate PR)

Dec 8:
Created new function called DecryptSecretValue to assist in checking fernet key value is not an empty string during linting.
However, the setup process for decrypting a secret value in the lint check adds 1 minute to the run time.
(Previously, ridectl lint would only take 1 second. With the extra check on the decrypted secret value, it takes 54- 55 seconds in total.)

@avdhoot avdhoot changed the title Add customerPortal Lint rules and update quip links DEVOPS-3213 Add customerPortal Lint rules and update quip links Dec 7, 2022
rc-marina and others added 4 commits December 8, 2022 09:49
* convert common steps to re-usable function

* fix description format

* update suggestion for No instance found error
pkg/cmd/dbshell.go Outdated Show resolved Hide resolved
@rc-marina rc-marina merged commit bb6b1a1 into master Dec 13, 2022
@rc-marina rc-marina deleted the lint-and-doc-enhancements branch December 13, 2022 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants