KusionStack / konfig

Shared repository of application models and components, and CI suite for GitOps workflows
Apache License 2.0
27 stars 32 forks source link

refactor: add workload instance type annotation. #85

Closed Peefy closed 1 year ago

Peefy commented 1 year ago

1. Does this PR affect any open issues?(Y/N) and add issue references (e.g. "fix #123", "re #123".):

In the upcoming official version of KCL v0.4.4, we will strengthen the static type check of KCL (follow the type invariability), so we will adjust Konfig's current code slightly to maintain compatibility.

_workloadInstance needs to display the joint type marked as Deployment and StatefulSet, otherwise the KCL compiler will derive the type conflict information of Deployment and StatefulSet

2. What is the scope of this PR (e.g. component or file name):

3. Provide a description of the PR(e.g. more details, effects, motivations or doc link):

4. Are there any breaking changes?(Y/N) and describe the breaking changes(e.g. more details, motivations or doc link):

5. Are there test cases for these changes?(Y/N) select and add more details, references or doc links:

All konfig appops integration tests.

6. Release note

Please refer to Release Notes Language Style Guide to write a quality release note.

None