Commit Graph

61 Commits

Author SHA1 Message Date
Tom Wieczorek
0d4d305ae6 chore(ci): remove github repo/owner from .goreleaser.yaml (#1357)
Those values will be extracted from the origin remote URL, so specifying
them in the YAML file is not required.
2023-10-10 17:59:55 +01:00
Tom Wieczorek
de7112fed2 feat: Build and release binaries for Linux RISC-V (#1356)
* Add riscv64 to GOARCHes in .goreleaser.yaml
* Add riscv64/linux to goreleaser-test GitHub workflow job
2023-10-10 17:51:49 +01:00
Evans Mungai
ff4870627e fix: Correct arm release file names in krew config (#1101) 2023-04-05 14:55:41 +01:00
Tom Wieczorek
0d5f9697eb feat(krew): add linux/arm64 to krew plugin manifests (#1072)
The binaries are published, and that platform is supported by krew, so
it makes sense to also offer this as a krew plugin.
2023-04-05 14:00:03 +01:00
Tom Wieczorek
553b75f8f0 feat: Build and release binaries for Linux ARM 32-bit (#1074)
* Add arm to GOARCHes in .goreleaser.yaml and exclude the windows/arm
  build
* Add arm/linux to goreleaser-test GitHub workflow job
* Add the linux/arm binaries to krew plugin manifests
2023-03-23 16:53:27 +00:00
Nathan Sullivan
8ba5d6f6cb GitHub Action goreleaser-test - convert to a matrix (#942)
github action goreleaser-test: convert to a matrix
2023-01-04 14:15:49 +13:00
Nathan Sullivan
94dd7a670c Improve build-test-deploy GitHub Actions performance (#941)
* github build-test-deploy workflow: split goreleaser-test into 3 actions,
one for each ID/component (sharing a single config file)

rationale: speeding up github actions, goreleaser-test was taking
12-14mins and is the outlier longest to execute right now on this repo

* Revert "gitlab build-test-deploy workflow: split goreleaser-test into 3 actions,"

This reverts commit 61083dbbb8.

* github build-test-deploy workflow: split into 6 actions, divided by
GOARCH/GOOS

rationale: improve performance of checks on PR's

* .goreleaser.yaml - add a breadcrumb to ensure we keep the action jobs
list aligned
2023-01-03 13:07:10 +00:00
Xav Paice
48faf0c144 Revert "Add ghcr to package releases (#848)" (#868)
This reverts commit 233966d4be.
2022-11-22 17:14:04 +13:00
Chris Sanders
233966d4be Add ghcr to package releases (#848) 2022-11-17 11:12:54 +13:00
Marc Campbell
49c56f6cd7 Adding darwin/arm64 2021-11-12 17:51:02 +00:00
Vera Harless
08953d46d1 fix: add collect to goreleaser (#450) 2021-10-08 15:44:55 -04:00
Simon Croome
977fc438ea Remote host collectors (#392)
* Add collect command and remote host collectors

Adds the ability to run a host collector on a set of remote k8s nodes.
Target nodes can be filtered using the --selector flag, with the same
syntax as kubectl.  Existing flags for --collector-image,
--collector-pullpolicy and --request-timeout are used.  To run on a
specified node, --selector="kubernetes.io/hostname=kind-worker2" could
be used.

The collect command is used by the remote collector to output the
results using a "raw" format, which uses the filename as the key, and
the value the output as a escaped json string.  When run manually it
defaults to fully decoded json. The existing block devices,
ipv4interfaces and services host collectors don't decode properly - the
fix is to convert their slice output to a map (fix not included as
unsure what depends on the existing format).

The collect command is also useful for troubleshooting preflight issues.

Examples are included to show remote collector usage.

```
bin/collect --collector-image=croomes/troubleshoot:latest  examples/collect/remote/memory.yaml --namespace test
{
  "kind-control-plane": {
    "system/memory.json": {
      "total": 1304207360
    }
  },
  "kind-worker": {
    "system/memory.json": {
      "total": 1695780864
    }
  },
  "kind-worker2": {
    "system/memory.json": {
      "total": 1726353408
    }
  }
}
```

The preflight command has been updated to run remote collectors.  To run
a host collector remotely it must be specified in the spec as a
`remoteCollector`:

```
apiVersion: troubleshoot.sh/v1beta2
kind: HostPreflight
metadata:
  name: memory
spec:
  remoteCollectors:
    - memory:
        collectorName: memory
  analyzers:
    - memory:
        outcomes:
          - fail:
              when: "< 8Gi"
              message: At least 8Gi of memory is required
          - warn:
              when: "< 32Gi"
              message: At least 32Gi of memory is recommended
          - pass:
              message: The system has as sufficient memory
```

Results for each node are analyzed separately, with the node name
appended to the title:

```
bin/preflight --interactive=false --collector-image=croomes/troubleshoot:latest examples/preflight/remote/memory.yaml --format=json
{memory running 0 1}
{memory completed 1 1}
{
  "fail": [
    {
      "title": "Amount of Memory (kind-worker2)",
      "message": "At least 8Gi of memory is required"
    },
    {
      "title": "Amount of Memory (kind-worker)",
      "message": "At least 8Gi of memory is required"
    },
    {
      "title": "Amount of Memory (kind-control-plane)",
      "message": "At least 8Gi of memory is required"
    }
  ]
}
```

Also added a host collector to allow preflight checks of required kernel
modules, which is the main driver for this change.
2021-10-06 09:03:53 -05:00
Dan Stough
b903f1f1c4 chore(ci): fix sbom asset perms 2021-09-28 16:37:53 +00:00
John Murphy
639bf7a832 Add signed SBOM to troubleshoot (#414)
This change will generate a signed software bill of materials and add it to the repository release archives when the project is released.
2021-09-21 13:55:41 -05:00
Dan Stough
123e2e1049 chore(ci): update gorelease.yaml to use 175 syntax 2021-09-03 20:45:18 +00:00
divolgin
5c5e30a9a5 remove troubleshoot.so from builds 2021-04-12 18:50:58 +00:00
divolgin
de8feb167e fix ffi build 2021-04-12 17:22:21 +00:00
divolgin
4a89067912 fix ffi build 2021-04-12 17:07:09 +00:00
divolgin
32cca1215a fix go-releaser build 2021-04-12 16:34:53 +00:00
divolgin
88685ae5f7 fixing build 2020-11-13 17:49:43 +00:00
divolgin
9e669b3f13 Remove RRD dependency and switch to dynamic linking 2020-11-12 19:13:25 +00:00
divolgin
a00a1892d9 include darwin builds in archives 2020-11-11 02:10:30 +00:00
divolgin
5a1321da02 Collector and analyzer for RRD data 2020-11-10 17:19:17 +00:00
Andrew Lavery
eb90b6d935 remove extra trailing whitespace 2020-06-17 14:44:20 -04:00
Andrew Lavery
13df9a0f87 refactor krew yaml to match upstream format 2020-06-17 14:37:38 -04:00
Andrew Lavery
4021a6c176 use hardcoded binary name, not {{ .Binary }} 2020-05-28 21:18:03 -04:00
Andrew Lavery
b6ac6e4702 goreleaser no longer includes .exe in download links 2020-05-27 18:03:58 -04:00
Andrew Lavery
8bc627d20f automate krew releases
this might work, might not - the action is only intended for one app per repo, but since it's all in one release I think it'll be fine
2020-05-13 19:04:27 -04:00
Marc Campbell
b0c46c5ac8 Rename 2020-03-23 11:03:01 -07:00
Marc Campbell
818f8b26dd Move all to github actions 2020-03-23 09:33:23 -07:00
divolgin
9a59d1b018 Bump krew plugins to v0.9.14 2019-12-19 22:56:21 +00:00
Marc Campbell
8ba2c576c3 one more fix 2019-12-18 18:42:03 +00:00
Marc Campbell
59a2281290 More cleanup 2019-12-18 18:01:39 +00:00
Marc Campbell
1465af2c09 Fix build 2019-12-18 17:59:43 +00:00
divolgin
00fa236525 Adding changes made in the krew-index repo 2019-11-18 23:57:16 +00:00
Andrew Lavery
430fdaa9e4 update tarball naming scheme to bin_os_arch, no longer include version 2019-11-14 13:48:52 -08:00
divolgin
1d031d6897 bump krew manifests to 0.9.11 2019-11-04 15:32:25 +00:00
divolgin
6f868877d8 bump krew manifests to 0.9.9 2019-10-18 16:23:08 +00:00
divolgin
e23f799bed bump krew manifests to 0.9.8 2019-09-09 22:16:32 +00:00
Marc Campbell
4153b9ac44 One extension is enough 2019-08-28 22:13:33 +00:00
Marc Campbell
48750ba1e5 Better release name for so 2019-08-28 21:59:57 +00:00
Marc Campbell
996a55bf90 Support CGO for calling analysis from other languages 2019-08-28 21:30:59 +00:00
divolgin
9a1bb9fa7b update krew manifests 2019-08-22 16:35:22 +00:00
divolgin
45d537744f update krew manifests 2019-08-22 16:02:54 +00:00
divolgin
a71f2e4e0f krew plugin manifests 0.9.4 2019-08-16 15:22:39 +00:00
divolgin
07fedd29ad Updating krew plugin manifests 2019-08-08 20:36:36 +00:00
divolgin
37ab1960d5 fixing release build 2019-08-08 17:41:40 +00:00
divolgin
bc7614f875 fix release build 2019-08-08 17:11:20 +00:00
divolgin
012df52f11 rename troubleshoot binary to support-bundle 2019-08-07 21:23:12 +00:00
divolgin
8718888af1 updating troubleshoot krew manifest 2019-08-06 23:09:34 +00:00