-
Notifications
You must be signed in to change notification settings - Fork 70
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
Error should be returned if BYORegistryEnabled is true but BYORegistryDomain is empty #1639
Conversation
…istry.host is not present
…istry.host is not present
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1639 +/- ##
=======================================
Coverage 86.74% 86.74%
=======================================
Files 114 114
Lines 16691 16693 +2
=======================================
+ Hits 14478 14480 +2
Misses 1323 1323
Partials 890 890 ☔ View full report in Codecov by Sentry. |
@@ -41,6 +41,7 @@ var ( | |||
ErrDagOnlyDeployDisabledInConfig = errors.New("to perform this operation, set both deployments.dagOnlyDeployment and deployments.configureDagDeployment to true in your Astronomer cluster") | |||
ErrDagOnlyDeployNotEnabledForDeployment = errors.New("to perform this operation, first set the Deployment type to 'dag_deploy' via the UI or the API or the CLI") | |||
ErrEmptyDagFolderUserCancelledOperation = errors.New("no DAGs found in the dags folder. User canceled the operation") | |||
ErrBYORegistryDomainNotSet = errors.New("Custom registry host is not set in config. It can be set at astronomer.houston.config.deployments.registry.protectedCustomRegistry.updateRegistry.host") //nolint |
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.
@rishkarajgi is this wording is okay
@@ -41,6 +41,7 @@ var ( | |||
ErrDagOnlyDeployDisabledInConfig = errors.New("to perform this operation, set both deployments.dagOnlyDeployment and deployments.configureDagDeployment to true in your Astronomer cluster") | |||
ErrDagOnlyDeployNotEnabledForDeployment = errors.New("to perform this operation, first set the Deployment type to 'dag_deploy' via the UI or the API or the CLI") | |||
ErrEmptyDagFolderUserCancelledOperation = errors.New("no DAGs found in the dags folder. User canceled the operation") | |||
ErrBYORegistryDomainNotSet = errors.New("Custom registry host is not set in config. It can be set at astronomer.houston.config.deployments.registry.protectedCustomRegistry.updateRegistry.host") //nolint |
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.
Why is the linting check removed for this?
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.
@kushalmalani It says Capital letters are not allowed within a string. So, protectedCustomRegistry was giving an error :P
Description
Error should be returned if BYORegistryEnabled is true but BYORegistryDomain is empty
🎟 Issue(s)
Related https://github.com/astronomer/issues/issues/6100
🧪 Functional Testing
Tested locally
📸 Screenshots
📋 Checklist
make test
before taking out of draftmake lint
before taking out of draft