[ENH] - Improved checks on projectname during init stage
See original GitHub issueFeature description
My qhub projectname
that I used when I ran qhub init
included an underscore. This was the error that was generated when I went on to qhub deploy
:
[terraform]: │ Error: "name" can only contain lowercase letters, numbers and hyphens
[terraform]: │
[terraform]: │ with module.kubernetes.google_container_cluster.main,
[terraform]: │ on modules/kubernetes/main.tf line 5, in resource "google_container_cluster" "main":
[terraform]: │ 5: name = var.name
[terraform]: │
[terraform]: ╵
[terraform]: ╷
[terraform]: │ Error: "account_id" ("this_deployment-dev") doesn't match regexp "^[a-z](?:[-a-z0-9]{4,28}[a-z0-9])$"
[terraform]: │
[terraform]: │ with module.kubernetes.google_service_account.main,
[terraform]: │ on modules/kubernetes/service_account.tf line 2, in resource "google_service_account" "main":
[terraform]: │ 2: account_id = var.name
[terraform]: │
[terraform]: ╵
- the error comes from a subsequent step in the project (
init
vsdeploy
) - the error mentions
name
but the variable that I set wasprojectname
These things make it misleading for users to debug.
I recommend that the init
stage have a check to ensure that it passes the required restrictions and provides reasonable feedback when it doesn’t
Value and/or benefit
users who are not confused at failures.
Anything else?
No response
Issue Analytics
- State:
- Created a year ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
[ENH] - Improved checks on projectname during init stage · Issue ...
This was the error that was generated when I went on to qhub deploy: [terraform]: ... [ENH] - Improved checks on projectname during...
Read more >Caching general build artifacts between stages - GitLab.org
In the build stage our app gets put together and into a new folder . ... When we check in chef cookbooks, gitlab-ci...
Read more >Flit Documentation
Run flit init in the directory containing the module to create a pyproject.toml file. It will look something like this: [build-system].
Read more >Azure DevOps Server 2020 Release Notes - Microsoft Learn
Fix Gated check-in builds error when the Organization settings for pipeline had job authorization scope configured as Limit job authorization ...
Read more >Release Notes - Black Duck - Synopsys
verification, specifically in name constraint checking. ... Fixed an issue where the project name of dependency scan could become unreadable characters when ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi @trallard, this check has now be incorporated into the
init
command 🙌Completed as part of new Nebari CLI 🤘