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

✨ Custom partitioning refactor config #1180

Merged
merged 20 commits into from
Mar 29, 2023

Conversation

mauromorales
Copy link
Member

@mauromorales mauromorales commented Mar 23, 2023

What this PR does / why we need it:

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

Needs kairos-io/kcrypt#14

@netlify
Copy link

netlify bot commented Mar 23, 2023

Deploy Preview for kairos-io canceled.

Name Link
🔨 Latest commit da15db4
🔍 Latest deploy log https://app.netlify.com/sites/kairos-io/deploys/64235a2899ee0e0008f9e9e7

@codecov-commenter
Copy link

codecov-commenter commented Mar 23, 2023

Codecov Report

Merging #1180 (da15db4) into master (7bb9af9) will decrease coverage by 0.73%.
The diff coverage is 49.11%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@            Coverage Diff             @@
##           master    #1180      +/-   ##
==========================================
- Coverage   22.79%   22.07%   -0.73%     
==========================================
  Files          22       16       -6     
  Lines        1610     1282     -328     
==========================================
- Hits          367      283      -84     
+ Misses       1179      950     -229     
+ Partials       64       49      -15     
Impacted Files Coverage Δ
internal/agent/interactive_install.go 0.00% <ø> (ø)
internal/agent/notify.go 0.00% <0.00%> (ø)
internal/agent/recovery.go 0.00% <ø> (ø)
internal/agent/reset.go 0.00% <0.00%> (ø)
internal/agent/upgrade.go 0.00% <0.00%> (ø)
pkg/config/config.go 0.00% <0.00%> (-51.36%) ⬇️
internal/agent/install.go 5.05% <21.53%> (+5.05%) ⬆️
pkg/config/collector/options.go 64.51% <37.50%> (ø)
pkg/config/collector/collector.go 64.38% <64.38%> (ø)
internal/agent/agent.go 42.62% <66.66%> (-0.49%) ⬇️
... and 1 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@mauromorales mauromorales changed the title [WIP] ✨ Custom partitioning refactor config ✨ Custom partitioning refactor config Mar 24, 2023
@mauromorales mauromorales marked this pull request as ready for review March 24, 2023 08:33
@mauromorales mauromorales requested a review from a team March 24, 2023 08:34
jimmykarily
jimmykarily previously approved these changes Mar 24, 2023
mauromorales and others added 16 commits March 28, 2023 15:52
to split the collection of config sources out of the config package.

Each consumer of the new package will take care of unmarshalling the
yaml to a specific Config struct, do validations etc.

Signed-off-by: Dimitris Karakasilis <dimitris@spectrocloud.com>
Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
Signed-off-by: Dimitris Karakasilis <dimitris@spectrocloud.com>
Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
Signed-off-by: Dimitris Karakasilis <dimitris@spectrocloud.com>
Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
to return a Config directly

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
TODO: Print a warning when a file with missing or invalid header
is encountered. Will do that when we implement proper logging on the
Config

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
Config will be specific to Kairos while Collector will be generic. This
will allow us to do validations which are just related to Kairos at the
config level, while including every type of key and querying of the full
yaml at the Collector level splitting the responsibilities of each
package.

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
@mauromorales mauromorales force-pushed the 209-custom-partitioning-refactor-config branch from 9811310 to ccf7baf Compare March 28, 2023 13:52
@jimmykarily jimmykarily merged commit b6ae4b5 into master Mar 29, 2023
@jimmykarily jimmykarily deleted the 209-custom-partitioning-refactor-config branch March 29, 2023 14:25
@mudler mudler mentioned this pull request Mar 30, 2023
35 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants