Skip to content

Commit

Permalink
Add support for Kubernetes 1.25.0
Browse files Browse the repository at this point in the history
* Remove unnecessary fields from Job and CronJob manifests
* Prepare for release of v0.15.3
  • Loading branch information
vassilvk authored Sep 20, 2022
1 parent b068120 commit 95733e4
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.

## Unreleased

## 0.15.3 - 2022-09-20

- 93: FIX: CronJob in version "v1" cannot be handled as a CronJob: strict decoding error when deploying to Kubernetes 1.25.0

## 0.15.2 - 2022-06-06

- kubemod/kubemod-crt#15: Keep the previous certificate in the bundle as well as the new one to prevent periods of service outage
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Run the following commands to deploy KubeMod.
# Make KubeMod ignore Kubernetes' system namespace.
kubectl label namespace kube-system admission.kubemod.io/ignore=true --overwrite
# Deploy KubeMod.
kubectl apply -f https://raw.githubusercontent.com/kubemod/kubemod/v0.15.2/bundle.yaml
kubectl apply -f https://raw.githubusercontent.com/kubemod/kubemod/v0.15.3/bundle.yaml
```

By default KubeMod allows you to target a limited set of high-level resource types, such as deployments and services.
Expand All @@ -64,15 +64,15 @@ kubectl delete job kubemod-crt-job -n kubemod-system
# Make KubeMod ignore Kubernetes' system namespace.
kubectl label namespace kube-system admission.kubemod.io/ignore=true --overwrite
# Upgrade KubeMod operator.
kubectl apply -f https://raw.githubusercontent.com/kubemod/kubemod/v0.15.2/bundle.yaml
kubectl apply -f https://raw.githubusercontent.com/kubemod/kubemod/v0.15.3/bundle.yaml
```

### Uninstall

To uninstall KubeMod and all its resources, run:

```bash
kubectl delete -f https://raw.githubusercontent.com/kubemod/kubemod/v0.15.2/bundle.yaml
kubectl delete -f https://raw.githubusercontent.com/kubemod/kubemod/v0.15.3/bundle.yaml
```

**Note**: Uninstalling KubeMod will also remove all your ModRules deployed to all Kubernetes namespaces.
Expand Down
4 changes: 1 addition & 3 deletions bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ spec:
- /kubemod
- -operator
- -webapp
image: kubemod/kubemod:v0.15.2
image: kubemod/kubemod:v0.15.3
livenessProbe:
httpGet:
path: /healthz
Expand Down Expand Up @@ -398,7 +398,6 @@ spec:
jobTemplate:
spec:
backoffLimit: 4
serviceAccountName: null
template:
spec:
containers:
Expand All @@ -418,7 +417,6 @@ metadata:
namespace: kubemod-system
spec:
backoffLimit: 4
serviceAccountName: null
template:
spec:
containers:
Expand Down
1 change: 0 additions & 1 deletion config/kubemod-crt/kubemod-crt-cron-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ spec:
schedule: "0 0 1 * *"
jobTemplate:
spec:
serviceAccountName:
template:
spec:
containers:
Expand Down
1 change: 0 additions & 1 deletion config/kubemod-crt/kubemod-crt-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ metadata:
name: crt-job
namespace: system
spec:
serviceAccountName:
template:
spec:
containers:
Expand Down
2 changes: 1 addition & 1 deletion config/manager/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ kind: Kustomization
images:
- name: controller
newName: kubemod/kubemod
newTag: v0.15.2
newTag: v0.15.3

0 comments on commit 95733e4

Please sign in to comment.