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

Add support for JSON output format #48

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ernoaapa
Copy link

@ernoaapa ernoaapa commented Jun 28, 2021

To use the outdated information in other systems, provide optional JSON output format.

You can give an optional --output=json flag and the output will be in JSON format like this

[
  {
    "repository": "docker.io",
    "image": "bitnami/mariadb",
    "tag": "10.5.10-debian-10-r18",
    "latestVersion": "10.5.10-debian-10-r18",
    "versionsBehind": 0
  },
  {
    "repository": "k8s.gcr.io",
    "image": "library/coredns",
    "tag": "1.7.0",
    "latestVersion": "1.7.0",
    "versionsBehind": 0
  },
  {
    "repository": "k8s.gcr.io",
    "image": "library/etcd",
    "tag": "3.4.13-0",
    "latestVersion": "3.4.13-0",
    "versionsBehind": 0
  },
  {
    "repository": "docker.io",
    "image": "kindest/kindnetd",
    "tag": "v20200725-4d6bea59",
    "latestVersion": "20200725.0.0-4d6bea59",
    "versionsBehind": 0
  },
  {
    "repository": "k8s.gcr.io",
    "image": "library/kube-apiserver",
    "tag": "v1.19.1",
    "latestVersion": "1.19.1",
    "versionsBehind": 0
  },
  {
    "repository": "k8s.gcr.io",
    "image": "library/kube-controller-manager",
    "tag": "v1.19.1",
    "latestVersion": "1.19.1",
    "versionsBehind": 0
  },
  {
    "repository": "k8s.gcr.io",
    "image": "library/kube-proxy",
    "tag": "v1.19.1",
    "latestVersion": "1.19.1",
    "versionsBehind": 0
  },
  {
    "repository": "k8s.gcr.io",
    "image": "library/kube-scheduler",
    "tag": "v1.19.1",
    "latestVersion": "1.19.1",
    "versionsBehind": 0
  },
  {
    "repository": "docker.io",
    "image": "rancher/local-path-provisioner",
    "tag": "v0.0.14",
    "latestVersion": "0.0.19",
    "versionsBehind": 5
  }
]

Fixes #31

To use the outdated information in other systems,
provide optional JSON output format.
@chase-replicated chase-replicated deleted the branch replicatedhq:main December 9, 2021 00:25
@chase-replicated chase-replicated changed the base branch from master to main December 9, 2021 03:00
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.

Support for JSON or other machine readable output
5 participants