From 5dd0842f25553e6298bdb8d753caf2b18a0f82e3 Mon Sep 17 00:00:00 2001 From: "yunju.lly" Date: Thu, 15 Jun 2023 14:41:37 +0800 Subject: [PATCH 1/3] feat: add logcli plugin for kbcli --- plugins/logcli.yaml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 plugins/logcli.yaml diff --git a/plugins/logcli.yaml b/plugins/logcli.yaml new file mode 100644 index 0000000..2749404 --- /dev/null +++ b/plugins/logcli.yaml @@ -0,0 +1,35 @@ +apiVersion: krew.googlecontainertools.github.com/v1alpha2 +kind: Plugin +metadata: + name: logcli +spec: + version: v2.8.2 + homepage: https://github.com/grafana/loki + caveats: | + This plugin needs config LOKI_ADDR environment variable which points to a local instance directly + shortDescription: LogCLI provides a command-line interface for querying logs against Loki. + description: | + LogCLI is the command-line interface to Grafana Loki. + It facilitates running LogQL queries against a Loki instance. + platforms: + - selector: + matchLabels: + os: linux + arch: amd64 + uri: https://github.com/grafana/loki/releases/download/v2.8.2/logcli-linux-amd64.zip + sha256: 5aa8a83c343c68f9dcb63305642522391fa671abf1c74195feb855ab576e2904 + bin: logcli-linux-amd64 + - selector: + matchLabels: + os: darwin + arch: arm64 + uri: https://github.com/grafana/loki/releases/download/v2.8.2/logcli-darwin-arm64.zip + sha256: bb3331e3d2b4a4925565d0f66ce579bdd4e6d183808444bf05afea2f1b814641 + bin: logcli-darwin-arm64 + - selector: + matchLabels: + os: windows + arch: amd64 + uri: https://github.com/grafana/loki/releases/download/v2.8.2/logcli-windows-amd64.exe.zip + sha256: fa900e4d9b77bf5f349cefdadadd4ad921d940dd58d4c74befcba07a133bdf11 + bin: logcli-windows-amd64.exe \ No newline at end of file From 43736271f178fde9aadcf780ee7aa0a9ab3c8552 Mon Sep 17 00:00:00 2001 From: "yunju.lly" Date: Tue, 20 Jun 2023 11:41:43 +0800 Subject: [PATCH 2/3] chore: move logcli.yaml from plugins dir to krew-plugins dir --- krew-plugins/logcli.yaml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 krew-plugins/logcli.yaml diff --git a/krew-plugins/logcli.yaml b/krew-plugins/logcli.yaml new file mode 100644 index 0000000..2749404 --- /dev/null +++ b/krew-plugins/logcli.yaml @@ -0,0 +1,35 @@ +apiVersion: krew.googlecontainertools.github.com/v1alpha2 +kind: Plugin +metadata: + name: logcli +spec: + version: v2.8.2 + homepage: https://github.com/grafana/loki + caveats: | + This plugin needs config LOKI_ADDR environment variable which points to a local instance directly + shortDescription: LogCLI provides a command-line interface for querying logs against Loki. + description: | + LogCLI is the command-line interface to Grafana Loki. + It facilitates running LogQL queries against a Loki instance. + platforms: + - selector: + matchLabels: + os: linux + arch: amd64 + uri: https://github.com/grafana/loki/releases/download/v2.8.2/logcli-linux-amd64.zip + sha256: 5aa8a83c343c68f9dcb63305642522391fa671abf1c74195feb855ab576e2904 + bin: logcli-linux-amd64 + - selector: + matchLabels: + os: darwin + arch: arm64 + uri: https://github.com/grafana/loki/releases/download/v2.8.2/logcli-darwin-arm64.zip + sha256: bb3331e3d2b4a4925565d0f66ce579bdd4e6d183808444bf05afea2f1b814641 + bin: logcli-darwin-arm64 + - selector: + matchLabels: + os: windows + arch: amd64 + uri: https://github.com/grafana/loki/releases/download/v2.8.2/logcli-windows-amd64.exe.zip + sha256: fa900e4d9b77bf5f349cefdadadd4ad921d940dd58d4c74befcba07a133bdf11 + bin: logcli-windows-amd64.exe \ No newline at end of file From f8c4b332738818047349d30e50fb87dbaba0826f Mon Sep 17 00:00:00 2001 From: "yunju.lly" Date: Tue, 20 Jun 2023 11:46:23 +0800 Subject: [PATCH 3/3] chore: move logcli.yaml from plugins dir to krew-plugins dir --- plugins/logcli.yaml | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 plugins/logcli.yaml diff --git a/plugins/logcli.yaml b/plugins/logcli.yaml deleted file mode 100644 index 2749404..0000000 --- a/plugins/logcli.yaml +++ /dev/null @@ -1,35 +0,0 @@ -apiVersion: krew.googlecontainertools.github.com/v1alpha2 -kind: Plugin -metadata: - name: logcli -spec: - version: v2.8.2 - homepage: https://github.com/grafana/loki - caveats: | - This plugin needs config LOKI_ADDR environment variable which points to a local instance directly - shortDescription: LogCLI provides a command-line interface for querying logs against Loki. - description: | - LogCLI is the command-line interface to Grafana Loki. - It facilitates running LogQL queries against a Loki instance. - platforms: - - selector: - matchLabels: - os: linux - arch: amd64 - uri: https://github.com/grafana/loki/releases/download/v2.8.2/logcli-linux-amd64.zip - sha256: 5aa8a83c343c68f9dcb63305642522391fa671abf1c74195feb855ab576e2904 - bin: logcli-linux-amd64 - - selector: - matchLabels: - os: darwin - arch: arm64 - uri: https://github.com/grafana/loki/releases/download/v2.8.2/logcli-darwin-arm64.zip - sha256: bb3331e3d2b4a4925565d0f66ce579bdd4e6d183808444bf05afea2f1b814641 - bin: logcli-darwin-arm64 - - selector: - matchLabels: - os: windows - arch: amd64 - uri: https://github.com/grafana/loki/releases/download/v2.8.2/logcli-windows-amd64.exe.zip - sha256: fa900e4d9b77bf5f349cefdadadd4ad921d940dd58d4c74befcba07a133bdf11 - bin: logcli-windows-amd64.exe \ No newline at end of file