Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Commit

Permalink
Merge pull request #10 from superseb/local_data
Browse files Browse the repository at this point in the history
Local data file option
  • Loading branch information
superseb authored Jan 26, 2022
2 parents 0b21084 + a9aebf8 commit cc0949e
Show file tree
Hide file tree
Showing 3 changed files with 173 additions and 164 deletions.
17 changes: 11 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ Under construction!
Parameters:

- `rancher_version`: The version of Rancher that is used for querying KDM data, examples: v2.5.10, v2.6.3, v2.6.0
- `channel`: The source of KDM data used, valid options are: `embedded` (what is in the released version, no out-of-band data), `release` (what is currently released in KDM and active to installs refreshing KDM from online source), `dev` (what is currently in development)
- `channel_version`: The version for the source of KDM data used (KDM is published for each minor Rancher version), examples: v2.5, v2.6
- `channel`: The source of KDM data used, valid options are: `embedded` (what is in the released version, no out-of-band data), `release` (what is currently released in KDM and active to installs refreshing KDM from online source), `dev` (what is currently in development), `./$FILE` (local data file, must be prefixed with `./` to indicate local data file)

## Examples

Expand Down Expand Up @@ -47,13 +46,19 @@ kdmq --verbose diffk8s v2.6.3 v2.6.3 embedded release
* List k8s images for a Rancher k8s version

```
kdmq listk8simages v1.22.5-rancher1-1 v2.6 release
kdmq listk8simages v1.22.5-rancher1-1 v2.6.3 release
```

* Diff k8s images for Rancher k8s versions

```
kdmq diffk8simages v1.22.5-rancher1-1 v1.22.4-rancher1-1 v2.6 dev
kdmq diffk8simages v1.22.5-rancher1-1 v1.22.4-rancher1-1 v2.6.3 dev release
```

* Diff k8s images for Rancher k8s versions with local data

```
kdmq diffk8simages v1.22.5-rancher1-1 v1.22.4-rancher1-1 v2.6.3 dev ./data.json
```

* Diff oneway all k8s images between Rancher k8s versions between Rancher version
Expand All @@ -65,11 +70,11 @@ kdmq --diff-oneway diffallk8simages v2.6.0 v2.6.3 embedded embedded
* List k8s addons for Rancher k8s version

```
kdmq listk8saddons v1.22.5-rancher1-1 v2.6 release
kdmq listk8saddons v1.22.5-rancher1-1 v2.6.3 release
```

* Diff k8s addons for Rancher k8s versions

```
kdmq diffk8saddons v1.22.5-rancher1-1 v1.21.7-rancher1-1 v2.6 release
kdmq diffk8saddons v1.22.5-rancher1-1 v1.21.7-rancher1-1 v2.6.3 release release
```
Loading

0 comments on commit cc0949e

Please sign in to comment.