Skip to content

feat: Configurable data folder#456

Merged
disq merged 4 commits intocloudquery:mainfrom
disq:feat/configurable-data-folder
Feb 1, 2022
Merged

feat: Configurable data folder#456
disq merged 4 commits intocloudquery:mainfrom
disq:feat/configurable-data-folder

Conversation

@disq
Copy link
Copy Markdown
Member

@disq disq commented Jan 31, 2022

Implements #446.

	rootCmd.PersistentFlags().String("data-dir", "./.cq", "Directory to save and load CloudQuery persistent data to (env: CQ_DATA_DIR)")
	rootCmd.PersistentFlags().String("plugin-dir", "./.cq/providers", "Directory to save and load CloudQuery plugins from (env: CQ_PLUGIN_DIR)")
	rootCmd.PersistentFlags().String("policy-dir", "./.cq/policies", "Directory to save and load CloudQuery policies from (env: CQ_POLICY_DIR)")

Little bit too much. Maybe migrate away from plugin-dir and policy-dir in the future

@disq disq requested a review from roneli January 31, 2022 16:53
@github-actions github-actions bot added the feat label Jan 31, 2022
Copy link
Copy Markdown
Contributor

@spangenberg spangenberg left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
Contributor

@roneli roneli left a comment

Choose a reason for hiding this comment

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

LGTM, agree we should deprecate plugin/policy dir or default them to data-dir/policies|plugin if the flag isn't given. Docs need update PR.

@disq
Copy link
Copy Markdown
Member Author

disq commented Feb 1, 2022

@roneli so, I'll make those two options hidden and empty... if empty, it'll default to datadir/[policies|providers]. wdyt?

@disq disq requested a review from roneli February 1, 2022 09:20
Copy link
Copy Markdown
Contributor

@roneli roneli left a comment

Choose a reason for hiding this comment

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

LGTM

@disq disq merged commit 038bb26 into cloudquery:main Feb 1, 2022
@disq disq deleted the feat/configurable-data-folder branch February 1, 2022 12:06
@disq disq mentioned this pull request Feb 1, 2022
TinLe pushed a commit to TinLe/cloudquery that referenced this pull request Feb 2, 2022
* upstream/main: (25 commits)
  fix: Relax tfstate version check (cloudquery#460)
  fix: Use provider source (cloudquery#458)
  feat: Configurable data folder (cloudquery#456)
  chore: remove duplicate lint workflow (cloudquery#454)
  chore: Synced local '.github/workflows/' with remote 'workflows/common' (cloudquery#453)
  docs: Small fixes (cloudquery#452)
  chore: Remove extra linter workflow (cloudquery#451)
  fix: Getter implementation (cloudquery#450)
  fix: DB version validation shouldn't block on vanilla PG (cloudquery#447)
  fix: Validate provider semantic version (cloudquery#445)
  feat: Remove filtering from executor (cloudquery#429)
  fix: Panic when canceled (cloudquery#443)
  fix: Nil connection (cloudquery#442)
  feat: Update drift for AWS IOT resources (cloudquery#434)
  fix: Typo in error message (cloudquery#441)
  feat: Report on multiple aliased providers (cloudquery#437)
  fix: Refer to cloudquery as cloudquery (cloudquery#440)
  fix: Panic On Policy Describe (cloudquery#438)
  feat: Update SDK v0.7.0 (cloudquery#435)
  fix: Don't connect on cloudquery init (cloudquery#436)
  ...
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