question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[ENH] - Improved checks on projectname during init stage

See original GitHub issue

Feature 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]: ╵
  1. the error comes from a subsequent step in the project (init vs deploy)
  2. the error mentions name but the variable that I set was projectname

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:closed
  • Created a year ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
iameskildcommented, Sep 22, 2022

Hi @trallard, this check has now be incorporated into the init command 🙌

0reactions
iameskildcommented, Nov 1, 2022

Completed as part of new Nebari CLI 🤘

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found