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

chore(charts,x509-certificate-exporter): monitor specific file extension #354

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

PixiBixi
Copy link
Contributor

As you introduce a recent feature to monitor specific file extension, i've applied it into the helm chart.

You have to use values.yaml like this

---
hostPathsExporter:
  daemonSets:
    nodes:
      watchSpecificExtensionDirectories:
        - directory: /etc/kubernetes/ssl/
          extension: pem

After an helm template, it will template it like this

        args:
        - --listen-address=:9793
        - --trim-path-components=3
        - --watch-dir=/mnt/watch/dir-3c7986266497f70a0ca6dc6776cc96e1e1d3dcb6//etc/kubernetes/ssl/*.pem
        - --max-cache-duration=300s
        volumeMounts:
        - name: dir-3c7986266497f70a0ca6dc6776cc96e1e1d3dcb6
          mountPath: /mnt/watch/dir-3c7986266497f70a0ca6dc6776cc96e1e1d3dcb6//etc/kubernetes
          readOnly: true
        ports:
        - name: metrics
          containerPort: 9793
      hostNetwork: false
      volumes:
      - name: dir-3c7986266497f70a0ca6dc6776cc96e1e1d3dcb6
        hostPath:
          path: /etc/kubernetes/ssl
          type: "Directory"

@npdgm npdgm merged commit c99030d into enix:main Dec 10, 2024
2 checks passed
@monkeynator
Copy link
Member

🎉 This PR is included in version 3.18.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants