Autodesk / Autodesk/shore

shore-config - shore config used to determine renderer/executor

Open
#26 0 comments 0 reactions 0 assignees View on GitHub
Backend-Spinnaker enhancement Renderer-JSONNET Shore-CLI
Dominant language
Go
Stars
21
Forks
4
PR merge metrics
No merged PRs in 30d

Description

# Description

Original Author: @dkirillov
The `Renderer` and Executor/`Backend` which are part of `Dependencies` should now be determined by the `renderer.type` and `executor.type` found in the shore config.

For this, the shore config will need to be loaded. `PersistentPreRunE` for the root command runs _before_ any of the other commands run, so most likely this would be the places where the shore config is loaded (`LoadShoreConfig` used from #174).

Example shore config:
```yml
renderer:
type: jsonnet

executor:
type: spinnaker
config:
...

profiles:
default:
...
```

This will set the `Renderer` to `jsonnet` and the Executor/`Backend` to `spinnaker` in the `Dependencies`.

Currently, there are only `jsonnet` and `spinnaker` types.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the root command's PersistentPreRunE and the LoadShoreConfig entry point referenced in the issue. Trace how Dependencies currently selects the Renderer and Executor/Backend, then verify that renderer.type and executor.type from the shore config select the existing jsonnet and spinnaker types.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
40/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.