Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: workload, port and secret according to the new appConfig model #825

Merged
merged 2 commits into from Feb 27, 2024

Conversation

SparkYuan
Copy link
Member

@SparkYuan SparkYuan commented Feb 26, 2024

What type of PR is this?

/kind refactor

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #773 #813

Special notes for your reviewer:

Does this PR introduce a user-facing change?


Additional documentation e.g., design docs, usage docs, etc.:


split types in the v1/types.go to separate files to maintain consistency with the coding style of the rest of the code
@coveralls
Copy link

coveralls commented Feb 26, 2024

Pull Request Test Coverage Report for Build 8049141999

Details

  • -26 of 178 (85.39%) changed or added relevant lines in 9 files are covered.
  • 7 unchanged lines in 3 files lost coverage.
  • Overall coverage decreased (-2.5%) to 74.446%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pkg/modules/generators/workload/secret/secret_generator.go 7 10 70.0%
pkg/modules/generators/workload/workload_generator.go 24 30 80.0%
pkg/modules/generators/workload/service_generator.go 65 82 79.27%
Files with Coverage Reduction New Missed Lines %
pkg/workspace/util.go 1 52.0%
pkg/engine/operation/parser/parser.go 3 79.27%
pkg/modules/generators/workload/service_generator.go 3 79.43%
Totals Coverage Status
Change from base Build 8048881532: -2.5%
Covered Lines: 7053
Relevant Lines: 9474

💛 - Coveralls

the way of using namespace isn't changed and marked it as a todo
@SparkYuan SparkYuan merged commit 8f46c33 into KusionStack:main Feb 27, 2024
8 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Feb 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deserialize AppConfig and Workspace configs to different Kusion modules to prepare inputs for generators
3 participants