Skip to content

Commit

Permalink
Merge pull request #62 from viccuad/main
Browse files Browse the repository at this point in the history
ci: Add artifacthub-pkg.yaml, release-drafter, update readme label
  • Loading branch information
viccuad authored Jun 17, 2024
2 parents f47ca80 + a12eda2 commit 24c445e
Show file tree
Hide file tree
Showing 3 changed files with 126 additions and 1 deletion.
66 changes: 66 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
categories:
- title: "⚠️ Breaking changes"
labels:
- "kind/major"
- "kind/breaking-change"
- title: "🚀 Features"
labels:
- "kind/enhancement"
- "kind/feature"
- title: "🐛 Bug Fixes"
labels:
- "kind/bug"
- title: "🧰 Maintenance"
labels:
- "kind/chore"
- "area/dependencies"

exclude-labels:
- duplicate
- invalid
- later
- wontfix
- kind/question
- release/skip-changelog

change-template: "- $TITLE (#$NUMBER)"
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
name-template: "v$RESOLVED_VERSION"
template: |
$CHANGES
autolabeler:
# Tag any PR with "!" in the subject as major update. In other words, breaking change
- label: "kind/breaking-change"
title: "/.*!:.*/"
- label: "area/dependencies"
title: "chore(deps)"
- label: "area/dependencies"
title: "fix(deps)"
- label: "area/dependencies"
title: "build(deps)"
- label: "kind/feature"
title: "feat"
- label: "kind/bug"
title: "fix"
- label: "kind/chore"
title: "chore"

version-resolver:
major:
labels:
- "kind/major"
- "kind/breaking-change"
minor:
labels:
- "kind/minor"
- "kind/feature"
- "kind/enhancement"
patch:
labels:
- "kind/patch"
- "kind/fix"
- "kind/bug"
- "kind/chore"
- "area/dependencies"
default: patch
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[![Kubewarden Policy Repository](https://github.com/kubewarden/community/blob/main/badges/kubewarden-policies.svg)](https://github.com/kubewarden/community/blob/main/REPOSITORIES.md#policy-scope)
[![Incubating](https://img.shields.io/badge/status-incubating-orange?style=for-the-badge)](https://github.com/kubewarden/community/blob/main/REPOSITORIES.md#incubating)
[![Stable](https://img.shields.io/badge/status-stable-brightgreen?style=for-the-badge)](https://github.com/kubewarden/community/blob/main/REPOSITORIES.md#stable)

## CEL Policy

Expand Down
59 changes: 59 additions & 0 deletions artifacthub-pkg.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# Kubewarden Artifacthub Package config
#
# Use this config to submit the policy to https://artifacthub.io.
#
# This config can be saved to its default location with:
# kwctl scaffold artifacthub > artifacthub-pkg.yml
version: 1.0.1
name: cel-policy
displayName: CEL Policy
createdAt: 2024-06-14T15:37:43.942187384Z
description: A policy that evaluates CEL expressions
license: Apache-2.0
homeURL: https://github.com/kubewarden/cel-policy
containersImages:
- name: policy
image: ghcr.io/kubewarden/policies/cel-policy:v1.0.1
keywords:
- compliance
- CEL
- ValidatingAdmissionPolicy
- Common Expression Language
links:
- name: policy
url: https://github.com/kubewarden/cel-policy/releases/download/v1.0.1/policy.wasm
- name: source
url: https://github.com/kubewarden/cel-policy
install: |
The policy can be obtained using [`kwctl`](https://github.com/kubewarden/kwctl):
```console
kwctl pull ghcr.io/kubewarden/policies/cel-policy:v1.0.1
```
Then, generate the policy manifest and tune it to your liking. For example:
```console
kwctl scaffold manifest -t ClusterAdmissionPolicy registry://ghcr.io/kubewarden/policies/cel-policy:v1.0.1
```
maintainers:
- name: Kubewarden developers
email: cncf-kubewarden-maintainers@lists.cncf.io
provider:
name: kubewarden
recommendations:
- url: https://artifacthub.io/packages/helm/kubewarden/kubewarden-controller
annotations:
kubewarden/contextAwareResources: |
- apiVersion: v1
kind: Namespace
kubewarden/mutation: 'false'
kubewarden/resources: Any
kubewarden/rules: |
- apiGroups:
- ''
apiVersions:
- v1
resources:
- '*'
operations:
- CREATE
- UPDATE
- DELETE

0 comments on commit 24c445e

Please sign in to comment.