Skip to content

Support for setting diun settings per container when multiple containers are present in a Kubernetes pod #1558

@PixNyb

Description

@PixNyb

Description

I'd like to be able to track multiple images within the same pod. Since annotations are set on pod basis I can't seem to figure out or know if it's even possible to set this up. I've found #322 but I'm not sure if this is the same question.

Say i have the following deployment:

apiVersion: apps/v1
kind: Deployment
metadata:
  name: app1
spec:
  replicas: 1
  selector:
    matchLabels:
      app: app1
  template:
    metadata:
      labels:
        app: app1
        app.kubernetes.io/version: "4.5.6-alpine"
      annotations:
        diun.enable: "true"
        diun.include_tags: ^\d+(?:\.\d+){2}-alpine$
        diun.sort_tags: semver
        diun.watch_repo: "true"
        diun.notify_on: new
    spec:
      containers:
        - name: sidecar
          image: pixnyb/sidecar:v1.2.3
        - name: container
          image: pixnyb/container:4.5.6-alpine

Diun would only be able to notify me of updates to the container image, not of the sidecar image. Or am I missing something?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions