From 9a23c257b651a88f0e5565dc2f1844d852c5fe92 Mon Sep 17 00:00:00 2001 From: Oguzhan Yilmaz Date: Sun, 17 Nov 2024 21:35:56 +0300 Subject: [PATCH 1/3] add krew manifest for snapshot_api_objects --- plugins/snapshot_api_objects.yaml | 43 +++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 plugins/snapshot_api_objects.yaml diff --git a/plugins/snapshot_api_objects.yaml b/plugins/snapshot_api_objects.yaml new file mode 100644 index 00000000000..2a547f538ff --- /dev/null +++ b/plugins/snapshot_api_objects.yaml @@ -0,0 +1,43 @@ +apiVersion: krew.googlecontainertools.github.com/v1alpha2 +kind: Plugin +metadata: + # 'name' must match the filename of the manifest. The name defines how + name: snapshot_api_objects +spec: + # 'version' is a valid semantic version string (see semver.org). Note the prefix 'v' is required. + version: "v0.0.4" + # 'homepage' usually links to the GitHub repository of the plugin + homepage: https://github.com/oguzhan-yilmaz/kubectl-snapshot-api-objects + # 'shortDescription' explains what the plugin does in only a few words + shortDescription: "Snapshot Kubernetes API Objects" + description: | + Snapshot Kubernetes API Objects and save them as .tar files. + caveats: | + Requires: + - kubectl neat + - yq + + platforms: + - selector: + matchExpressions: + - key: "os" + operator: "In" + values: + - darwin + - linux + # 'uri' specifies .zip or .tar.gz archive URL of a plugin + uri: "https://github.com/oguzhan-yilmaz/kubectl-snapshot-api-objects/archive/v0.0.4.tar.gz" # https://github.com/achanda/kubectl-restart/archive/v0.0.3.zip + # 'sha256' is the sha256sum of the url (archive file) above + sha256: a6194b986756e26abeb53a18e9add1e4dde8326bfb6a9dd41cf1b6cdff26ed94 + + # 'files' lists which files should be extracted out from downloaded archive + files: + - from: "kubectl-snapshot-api-objects-*/snapshot_api_objects" + to: "." + - from: "kubectl-snapshot-api-objects-*/LICENSE" + to: "." + + # 'bin' specifies the path to the the plugin executable among extracted files + bin: snapshot_api_objects + + # chmod +x ~/.krew/store/snapshot_api_objects/v0.0.1/source/snapshot-api-objects-script.sh \ No newline at end of file From 6f00776aa6a3a7162198813cf9ebcefd436728c4 Mon Sep 17 00:00:00 2001 From: Oguzhan Yilmaz Date: Sun, 17 Nov 2024 21:58:44 +0300 Subject: [PATCH 2/3] update to v0.0.5 --- plugins/snapshot_api_objects.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/snapshot_api_objects.yaml b/plugins/snapshot_api_objects.yaml index 2a547f538ff..937d7497311 100644 --- a/plugins/snapshot_api_objects.yaml +++ b/plugins/snapshot_api_objects.yaml @@ -5,13 +5,13 @@ metadata: name: snapshot_api_objects spec: # 'version' is a valid semantic version string (see semver.org). Note the prefix 'v' is required. - version: "v0.0.4" + version: "v0.0.5" # 'homepage' usually links to the GitHub repository of the plugin homepage: https://github.com/oguzhan-yilmaz/kubectl-snapshot-api-objects # 'shortDescription' explains what the plugin does in only a few words shortDescription: "Snapshot Kubernetes API Objects" description: | - Snapshot Kubernetes API Objects and save them as .tar files. + Snapshot all Kubernetes Objects and save them as yaml files in .tar.gz archive. caveats: | Requires: - kubectl neat @@ -26,9 +26,9 @@ spec: - darwin - linux # 'uri' specifies .zip or .tar.gz archive URL of a plugin - uri: "https://github.com/oguzhan-yilmaz/kubectl-snapshot-api-objects/archive/v0.0.4.tar.gz" # https://github.com/achanda/kubectl-restart/archive/v0.0.3.zip + uri: "https://github.com/oguzhan-yilmaz/kubectl-snapshot-api-objects/archive/v0.0.5.tar.gz" # https://github.com/achanda/kubectl-restart/archive/v0.0.3.zip # 'sha256' is the sha256sum of the url (archive file) above - sha256: a6194b986756e26abeb53a18e9add1e4dde8326bfb6a9dd41cf1b6cdff26ed94 + sha256: 39ee15d3852056ac870769c37cb83880546b2fbda1e58731b34d3d7b49bb2380 # 'files' lists which files should be extracted out from downloaded archive files: From 2f4cf8022f32201ccd09cbb1aeff5c8e9963f113 Mon Sep 17 00:00:00 2001 From: Oguzhan Yilmaz Date: Mon, 18 Nov 2024 10:27:42 +0300 Subject: [PATCH 3/3] rename plugin to snapshot-api-objects from snapshot_api_objects --- plugins/snapshot-api-objects.yaml | 29 +++++++++++++++++++++ plugins/snapshot_api_objects.yaml | 43 ------------------------------- 2 files changed, 29 insertions(+), 43 deletions(-) create mode 100644 plugins/snapshot-api-objects.yaml delete mode 100644 plugins/snapshot_api_objects.yaml diff --git a/plugins/snapshot-api-objects.yaml b/plugins/snapshot-api-objects.yaml new file mode 100644 index 00000000000..d5d115284cb --- /dev/null +++ b/plugins/snapshot-api-objects.yaml @@ -0,0 +1,29 @@ +apiVersion: krew.googlecontainertools.github.com/v1alpha2 +kind: Plugin +metadata: + name: snapshot-api-objects +spec: + version: "v0.0.6" + homepage: https://github.com/oguzhan-yilmaz/kubectl-snapshot-api-objects + shortDescription: "Snapshot Kubernetes API Objects" + description: | + Snapshot all Kubernetes Objects and save them as yaml files in .tar.gz archive. + caveats: | + Requires: + - kubectl neat + platforms: + - selector: + matchExpressions: + - key: "os" + operator: "In" + values: + - darwin + - linux + uri: "https://github.com/oguzhan-yilmaz/kubectl-snapshot-api-objects/archive/v0.0.6.tar.gz" # https://github.com/achanda/kubectl-restart/archive/v0.0.3.zip + sha256: 6de572bbbc64378287decbaa54776e593b8a46c082c7dac025b79b86125ea692 + files: + - from: "kubectl-snapshot-api-objects-*/snapshot-api-objects" + to: "." + - from: "kubectl-snapshot-api-objects-*/LICENSE" + to: "." + bin: snapshot-api-objects \ No newline at end of file diff --git a/plugins/snapshot_api_objects.yaml b/plugins/snapshot_api_objects.yaml deleted file mode 100644 index 937d7497311..00000000000 --- a/plugins/snapshot_api_objects.yaml +++ /dev/null @@ -1,43 +0,0 @@ -apiVersion: krew.googlecontainertools.github.com/v1alpha2 -kind: Plugin -metadata: - # 'name' must match the filename of the manifest. The name defines how - name: snapshot_api_objects -spec: - # 'version' is a valid semantic version string (see semver.org). Note the prefix 'v' is required. - version: "v0.0.5" - # 'homepage' usually links to the GitHub repository of the plugin - homepage: https://github.com/oguzhan-yilmaz/kubectl-snapshot-api-objects - # 'shortDescription' explains what the plugin does in only a few words - shortDescription: "Snapshot Kubernetes API Objects" - description: | - Snapshot all Kubernetes Objects and save them as yaml files in .tar.gz archive. - caveats: | - Requires: - - kubectl neat - - yq - - platforms: - - selector: - matchExpressions: - - key: "os" - operator: "In" - values: - - darwin - - linux - # 'uri' specifies .zip or .tar.gz archive URL of a plugin - uri: "https://github.com/oguzhan-yilmaz/kubectl-snapshot-api-objects/archive/v0.0.5.tar.gz" # https://github.com/achanda/kubectl-restart/archive/v0.0.3.zip - # 'sha256' is the sha256sum of the url (archive file) above - sha256: 39ee15d3852056ac870769c37cb83880546b2fbda1e58731b34d3d7b49bb2380 - - # 'files' lists which files should be extracted out from downloaded archive - files: - - from: "kubectl-snapshot-api-objects-*/snapshot_api_objects" - to: "." - - from: "kubectl-snapshot-api-objects-*/LICENSE" - to: "." - - # 'bin' specifies the path to the the plugin executable among extracted files - bin: snapshot_api_objects - - # chmod +x ~/.krew/store/snapshot_api_objects/v0.0.1/source/snapshot-api-objects-script.sh \ No newline at end of file