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

feat: deprecate config file types other than yaml and toml #3517

Merged
merged 4 commits into from
Feb 19, 2025

Conversation

AustinAbro321
Copy link
Contributor

Related Issue

Fixes #3516

Checklist before merging

Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
@AustinAbro321 AustinAbro321 requested review from a team as code owners February 19, 2025 16:37
Copy link

netlify bot commented Feb 19, 2025

Deploy Preview for zarf-docs canceled.

Name Link
🔨 Latest commit 3c56c65
🔍 Latest deploy log https://app.netlify.com/sites/zarf-docs/deploys/67b63bc8f59e5b00088f5681

Copy link

codecov bot commented Feb 19, 2025

Codecov Report

Attention: Patch coverage is 0% with 12 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/cmd/viper.go 0.00% 10 Missing ⚠️
src/cmd/dev.go 0.00% 2 Missing ⚠️
Files with missing lines Coverage Δ
src/cmd/dev.go 44.44% <0.00%> (-0.22%) ⬇️
src/cmd/viper.go 53.08% <0.00%> (-6.64%) ⬇️

Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
@AustinAbro321 AustinAbro321 changed the title feat!: deprecate file types other than yaml and json feat: deprecate file types other than yaml and json Feb 19, 2025
@AustinAbro321 AustinAbro321 changed the title feat: deprecate file types other than yaml and json feat: deprecate config file types other than yaml and json Feb 19, 2025
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
@AustinAbro321 AustinAbro321 changed the title feat: deprecate config file types other than yaml and json feat: deprecate config file types other than yaml and toml Feb 19, 2025
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
Copy link
Contributor

@mkcp mkcp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -9,7 +9,7 @@ import { Tabs, TabItem, Code } from "@astrojs/starlight/components";

Users can use a config file to easily control flags for `zarf init`, `zarf package create`, and `zarf package deploy` commands, as well as global flags (excluding `--confirm`), enabling a more straightforward and declarative workflow.

Zarf supports config files written in common configuration file formats including `toml`, `json`, `yaml`, `ini` and `props`, and by default Zarf will look for a file called `zarf-config` with one of these filenames in the current working directory. To generate a blank config file you can run `zarf dev generate-config` with an optional output filename/format. For example, to create an empty config file with the `my-cool-env` in the yaml format, you can use `zarf dev generate-config my-cool-env.yaml`.
Zarf supports config files written in `toml` and `yaml`. By default Zarf will look for a file called `zarf-config` with one of these filenames in the current working directory. To generate a blank config file you can run `zarf dev generate-config` with an optional output filename/format. For example, to create an empty config file with the `my-cool-env` in the yaml format, you can use `zarf dev generate-config my-cool-env.yaml`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@@ -474,6 +474,8 @@ func (o *devGenerateConfigOptions) run(_ *cobra.Command, args []string) error {
}

v := getViper()
// TODO once other formats are fully deprecated move this to the global viper config
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@AustinAbro321 AustinAbro321 added this pull request to the merge queue Feb 19, 2025
Merged via the queue into main with commit 14f090a Feb 19, 2025
26 checks passed
@AustinAbro321 AustinAbro321 deleted the deprecate-config-file-formats branch February 19, 2025 21:05
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.

Deprecate configuration file types other than yaml and toml
2 participants