Skip to content

Commit

Permalink
Merge branch 'master' into zillani-mapfile-syntax-patch
Browse files Browse the repository at this point in the history
  • Loading branch information
zillani authored May 3, 2023
2 parents a0a1289 + cfcf907 commit 6a958da
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 20 deletions.
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,3 +156,25 @@ This is primarily a maintenance release with a couple of small enhancements.
- Thanks to @jchanam for their work on #76
- Thanks to @howardburgess for suggesting #67
- Thanks to @rainsun for bringing #56 to our attention and supplying logs to help triage the issue

## 1.5.2

This is primarily a maintenance release, but does introduce new MAPS syntax.

The `replace` feature gives the ability to match a pattern explicitly and replace all of it with a provided pattern. [More info here](https://github.com/phenixblue/imageswap-webhook#replace-image-mapping).

### Enhancements

- Bump oauthlib from 3.2.0 to 3.2.1 in /app/imageswap-init (#79)
- Add `replace` feature to maps syntax (#85)
- Bump certifi from 2022.9.14 to 2022.12.7 in /app/imageswap-init (#91)
- Move to `actions/setup-python@v4` in CI (#91)
- Fix detection of `IMAGESWAP_DISABLE_AUTO_MWC` (#88)
- Bump cryptography from 38.0.4 to 39.0.1 in /app/imageswap-init (#92)
- Bump werkzeug from 2.2.2 to 2.2.3 in /app/imageswap (#93)

### Acknowledgements

- Thanks to @dependabot for keeping our Dependencies up to date!
- Thanks to @M4C4R for #85
- Thanks to @howardburgess for #88
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
# NOTE: The version for both `imageswap-init` and `imageswap` should be identical for now.
# Some effort will need to be put in to be able to distringuish changes to one vs. the other
# in CI/Release steps.
IMAGESWAP_VERSION := v1.5.1
IMAGESWAP_INIT_VERSION := v1.5.1
IMAGESWAP_VERSION := v1.5.2
IMAGESWAP_INIT_VERSION := v1.5.2

REPO_ROOT := $(CURDIR)
APP_NAME ?= "imageswap.py"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ You can use the following command to install ImageSwap from this repo with sane
**NOTE:** The quickstart installation is not meant for production use. Please read through the [Cautions](#cautions) sections, and as always, use your best judgement when configuring ImageSwap for production scenarios.

```shell
$ kubectl apply -f https://raw.githubusercontent.com/phenixblue/imageswap-webhook/v1.5.1/deploy/install.yaml
$ kubectl apply -f https://raw.githubusercontent.com/phenixblue/imageswap-webhook/v1.5.2/deploy/install.yaml
```

#### This will do the following
Expand Down
24 changes: 12 additions & 12 deletions app/imageswap/Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/imageswap/imageswap.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ def swap_image(container_spec):

def main():

app.logger.info("ImageSwap v1.5.1 Startup")
app.logger.info("ImageSwap v1.5.2 Startup")

app.run(
host="0.0.0.0",
Expand Down
4 changes: 2 additions & 2 deletions deploy/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ spec:
runAsGroup: 1898
initContainers:
- name: imageswap-init
image: thewebroot/imageswap-init:v1.5.1
image: thewebroot/imageswap-init:v1.5.2
command: [/app/imageswap-init.py]
imagePullPolicy: Always
securityContext:
Expand All @@ -299,7 +299,7 @@ spec:
mountPath: /mwc
containers:
- name: imageswap
image: thewebroot/imageswap:v1.5.1
image: thewebroot/imageswap:v1.5.2
ports:
- containerPort: 5000
command: ["gunicorn", "imageswap:app", "--config=config.py"]
Expand Down
4 changes: 2 additions & 2 deletions deploy/manifests/imageswap-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ spec:
runAsGroup: 1898
initContainers:
- name: imageswap-init
image: thewebroot/imageswap-init:v1.5.1
image: thewebroot/imageswap-init:v1.5.2
command: [/app/imageswap-init.py]
imagePullPolicy: Always
securityContext:
Expand All @@ -46,7 +46,7 @@ spec:
mountPath: /mwc
containers:
- name: imageswap
image: thewebroot/imageswap:v1.5.1
image: thewebroot/imageswap:v1.5.2
ports:
- containerPort: 5000
command: ["gunicorn", "imageswap:app", "--config=config.py"]
Expand Down

0 comments on commit 6a958da

Please sign in to comment.