Commit Graph

46 Commits

Author SHA1 Message Date
Christian Kotzbauer
46354837f9 extend close-duration for stale issues and prs
Signed-off-by: Christian Kotzbauer <christian.kotzbauer@gmail.com>
2021-03-19 08:26:11 +01:00
dependabot[bot]
c3d4c36493 Bump actions/stale from v3.0.17 to v3.0.18
Bumps [actions/stale](https://github.com/actions/stale) from v3.0.17 to v3.0.18.
- [Release notes](https://github.com/actions/stale/releases)
- [Commits](https://github.com/actions/stale/compare/v3.0.17...3b3c3f03cd4d8e2b61e179ef744a0d20efbe90b4)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-08 06:35:26 +00:00
dependabot[bot]
3fdd1cf6f7 Bump actions/stale from v3.0.16 to v3.0.17
Bumps [actions/stale](https://github.com/actions/stale) from v3.0.16 to v3.0.17.
- [Release notes](https://github.com/actions/stale/releases)
- [Commits](https://github.com/actions/stale/compare/v3.0.16...996798eb71ef485dc4c7b4d3285842d714040c4a)

Signed-off-by: dependabot[bot] <support@github.com>
2021-02-19 05:49:06 +00:00
dependabot[bot]
d8b7669ab4 Bump actions/stale from v3.0.15 to v3.0.16
Bumps [actions/stale](https://github.com/actions/stale) from v3.0.15 to v3.0.16.
- [Release notes](https://github.com/actions/stale/releases)
- [Commits](https://github.com/actions/stale/compare/v3.0.15...9d6f46564a515a9ea11e7762ab3957ee58ca50da)

Signed-off-by: dependabot[bot] <support@github.com>
2021-02-08 06:26:07 +00:00
dependabot[bot]
b39c9011ea Bump actions/stale from v3.0.14 to v3.0.15
Bumps [actions/stale](https://github.com/actions/stale) from v3.0.14 to v3.0.15.
- [Release notes](https://github.com/actions/stale/releases)
- [Commits](https://github.com/actions/stale/compare/v3.0.14...86561461b92875de77a8b2d2e75f004c826e8f45)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-25 06:54:10 +00:00
Jean-Philippe Evrard
48e7ff28bf Fix automated tagging
Without this patch, the name of the image is not templated, which
cause the action to fail.

This should fix it, by ensuring the image scan action uses a
templated value, instead of incorrectly relying on shell templating,
which doesn't run in the action.
2021-01-11 14:23:14 +01:00
Daniel Holbach
5cbca18377 Merge pull request #269 from evrardjp/publish-chart-on-change-not-on-release
Auto-publish helm chart on master change
2021-01-11 10:49:37 +01:00
Daniel Holbach
86fe6ff03e Merge pull request #285 from weaveworks/dependabot/github_actions/nick-invision/retry-v2.4.0
Bump nick-invision/retry from v2.2.0 to v2.4.0
2021-01-08 15:10:30 +01:00
dependabot[bot]
84407690c6 Bump nick-invision/retry from v2.2.0 to v2.4.0
Bumps [nick-invision/retry](https://github.com/nick-invision/retry) from v2.2.0 to v2.4.0.
- [Release notes](https://github.com/nick-invision/retry/releases)
- [Changelog](https://github.com/nick-invision/retry/blob/master/.releaserc.js)
- [Commits](https://github.com/nick-invision/retry/compare/v2.2.0...7c68161adf97a48beb850a595b8784ec57a98cbb)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-05 05:58:00 +00:00
Jean-Philippe Evrard
0bb0cd168b Auto-publish helm chart on master change
We are now testing the helm charts on each PR. They are now
ensured to be passing our tests and reviewed before merging.
This also means that the merged changes in the master branch
are reliable, and therefore can be consumed immediately.

Currently, we are waiting for a release to publish a helm
chart.

This is a problem as it means that the helm chart will
always lag behind, and we'll miss a few semantic versions,
if for example the helm chart is adapted multiple times
before the next release.

This should fix it by ensuring ALL the merged changes in
our helm chart will result in a new published helm chart.
2020-12-10 11:17:25 +01:00
Jean-Philippe Evrard
c68937b5ff Update for kubernetes 1.20 support
This ensures we bump the code for 1.20.
It updates the testing to ensure kured works on a 1.20 cluster,
removes the testing on 1.17 (as it is now deprecated).
Libraries remain on 1.19, to avoid breaking 1.18 clusters.
2020-12-09 14:54:35 +01:00
Jean-Philippe Evrard
525f04b492 Publish image on master merged changes
As we are pretty much committed to github actions, we should
probably rely on it to push the images at each commit merged
on the master branch.
2020-12-07 13:57:58 +01:00
Ciaran Moran
170a792112 DockerHub auth: use local and org secrets 2020-12-07 13:21:25 +01:00
Jean-Philippe Evrard
ea57673373 Publish image on tag
As we are pretty much committed to github actions, we should
probably rely on it to push the images on tag.

This covers the missing bits.
2020-12-07 13:21:25 +01:00
Jean-Philippe Evrard
bd0d901d22 Fix typo in github workflows
Without this patch, the PR jobs are broken and no jobs are running.
This was a recently introduced typo in the last refactor of the
PR jobs.

This should fix it, and make the PR test working again.
2020-12-07 12:35:52 +01:00
Jean-Philippe Evrard
e2dd29748d Force golang version
Without this, golang version used is the golang version decided
by github.

This is a problem, as it might shift over time, without our control.

This fixes it by getting the golang version from the go.mod.
2020-12-01 08:36:35 +01:00
Daniel Holbach
8344015019 Merge pull request #253 from evrardjp/ensure-python-is-installed
Fix chart linter
2020-11-30 11:11:01 +01:00
Jean-Philippe Evrard
40f5eac8aa Simplify action code
There are lots of duplicated code in this workflow.
This fixes it by making a unique job with parameters. The
matrix buys us the parallelisation and the fail-fast.
2020-11-30 10:30:41 +01:00
Jean-Philippe Evrard
1b54c4bc04 Fix chart linter
Without this patch, the lint action incorrectly returns everything
is fine.

This is a problem, as lint effectively is not running, and
therefore we could merge broken charts.

This fixes it by updating to the latest practices you can find
in the official chart-repo-actions.

(See the official example in
i1a9640d998/.github/workflows/lint-test.yaml)
2020-11-30 10:05:02 +01:00
dependabot[bot]
876f72fa50 Bump nick-invision/retry from v1 to v2.2.0
Bumps [nick-invision/retry](https://github.com/nick-invision/retry) from v1 to v2.2.0.
- [Release notes](https://github.com/nick-invision/retry/releases)
- [Changelog](https://github.com/nick-invision/retry/blob/master/.releaserc.js)
- [Commits](https://github.com/nick-invision/retry/compare/v1...fb3bca3fb54f6488d7508c8d1eeb64b94efd5a93)

Signed-off-by: dependabot[bot] <support@github.com>
2020-11-30 07:07:20 +00:00
Jean-Philippe Evrard
679f45c321 Cleanup github actions
- Made all the file extensions ".yaml"
- Regrouped actions together to make it easy to see when they
  are useful: on-pr is useful at every PR, on-tag when we are
  ready to tag next image, on-pr-chart when we have a PR to
  modify the chart with the published image, on-release when
  we have released and need to publish the final helm chart
- Regrouped periodic jobs together, to deal with stale prs/issues
  and ensuring that our helm chart always works.
2020-11-27 14:41:38 +01:00
Jean-Philippe Evrard
98b547a66e Add Shellcheck
Ensures our bash is neat!
2020-11-27 12:23:39 +01:00
Daniel Holbach
88b8b5d223 Merge pull request #181 from evrardjp/kustomize-kind-tests
Add manifests testing
2020-11-27 09:43:07 +01:00
Daniel Holbach
645ca7f88f Merge pull request #242 from weaveworks/dependabot/github_actions/nick-invision/retry-v2.2.0
Bump nick-invision/retry from v1 to v2.2.0
2020-11-27 09:40:34 +01:00
dependabot[bot]
470b887ea4 Bump nick-invision/retry from v1 to v2.2.0
Bumps [nick-invision/retry](https://github.com/nick-invision/retry) from v1 to v2.2.0.
- [Release notes](https://github.com/nick-invision/retry/releases)
- [Changelog](https://github.com/nick-invision/retry/blob/master/.releaserc.js)
- [Commits](https://github.com/nick-invision/retry/compare/v1...fb3bca3fb54f6488d7508c8d1eeb64b94efd5a93)

Signed-off-by: dependabot[bot] <support@github.com>
2020-11-27 06:12:15 +00:00
Jean-Philippe Evrard
9ca74a6062 Simplify manifest testing
We don't need to test with kustomize, manifest testing is good
enough, as we just test that the manifest are correct, not that
they are functional (which would require a change in the poll time).
2020-11-26 14:14:18 +01:00
Jean-Philippe Evrard
7f379ac920 Add kustomize testing
This extends our test coverages for kured-* manifest changes on PRs,
and any eventual changes in kubernetes/kubectl on periodics.

Signed-off-by: Jean-Philippe Evrard <open-source@a.spamming.party>
2020-11-26 09:46:07 +01:00
Jean-Philippe Evrard
fa9991f929 Increase kubernetes versions test matrix for smoke tests
This allows us to test this branch with multiple kubernetes
versions.
2020-11-26 09:41:32 +01:00
Daniel Holbach
596394db79 Merge pull request #183 from evrardjp/helm-smoke-test
Add smoke/basic functional test
2020-11-26 09:40:18 +01:00
Jean-Philippe Evrard
c9367eeff5 Always have latest helm binary installed
This will ease our maintenance.
2020-11-26 09:19:41 +01:00
dependabot[bot]
3f2027da32 Bump actions/stale from v1 to v3.0.14
Bumps [actions/stale](https://github.com/actions/stale) from v1 to v3.0.14.
- [Release notes](https://github.com/actions/stale/releases)
- [Commits](https://github.com/actions/stale/compare/v1...87c2b794b9b47a9bec68ae03c01aeb572ffebdb1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-11-26 06:26:14 +00:00
Daniel Holbach
e9a7c4535a Merge pull request #224 from evrardjp/auto-expire-issues
Auto expire issues and PRs
2020-11-25 10:14:45 +01:00
Daniel Holbach
da60edbe7b Merge pull request #229 from weaveworks/dependabot/github_actions/helm/kind-action-v1.1.0
Bump helm/kind-action from v1.0.0 to v1.1.0
2020-11-25 10:12:54 +01:00
dependabot[bot]
cc4a4f5161 Bump helm/chart-testing-action from v1.0.0 to v2.0.1
Bumps [helm/chart-testing-action](https://github.com/helm/chart-testing-action) from v1.0.0 to v2.0.1.
- [Release notes](https://github.com/helm/chart-testing-action/releases)
- [Commits](https://github.com/helm/chart-testing-action/compare/v1.0.0...b0d4458c71155b54fcf33e11dd465dc923550009)

Signed-off-by: dependabot[bot] <support@github.com>
2020-11-16 07:06:39 +00:00
dependabot[bot]
8a29c218da Bump helm/kind-action from v1.0.0 to v1.1.0
Bumps [helm/kind-action](https://github.com/helm/kind-action) from v1.0.0 to v1.1.0.
- [Release notes](https://github.com/helm/kind-action/releases)
- [Commits](https://github.com/helm/kind-action/compare/v1.0.0...7a937c0fb648064a83b8b9354151e5e543d9fcec)

Signed-off-by: dependabot[bot] <support@github.com>
2020-11-16 07:06:38 +00:00
Jean-Philippe Evrard
2e5ea66e91 Add lint job
In the past, we had lint issues which were merged into the code,
and/or lint changed without us adapting our code.

This should allow us to stay on top of linting issue by
highlighting them in PRs.
2020-11-09 13:11:58 +01:00
Jean-Philippe Evrard
8a0f38ac2a Auto expire issues and PRs
Without this patch, we might hold old issues and PR for a long
time. Instead we should close them. People can reopen if necessary.

This would show that we have a proper triage process, and a proper
way to handle those.
2020-11-05 11:23:05 +01:00
Daniel Holbach
553e061b94 Merge pull request #199 from evrardjp/ci/add-security-scanner
feat: Add security scanning into CI
2020-09-14 14:50:34 +02:00
Jean-Philippe Evrard
8961cbf262 feat: Add security scanning into CI
Without this patch, there is no way we can see, in the development
process, if the image we are about to publish is insecure.

This is a problem as we might be releasing new versions of kured
with outdated base image which contains vulnerabilities.

This fixes it by creating a job which will show any eventual
vulnerability.
2020-09-10 15:16:05 +02:00
Daniel Holbach
7408cebb6b Merge pull request #187 from weaveworks/dependabot/github_actions/helm/chart-testing-action-v1.0.0
Bump helm/chart-testing-action from v1.0.0-rc.2 to v1.0.0
2020-09-01 10:59:14 +02:00
dependabot[bot]
dadf2cdd48 Bump helm/kind-action from v1.0.0-rc.1 to v1.0.0
Bumps [helm/kind-action](https://github.com/helm/kind-action) from v1.0.0-rc.1 to v1.0.0.
- [Release notes](https://github.com/helm/kind-action/releases)
- [Commits](https://github.com/helm/kind-action/compare/v1.0.0-rc.1...3af270e3dacc4feded63d810def7e19de77cba72)

Signed-off-by: dependabot[bot] <support@github.com>
2020-09-01 08:53:51 +00:00
dependabot[bot]
15c5c47b49 Bump helm/chart-testing-action from v1.0.0-rc.2 to v1.0.0
Bumps [helm/chart-testing-action](https://github.com/helm/chart-testing-action) from v1.0.0-rc.2 to v1.0.0.
- [Release notes](https://github.com/helm/chart-testing-action/releases)
- [Commits](https://github.com/helm/chart-testing-action/compare/v1.0.0-rc.2...96a4323c6cfa90ddea6e02db43143cd80124a7fa)

Signed-off-by: dependabot[bot] <support@github.com>
2020-09-01 08:53:50 +00:00
Jean-Philippe Evrard
3d75f1b37a Add smoke/basic functional test
Without this patch, we don't test on release whether kured actually
works and behave well.

This is a problem, as a functional issue could have been hidden by
a recent change, as our testing is minimalist (only test the
usability, not the functionality).
Instead of testing manually, we should ensure this in CI.

This fixes it by adding a github action which tests the previously
built artifacts before publishing a release. The job consume the helm
chart in our code tree  (note: this relies on the last released image),
and run a functional test triggering a coordinated restart of a
whole 5 node cluster deployed with kind, through github actions.

Note: The github action needs to reset docker configuration, else
the reboot of the node (a docker container in kind) will fail.
It will be correctly triggered, but the node will not come back up,
with its systemd log mentioning: "Failed to attach 1 to compat systemd cgroup".
2020-08-28 09:25:44 +02:00
Daniel Holbach
14bda85a03 Use GITHUB_TOKEN for releasing chart
https://help.github.com/en/actions/configuring-and-managing-workflows/authenticating-with-the-github_token#about-the-github_token-secret
2020-06-30 10:35:13 +02:00
Christian Kotzbauer
4420dc82d6 add chart github-actions
Signed-off-by: Christian Kotzbauer <christian.kotzbauer@gmail.com>
2020-06-20 09:35:35 +02:00
Daniel Holbach
c571a775df add Github Action to check links 2020-04-30 08:50:33 +02:00