Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reloader keeps logging warnings about DeploymentConfigs #779

Open
Stef16Robbe opened this issue Oct 31, 2024 · 5 comments
Open

Reloader keeps logging warnings about DeploymentConfigs #779

Stef16Robbe opened this issue Oct 31, 2024 · 5 comments
Labels
kind/bug Something isn't working

Comments

@Stef16Robbe
Copy link

Stef16Robbe commented Oct 31, 2024

Describe the bug
Reloader operator produces dozens of logs per second warning about DeploymentConfigs (DC) being deprecated after OpenShift 4.14:

...
W1031 08:20:26.998706 1 warnings.go:70] apps.openshift.io/v1 DeploymentConfig is deprecated in v4.14+, unavailable in v4.10000+
W1031 08:20:27.157885 1 warnings.go:70] apps.openshift.io/v1 DeploymentConfig is deprecated in v4.14+, unavailable in v4.10000+
W1031 08:20:27.299301 1 warnings.go:70] apps.openshift.io/v1 DeploymentConfig is deprecated in v4.14+, unavailable in v4.10000+
...

To Reproduce

  1. Install on OpenShift 4.14/4.15
  2. Leave reloader.isOpenshift to it's default false, haven't tried setting it to true but we don't use DC's

Expected behavior
No messages about DC's

Screenshots
Log message should say enough

Environment

  • Operator Version: v1.1.0
  • Kubernetes/OpenShift Version: Both on 4.14 and 4.15

Additional context

  • This looks to be coming from the K8S api, it's shown regularly when using it, e.g.:
$ oc status
Warning: apps.openshift.io/v1 DeploymentConfig is deprecated in v4.14+, unavailable in v4.10000+
  • My Deployment manifest:
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: reloader-reloader
spec:
  replicas: 1
  revisionHistoryLimit: 2
  selector:
    matchLabels:
      app: reloader-reloader
  template:
    metadata:
      labels:
        app: reloader-reloader
    spec:
      containers:
        - image: "ghcr.io/stakater/reloader:v1.1.0"
          args:
            - --reload-strategy=annotations
          imagePullPolicy: IfNotPresent
          name: reloader-reloader
          ports:
            - name: http
              containerPort: 9090
          livenessProbe:
            httpGet:
              path: /live
              port: http
            timeoutSeconds: 5
            failureThreshold: 5
            periodSeconds: 10
            successThreshold: 1
            initialDelaySeconds: 10
          readinessProbe:
            httpGet:
              path: /metrics
              port: http
            timeoutSeconds: 5
            failureThreshold: 5
            periodSeconds: 10
            successThreshold: 1
            initialDelaySeconds: 10
          securityContext: {}
      securityContext:
        runAsNonRoot: true
        seccompProfile:
          type: RuntimeDefault
      serviceAccountName: reloader-reloader
@Stef16Robbe Stef16Robbe added the kind/bug Something isn't working label Oct 31, 2024
@karl-johan-grahn
Copy link
Contributor

We will attempt to reproduce it on Kind cluster to verify it's an OpenShift specific issue

@rasheedamir
Copy link
Member

rasheedamir commented Nov 19, 2024

Yes @karl-johan-grahn this is OpenShift specific issue; as DC is OpenShift concept and NOT a Kubernetes concept; and DCs are going away soon.

@MuneebAijaz
Copy link
Contributor

@Stef16Robbe code is particularly checking for an API resource to exist to determine if its OCP or not, that causes this issue https://github.com/stakater/Reloader/blob/master/pkg/kube/client.go#L71

@Stef16Robbe
Copy link
Author

@MuneebAijaz That makes sense. Do you have a fix in mind? 😄

@juv
Copy link

juv commented Dec 9, 2024

This deprecation warning is literally spamming in our logs 24/7 and sometimes even cause CPU throttling on the reloader pod

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants