Skip to content

cli bundle init ssh support #5881

Description

@Cupprum

Describe the issue

When i call the databricks bundle init <SSH-PATH> command, i want to be able to fetch the template from GitHub Enterprise over SSH.

Steps to reproduce the behavior

  1. Get GitHub Enterprise repo - Find a repository which is stored under Github Enterprise. The url in your browser should follow similar pattern: https://.ghe.com//. It should NOT start with https://github.com
  2. Get the SSH link to the repo - Store the value in Code -> Local -> SSH for future use.
  3. Create dummy template - Upload a dummy databricks_template_schema.json file into the root folder of the repository.
  4. Create a dummy project to test the template - Create a new folder somewhere on your computer which is going to be used for template testing.
  5. Run - Call the databricks bundle init command from the new folder, use the SSH link to the repo which we retrieved previously. In my case it is databricks bundle init company@company.ghe.com/company/databricks-cli-template.git' --template-dir coffee_sales_example

Expected Behavior

The bundle gets initiated using the provided template which is downloaded from Github enterprise over SSH.

Actual Behavior

After executing the command, i get the following error: ```
Error: not a bundle template: expected to find a template schema file at databricks_template_schema.json
exit status 1


### OS and CLI version
CLI version `Databricks CLI v1.4.0`, tested in a Fedora Docker devcontainer in Bash and also on Windows in Powershell.

### Is this a regression?
No.

### Debug Logs
[root@45ac4a58cd7c temp]# databricks bundle init 'company@company.ghe.com:company/databricks-cli-template' --log-level=debug
14:06:07 Info: start pid=84525 version=1.4.0 args="databricks, bundle, init, company@company.ghe.com:company/databricks-cli-template, --log-level=debug"
14:06:07 Debug: profile "xxx" resolved from [__settings__].default_profile pid=84525
14:06:07 Debug: Loading "xxx" profile from /root/.databricks/.databrickscfg pid=84525 sdk=true
14:06:07 Debug: [Local Cache] using cache key: xxx pid=84525
14:06:07 Debug: [Local Cache] cache hit pid=84525
14:06:07 Debug: Resolved cloud from hostname: "AWS" pid=84525 sdk=true
14:06:07 Debug: Resolved token_audience from host metadata token_federation_default_oidc_audiences: "https://xxx.cloud.databricks.com/oidc/v1/token" pid=84525 sdk=true
14:06:07 Debug: Resolved discovery_url from host metadata: "https://xxx.cloud.databricks.com/oidc/.well-known/oauth-authorization-server" pid=84525 sdk=true
Error: not a bundle template: expected to find a template schema file at databricks_template_schema.json
14:06:07 Info: failed execution pid=84525 exit_code=1 error="not a bundle template: expected to find a template schema file at databricks_template_schema.json"
14:06:07 Debug: no telemetry logs to upload pid=84525
[root@45ac4a58cd7c temp]#

Metadata

Metadata

Assignees

Labels

CLICLI related issuesDABsDABs related issues

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions