Skip to content

Releases: defenseunicorns/pepr

v0.31.1

23 May 15:40
c0d3aaa
Compare
Choose a tag to compare

What's Changed

  • chore: updates based on KFC changes by @cmwylie19 in #825
  • chore: remove webhooks after exiting npx pepr dev by @cmwylie19 in #816
  • chore: bump chainguard/node-lts from ad74234 to 352823f by @dependabot in #809
  • chore: bump github/codeql-action from 2.13.4 to 3.25.5 by @dependabot in #808
  • chore: bump github/codeql-action from 3.25.5 to 3.25.6 by @dependabot in #818
  • chore: bump chainguard/node-lts from 352823f to 5ac3e57 by @dependabot in #817
  • chore: bump ts-jest from 29.1.2 to 29.1.3 in the development-dependencies group by @dependabot in #821
  • chore: bump library/node from 9e8f45f to 9456710 by @dependabot in #823
  • chore: bump chainguard/node-lts from 5ac3e57 to 4f3a934 by @dependabot in #820

Full Changelog: v0.31.0...v0.31.1

v0.31.0

17 May 17:10
82ed82e
Compare
Choose a tag to compare

Feats

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 to ad74234 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 to 9e8f45f by @dependabot in #806
  • chore: bump chainguard/node-lts from a0b51fe to db5a181 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 to fe26db9 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 to a8d75b6 by @dependabot in #799
  • chore: bump chainguard/node-lts from a8d75b6 to 1fa615d by @dependabot in #803

Full Changelog: v0.30.2...v0.31.0

v0.30.2

07 May 18:15
1dcf3f4
Compare
Choose a tag to compare

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

07 May 16:39
60dbbdb
Compare
Choose a tag to compare

What's Changed

  • chore: bump chainguard/node-lts from 564a1aa to a0b51fe 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

03 May 13:10
02d5c36
Compare
Choose a tag to compare

Features

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 to 8cddb06 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 to 5f09dbf 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 to 4648bb4 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 to 564a1aa by @dependabot in #775
  • chore: bump library/node from 9459e24 to 487dc5d by @dependabot in #778

New Contributors

Full Changelog: v0.29.2...v0.30.0

v0.29.2

18 Apr 14:53
dda83ad
Compare
Choose a tag to compare

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

12 Apr 12:45
b0d8519
Compare
Choose a tag to compare

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 to 4c0a73a 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 to acc2839 by @dependabot in #738

New Contributors

Full Changelog: v0.29.0...v0.29.1

v0.29.0

08 Apr 15:44
a0b27bb
Compare
Choose a tag to compare

features

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 to 8c5f0eb 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

05 Apr 18:11
447f031
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.28.7...v0.28.8

v0.28.7

01 Apr 19:36
12add49
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.28.6...v0.28.7