Skip to content

Commit

Permalink
Bump Kyverno to v1.10.3
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasVitale committed Aug 22, 2023
1 parent 8f9ffd3 commit c0f4b1f
Show file tree
Hide file tree
Showing 12 changed files with 5,940 additions and 1,532 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ jobs:
registry-server: ghcr.io
registry-username: ${{ github.actor }}
image: ${{ github.repository }}
version: 1.9.2+kadras.1
version: 1.10.3
secrets:
pull-request-token: ${{ secrets.GH_ORG_PAT }}
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
name: Integration Tests
strategy:
matrix:
k8s_version: [v1.24, v1.25, v1.26]
k8s_version: [v1.25, v1.26, v1.27]
permissions:
contents: read
uses: kadras-io/github-reusable-workflows/.github/workflows/carvel-package-test-integration.yml@main
Expand Down
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
K8S_VERSION=v1.26
K8S_VERSION=v1.27

# Build package configuration
build: package
Expand Down Expand Up @@ -26,6 +26,10 @@ ytt:
schema:
ytt -f package/config/values-schema.yml --data-values-schema-inspect -o openapi-v3 > schema-openapi.yml

# Use kbld to resolve the OCI images referenced within the manifests
kbld:
rm -f package/.imgpkg/images.yml && mkdir -p package/.imgpkg && kbld --file package/config --imgpkg-lock-output package/.imgpkg/images.yml 1>> /dev/null

# Check the ytt-annotated Kubernetes configuration and its validation
test-config:
ytt -f package/config | kubeconform -ignore-missing-schemas -summary
Expand Down
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

![Test Workflow](https://github.com/kadras-io/package-for-kyverno/actions/workflows/test.yml/badge.svg)
![Release Workflow](https://github.com/kadras-io/package-for-kyverno/actions/workflows/release.yml/badge.svg)
[![The SLSA Level 3 badge](https://slsa.dev/images/gh-badge-level3.svg)](https://slsa.dev/spec/v0.1/levels)
[![The SLSA Level 3 badge](https://slsa.dev/images/gh-badge-level3.svg)](https://slsa.dev/spec/v1.0/levels)
[![The Apache 2.0 license badge](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
[![Follow us on Twitter](https://img.shields.io/static/v1?label=Twitter&message=Follow&color=1DA1F2)](https://twitter.com/kadrasIO)

Expand All @@ -12,7 +12,7 @@ A Carvel package for [Kyverno](https://kyverno.io), a policy engine designed for

### Prerequisites

* Kubernetes 1.24+
* Kubernetes 1.25+
* Carvel [`kctrl`](https://carvel.dev/kapp-controller/docs/latest/install/#installing-kapp-controller-cli-kctrl) CLI.
* Carvel [kapp-controller](https://carvel.dev/kapp-controller) deployed in your Kubernetes cluster. You can install it with Carvel [`kapp`](https://carvel.dev/kapp/docs/latest/install) (recommended choice) or `kubectl`.

Expand All @@ -26,10 +26,9 @@ A Carvel package for [Kyverno](https://kyverno.io), a policy engine designed for
Add the Kadras [package repository](https://github.com/kadras-io/kadras-packages) to your Kubernetes cluster:

```shell
kubectl create namespace kadras-packages
kctrl package repository add -r kadras-packages \
--url ghcr.io/kadras-io/kadras-packages \
-n kadras-packages
-n kadras-packages --create-namespace
```

<details><summary>Installation without package repository</summary>
Expand Down
3 changes: 0 additions & 3 deletions package/config/overlays/registry-credentials.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
#! Use cases: private registries or air-gapped scenarios.

#@ image_pull_secret_name = "canonical-registry-credentials"
#@ image_pull_secret_namespaces = ["tekton-pipelines", "tekton-pipelines-resolvers"]

#@ for namespace in image_pull_secret_namespaces:
---
apiVersion: v1
kind: Secret
Expand All @@ -20,7 +18,6 @@ metadata:
type: kubernetes.io/dockerconfigjson
data:
.dockerconfigjson: e30K
#@ end

#@overlay/match by=overlay.subset({"kind":"Deployment"}), expects="2+"
---
Expand Down
Loading

0 comments on commit c0f4b1f

Please sign in to comment.