Skip to content

Releases: defenseunicorns/pepr

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

v0.28.6

22 Mar 19:42
8eb86f9
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.28.5...v0.28.6

v0.28.5

21 Mar 22:18
a48045e
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.28.4...v0.28.5

v0.28.4

19 Mar 17:30
dad5276
Compare
Choose a tag to compare

What's Changed

  • fix: dedupe environment variable config values by @btlghrants in #665
  • chore: remove loglevel from docs and audit logs in the cli by @cmwylie19 in #668
  • chore: updated ascii art for pepr by @schaeferka in #669
  • chore: add request uid to admission log messages by @btlghrants in #656
  • chore: bump docker/setup-buildx-action from 3.1.0 to 3.2.0 by @dependabot in #657
  • chore: bump the development-dependencies group with 1 update by @dependabot in #660
  • chore: bump the development-dependencies group with 1 update by @dependabot in #666

Full Changelog: v0.28.3...v0.28.4

v0.28.3

14 Mar 17:55
833f2c3
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.28.2...v0.28.3

v0.28.2

14 Mar 16:06
ce1257b
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.28.1...v0.28.2

v0.28.1

13 Mar 18:06
ef780c4
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.28.0...v0.28.1