Releases: defenseunicorns/pepr
Releases · defenseunicorns/pepr
v0.31.0
Feats
- feat: pino log timestamp config by @cmwylie19 in #801
What's Changed
- chore: add
SUPPORT.md
by @schaeferka in #785 - chore: add more visibility into watch by @cmwylie19 in #791
- chore: updates to markdown files to match updated pepr-docs structure by @schaeferka in #804
- chore: bump chainguard/node-lts from
1fa615d
toad74234
by @dependabot in #805 - chore: bump actions/checkout from 4.1.5 to 4.1.6 by @dependabot in #807
- chore: bump library/node from
487dc5d
to9e8f45f
by @dependabot in #806 - chore: bump chainguard/node-lts from
a0b51fe
todb5a181
by @dependabot in #788 - chore: bump @types/node from 18.19.32 to 18.19.33 in the development-dependencies group by @dependabot in #787
- chore: bump chainguard/node-lts from
db5a181
tofe26db9
by @dependabot in #793 - chore: bump ossf/scorecard-action from 2.3.1 to 2.3.3 by @dependabot in #792
- chore: bump kubernetes-fluent-client from 2.4.1 to 2.5.0 in the production-dependencies group by @dependabot in #786
- chore: bump pino from 9.0.0 to 9.1.0 in the production-dependencies group by @dependabot in #797
- chore: bump kubernetes-fluent-client from 2.5.0 to 2.5.1 in the production-dependencies group by @dependabot in #800
- chore: bump chainguard/node-lts from
fe26db9
toa8d75b6
by @dependabot in #799 - chore: bump chainguard/node-lts from
a8d75b6
to1fa615d
by @dependabot in #803
Full Changelog: v0.30.2...v0.31.0
v0.30.2
What's Changed
- chore: bump kubernetes-fluent-client from 2.4.0 to 2.4.1 in the production-dependencies group by @dependabot in #784
Full Changelog: v0.30.1...v0.30.2
v0.30.1
What's Changed
- chore: bump chainguard/node-lts from
564a1aa
toa0b51fe
by @dependabot in #777 - chore: bump @types/ramda from 0.29.12 to 0.30.0 in the production-dependencies group by @dependabot in #779
- chore: bump kubernetes-fluent-client from 2.3.2 to 2.4.0 in the production-dependencies group by @dependabot in #781
- chore: bump actions/checkout from 4.1.4 to 4.1.5 by @dependabot in #780
- chore: bump @types/node from 18.19.31 to 18.19.32 in the development-dependencies group by @dependabot in #782
Full Changelog: v0.30.0...v0.30.1
v0.30.0
Features
- feat: watchcfg is configurable for KFC from Pepr by @cmwylie19 in #766
Read more on how to configure watch
What's Changed
- chore: sanitize name by @cmwylie19 in #731
- chore: update build.mjs to get around error by @cmwylie19 in #760
- docs: add contributor covenant code of conduct by @salaxander in #761
- chore: document sdk helpers by @schaeferka in #774
- chore: update sdk.md and mutate.md docs by @schaeferka in #776
- chore: bump actions/checkout from 4.1.2 to 4.1.3 by @dependabot in #750
- chore: bump @types/eslint from 8.56.9 to 8.56.10 in the development-dependencies group by @dependabot in #749
- chore: bump chainguard/node-lts from
acc2839
to8cddb06
by @dependabot in #753 - chore: bump @commitlint/cli from 19.2.2 to 19.3.0 in the development-dependencies group by @dependabot in #754
- chore: bump chainguard/node-lts from
8cddb06
to5f09dbf
by @dependabot in #763 - chore: bump actions/checkout from 4.1.3 to 4.1.4 by @dependabot in #756
- chore: bump pino from 8.20.0 to 9.0.0 in the production-dependencies group by @dependabot in #755
- chore: bump actions/dependency-review-action from 4.2.5 to 4.3.1 by @dependabot in #767
- chore: bump ramda from 0.29.1 to 0.30.0 in the production-dependencies group by @dependabot in #768
- chore: bump library/node from 20-alpine to 22-alpine by @dependabot in #769
- chore: bump actions/dependency-review-action from 4.3.1 to 4.3.2 by @dependabot in #771
- chore: bump chainguard/node-lts from
5f09dbf
to4648bb4
by @dependabot in #770 - chore: bump kubernetes-fluent-client from 2.3.1 to 2.3.2 in the production-dependencies group by @dependabot in #772
- chore: bump chainguard/node-lts from
4648bb4
to564a1aa
by @dependabot in #775 - chore: bump library/node from
9459e24
to487dc5d
by @dependabot in #778
New Contributors
- @salaxander made their first contribution in #761
Full Changelog: v0.29.2...v0.30.0
v0.29.2
Usage
In order to look for Watch events from the Watch Controller:
kubectl logs -n pepr-system -l pepr.dev/controller=watcher -f | jq 'select(.msg != null and (.msg | test("^Watch event.+")))'
To get results:
{
"level": 20,
"time": 1713451863516,
"pid": 19,
"hostname": "pepr-6233c672-7fca-5603-8e90-771828dd30fa-watcher-558d5f5d45vkq",
"msg": "Watch event resource_version received"
}
{
"level": 20,
"time": 1713451903555,
"pid": 19,
"hostname": "pepr-6233c672-7fca-5603-8e90-771828dd30fa-watcher-558d5f5d45vkq",
"kind": "ConfigMap",
"apiVersion": "v1",
"metadata": {
"name": "a-12",
"namespace": "pepr-demo",
"uid": "990c7f3d-ac3e-4933-9f05-f63f88726457",
"resourceVersion": "1739",
"creationTimestamp": "2024-04-18T14:51:43Z",
"managedFields": [
{
"manager": "kubectl-create",
"operation": "Update",
"apiVersion": "v1",
"time": "2024-04-18T14:51:43Z",
"fieldsType": "FieldsV1",
"fieldsV1": {
"f:data": {
".": {},
"f:a": {}
}
}
}
]
},
"data": {
"a": "a"
},
"msg": "Watch event ADDED received"
}
{
"level": 20,
"time": 1713451908578,
"pid": 19,
"hostname": "pepr-6233c672-7fca-5603-8e90-771828dd30fa-watcher-558d5f5d45vkq",
"msg": "Watch event resource_version received"
}
What's Changed
- chore: more logging around watch by @cmwylie19 in #748
- chore: bump @types/eslint from 8.56.8 to 8.56.9 in the development-dependencies group by @dependabot in #740
- chore: bump the development-dependencies group with 2 updates by @dependabot in #743
- chore: bump azure/setup-helm from 4.1.0 to 4.2.0 by @dependabot in #744
- chore: bump prom-client from 15.1.1 to 15.1.2 in the production-dependencies group by @dependabot in #746
Full Changelog: v0.29.1...v0.29.2
v0.29.1
What's Changed
- ci: define least privilege permission for vuln scan workflow by @lucasrod16 in #733
- chore: bump the production-dependencies group with 2 updates by @dependabot in #727
- chore: bump docker/setup-buildx-action from 3.2.0 to 3.3.0 by @dependabot in #728
- chore: bump chainguard/node-lts from
8c5f0eb
to4c0a73a
by @dependabot in #734 - chore: bump tar from 6.2.0 to 6.2.1 by @dependabot in #735
- chore: bump @types/node from 18.19.30 to 18.19.31 in the development-dependencies group by @dependabot in #729
- chore: bump @types/eslint from 8.56.7 to 8.56.8 in the development-dependencies group by @dependabot in #736
- chore: bump chainguard/node-lts from
4c0a73a
toacc2839
by @dependabot in #738
New Contributors
- @lucasrod16 made their first contribution in #733
Full Changelog: v0.29.0...v0.29.1
v0.29.0
features
- chore: create helper functions for pepr by @schaeferka in #688
getOwnerRefFrom - get fields needed to create an owner ref
// Create a deployment that is "owned" by the WebApp instance 👍
function deployment(instance: WebApp) {
const { name, namespace } = instance.metadata!;
const { replicas } = instance.spec!;
return {
apiVersion: "apps/v1",
kind: "Deployment",
metadata: {
ownerReferences: getOwnerRefFrom(instance), // 👈 Instance owns deploymeny
name,
namespace,
labels: {
"pepr.dev/operator": name,
},
},
containers - Get all of the containers from a pod
When(a.Pod)
.IsCreatedOrUpdated()
.Validate(po => {
const podContainers = containers(po); // containers, initContainer, ephemeralContainers 👈
for (const container of podContainers) {
if (
container.securityContext?.allowPrivilegeEscalation ||
container.securityContext?.privileged
) {
return po.Deny("Privilege escalation is not allowed");
}
}
return po.Approve();
});
writeEvent - write an event
async function updateStatus(instance: WebApp, status: Status) {
await writeEvent(instance, {phase: status}, "Normal", "CreatedOrUpdate", instance.metadata.name, instance.metadata.name);
await K8s(WebApp).PatchStatus({
metadata: {
name: instance.metadata!.name,
namespace: instance.metadata!.namespace,
},
status,
});
}
kubectl describe wa webapp-light-en -n webapps
# output
Name: webapp-light-en
Namespace: webapps
API Version: pepr.io/v1alpha1
Kind: WebApp
Metadata: ...
Spec:
Language: en
Replicas: 1
Theme: light
Status:
Observed Generation: 1
Phase: Ready
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal InstanceCreatedOrUpdated 36s webapp-light-en Pending 👈
Normal InstanceCreatedOrUpdated 36s webapp-light-en Ready 👈
Take a look at the sdk functions.
Good job @schaeferka 👏
What's Changed
- chore: onschedule runs always in dev mode by @cmwylie19 in #725
- chore: update docs on the operator by @cmwylie19 in #726
- chore: bump chainguard/node-lts from
cc860c4
to8c5f0eb
by @dependabot in #721 - chore: bump @types/node from 18.19.29 to 18.19.30 in the development-dependencies group by @dependabot in #720
Full Changelog: v0.28.8...v0.29.0
v0.28.8
What's Changed
- fix: switch to node-lts chainguard image by @jeff-mccoy in #716
- chore: update readme to have inclusive language by @schristoff in #681
- chore: update Contributor Guide Link by @cmwylie19 in #700
- chore: excellent examples new path by @cmwylie19 in #709
- chore: pipeline test by @cmwylie19 in #710
- chore: test exception ci by @cmwylie19 in #707
- chore: e2e integration by @cmwylie19 in #712
- Excellent examples integration by @cmwylie19 in #713
- chore: vulnerability scan by @cmwylie19 in #718
- chore: testing the e2e test by @cmwylie19 in #701
- chore: bump the development-dependencies group with 2 updates by @dependabot in #705
- chore: bump the production-dependencies group with 1 update by @dependabot in #704
- chore: bump actions/setup-node from 2 to 4 by @dependabot in #703
- chore: bump actions/checkout from 2 to 4 by @dependabot in #702
- chore: bump the development-dependencies group with 1 update by @dependabot in #708
- chore: bump actions/checkout from 4.1.1 to 4.1.2 by @dependabot in #719
New Contributors
- @schristoff made their first contribution in #681
Full Changelog: v0.28.7...v0.28.8
v0.28.7
What's Changed
- chore: fix error message in cli dev/deploy by @cmwylie19 in #697
- chore: add test for when capability is schedule by @cmwylie19 in #693
- chore: fixed typo by @naveensrinivasan in #682
- chore: bump actions/dependency-review-action from 4.2.3 to 4.2.4 by @dependabot in #686
- chore: bump the production-dependencies group with 1 update by @dependabot in #687
- chore: bump the production-dependencies group with 1 update by @dependabot in #691
- chore: bump actions/dependency-review-action from 4.2.4 to 4.2.5 by @dependabot in #692
Full Changelog: v0.28.6...v0.28.7
v0.28.6
What's Changed
- fix: reconcile enqueue bindings by @jeff-mccoy in #680
Full Changelog: v0.28.5...v0.28.6