Skip to content
This repository has been archived by the owner on Aug 16, 2022. It is now read-only.

feat: YAML config support #182

Merged
merged 2 commits into from
Jun 22, 2022
Merged

feat: YAML config support #182

merged 2 commits into from
Jun 22, 2022

Conversation

disq
Copy link
Member

@disq disq commented Jun 21, 2022

to go with cloudquery/cq-provider-sdk#332 and cloudquery/cloudquery#887

go run main.go init k8s --config config.yml creates this:

cloudquery:
    providers:
        - name: k8s
          version: latest
    connection:
        type: postgres
        username: postgres
        password: pass
        host: localhost
        port: 5432
        database: postgres
        sslmode: disable
providers:
    # provider configurations
    - name: k8s
      # Optional. Set contexts that you want to fetch. If it is not given then all contexts from config are iterated over.
      # contexts:
      #   - YOUR_CONTEXT_NAME1
      #   - YOUR_CONTEXT_NAME2
      #  
      # list of resources to fetch
      resources:
        - apps.daemon_sets
        - apps.deployments
        - apps.replica_sets
        - apps.stateful_sets
        - batch.cron_jobs
        - batch.jobs
        - core.endpoints
        - core.limit_ranges
        - core.namespaces
        - core.nodes
        - core.pods
        - core.resource_quotas
        - core.service_accounts
        - core.services
        - networking.network_policies
        - rbac.role_bindings
        - rbac.roles

@disq disq requested a review from a team as a code owner June 21, 2022 09:53
@disq disq requested review from zagronitay and removed request for a team June 21, 2022 09:53
@erezrokah erezrokah merged commit e58d2cf into main Jun 22, 2022
@erezrokah erezrokah deleted the feat/yaml-support branch June 22, 2022 11:21
kodiakhq bot pushed a commit that referenced this pull request Jun 22, 2022
🤖 I have created a release *beep* *boop*
---


## [0.5.11](v0.5.10...v0.5.11) (2022-06-22)


### Features

* YAML config support ([#182](#182)) ([e58d2cf](e58d2cf))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
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.

2 participants