KusionStack / KusionStack/kusion

service module schemas should have flat directory structure

Open
#1,188 0 comments 0 reactions 1 assignee Claimed by @liu-hm19 View on GitHub
kind/feature pending-discussion
Dominant language
Go
Stars
1.3k
Forks
108
Avg merge
11m
Merged PRs (30d)
1

Description

### What would you like to be added?

Service module schemas should have flat directory structure. For example, the following is preferred:

'''
import service as s

app := AppConfiguration {
workload: s.Service {
containers: s.Container {
readinessProbe: s.Probe {
}
}
}
}
'''

Instead of having to remember inner path of every schema:

'''
import service as s
import service.container as c
import service.container.probe as p

app := AppConfiguration {
workload: s.Service {
containers: c.Container {
readinessProbe: p.Probe {
}
}
}
}
'''

### Why is this needed?

Reduce the lines of code one has to write to use a module. Lower cognitive load.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.