-
Notifications
You must be signed in to change notification settings - Fork 519
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feature/cronjob_trigger
- Loading branch information
Showing
25 changed files
with
292 additions
and
502 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,13 +7,13 @@ on: | |
|
||
env: | ||
DOCKER_FILE_PATH: Dockerfile | ||
KUBERNETES_VERSION: "1.18.0" | ||
KIND_VERSION: "0.10.0" | ||
KUBERNETES_VERSION: "1.19.0" | ||
KIND_VERSION: "0.17.0" | ||
REGISTRY: ghcr.io | ||
|
||
jobs: | ||
qa: | ||
uses: stakater/.github/.github/workflows/[email protected].44 | ||
uses: stakater/.github/.github/workflows/[email protected].46 | ||
with: | ||
MD_CONFIG: .github/md_config.json | ||
DOC_SRC: README.md docs | ||
|
@@ -24,7 +24,7 @@ jobs: | |
if: "! contains(toJSON(github.event.commits.*.message), '[skip-ci]')" | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{github.event.pull_request.head.sha}} | ||
|
||
|
@@ -156,7 +156,7 @@ jobs: | |
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
message-success: '@${{ github.actor }} Image is available for testing. `docker pull ghcr.io/${{ env.IMAGE_REPOSITORY }}:${{ steps.generate_tag.outputs.GIT_TAG }}`' | ||
message-success: '@${{ github.actor }} Image is available for testing. `docker pull ${{ env.GHCR_IMAGE_REPOSITORY }}:${{ steps.generate_tag.outputs.GIT_TAG }}`' | ||
message-failure: '@${{ github.actor }} Yikes! You better fix it before anyone else finds out! [Build](https://github.com/${{ github.repository }}/commit/${{ github.event.pull_request.head.sha }}/checks) has Failed!' | ||
allow-repeats: true | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,5 @@ _gopath/ | |
.vscode | ||
vendor | ||
dist | ||
Reloader | ||
Reloader | ||
!**/chart/reloader |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,7 @@ Contact [`[email protected]`](mailto:[email protected]) for info about Reloade | |
|
||
## Compatibility | ||
|
||
Reloader is compatible with Kubernetes >= 1.9 | ||
Reloader is compatible with Kubernetes >= 1.19 | ||
|
||
## How to use Reloader | ||
|
||
|
@@ -87,6 +87,10 @@ not. | |
We can also specify a specific configmap or secret which would trigger rolling upgrade only upon change in our specified configmap or secret, this way, it will not trigger rolling upgrade upon changes in all configmaps or secrets used in a `deploymentconfig`, `deployment`, `daemonset`, `statefulset` or `rollout`. | ||
To do this either set the auto annotation to `"false"` (`reloader.stakater.com/auto: "false"`) or remove it altogether, and use annotations for [Configmap](.#Configmap) or [Secret](.#Secret). | ||
It's also possible to enable auto reloading for all resources, by setting the `--auto-reload-all` flag. | ||
In this case, all resources that do not have the auto annotation set to `"false"`, will be reloaded automatically when their ConfigMaps or Secrets are updated. | ||
Notice that setting the auto annotation to an undefined value counts as false as-well. | ||
|
||
### Configmap | ||
|
||
To perform rolling upgrade when change happens only on specific configmaps use below annotation. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
deployments/kubernetes/chart/reloader/templates/networkpolicy.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{{- if and ( .Values.reloader.netpol.enabled ) }} | ||
apiVersion: networking.k8s.io/v1 | ||
kind: NetworkPolicy | ||
metadata: | ||
annotations: | ||
{{ include "reloader-helm3.annotations" . | indent 4 }} | ||
labels: | ||
{{ include "reloader-labels.chart" . | indent 4 }} | ||
{{- if .Values.reloader.matchLabels }} | ||
{{ toYaml .Values.reloader.matchLabels | indent 4 }} | ||
{{- end }} | ||
name: {{ template "reloader-fullname" . }} | ||
spec: | ||
podSelector: | ||
matchLabels: | ||
app: {{ template "reloader-fullname" . }} | ||
release: {{ .Release.Name | quote }} | ||
{{- if .Values.reloader.matchLabels }} | ||
{{ toYaml .Values.reloader.matchLabels | indent 6 }} | ||
{{- end }} | ||
policyTypes: | ||
- Ingress | ||
ingress: | ||
- ports: | ||
- port: http | ||
{{- with .Values.reloader.netpol.from}} | ||
from: | ||
{{- toYaml .| nindent 8 }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -136,3 +136,5 @@ reloader: | |
# labels: | ||
# Set timeout for scrape | ||
# timeout: 10s | ||
|
||
webhookUrl: "" |
Oops, something went wrong.