Skip to content

Commit e7d8735

Browse files
committed
Prepare fork with README and CI adaptations
1 parent 908b3b0 commit e7d8735

File tree

5 files changed

+65
-115
lines changed

5 files changed

+65
-115
lines changed

.github/workflows/chart.yml

Lines changed: 0 additions & 46 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 0 additions & 69 deletions
This file was deleted.

.github/workflows/push_image.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: build-and-push-base-image (release)
2+
3+
on:
4+
5+
# publish on releases, e.g. v2.1.13 (image tagged as "2.1.13" - "v" prefix is removed)
6+
release:
7+
types: [ published ]
8+
9+
# publish on pushes to the main branch (image tagged as "latest")
10+
push:
11+
branches:
12+
- master
13+
14+
permissions: write-all
15+
16+
jobs:
17+
docker:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v2
21+
22+
- name: Build and publish a Docker image for ${{ github.repository }}
23+
uses: macbre/push-to-ghcr@master
24+
with:
25+
context: "."
26+
dockerfile: ./Dockerfile
27+
image_name: ${{ github.repository }}
28+
github_token: ${{ secrets.GITHUB_TOKEN }}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Release Charts
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
release:
10+
permissions:
11+
contents: write
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v3
16+
with:
17+
fetch-depth: 0
18+
19+
- name: Configure Git
20+
run: |
21+
git config user.name "$GITHUB_ACTOR"
22+
git config user.email "[email protected]"
23+
24+
- name: Run chart-releaser
25+
uses: helm/[email protected]
26+
with:
27+
charts_dir: helm/charts
28+
env:
29+
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# k8s-image-availability-exporter
22

3+
This is a fork aiming at fixing or at least circumventing the problems described in [Issue #7 of the upstream repository](https://github.com/deckhouse/k8s-image-availability-exporter/issues/7).
4+
5+
As the upstream repo uses private build infrastructure, the CI process has been adapted and the master branch of this repo should not be merged into the upstream repo for this reason.
6+
7+
To add a feature in this repository: Create a new branch in from the upstream repo as described [here](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-and-deleting-branches-within-your-repository).
8+
Then, merge your feature branch in both this repositories and the upstream `master` branches.
9+
10+
---
311
k8s-image-availability-exporter (or *k8s-iae* for short) is a Prometheus exporter that warns you proactively about images that are defined in Kubernetes objects (e.g., an `image` field in the Deployment) but are not available in the container registry (such as Docker Registry, etc.).
412

513
Receiving alerts when container images related to running Kubernetes controllers are missing helps you to solve the problem before it manifests itself. For more details on the reasons behind k8s-iae and how it works, please read [this article](https://medium.com/flant-com/prometheus-exporter-to-check-kubernetes-images-availability-26c306c44c08).

0 commit comments

Comments
 (0)