question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support Flux Kustomizations CRD

See original GitHub issue

Hello! Thanks for putting out monokle

I tried using this with FluxCD, and found a quirk worth reporting. There is generally good support for arbitrary custom resources, however the Flux CRDs include a resource called Kustomization in the kustomize.toolkit.fluxcd.io/v1beta2 API group.

This differs from the Kustomization in SIG-CLI although it is closely related, it is a separate resource kind.

Unfortunately it looks like monokle treats all resources with the kind Kustomization as SIG-CLI Kustomizations, even when they are not in a file kustomization.yaml or one of the other magic filenames picked up by SIG-CLI Kustomize as a Kustomization.

In my example repo, https://github.com/kingdonb/bootstrap-repo I have a cluster root at clusters/moo-cluster which contains a bunch of Flux Kustomizations, most of which point to a target directory that contains a SIG-CLI Kustomization.

The SIG-CLI Kustomize Overlay looks good in monokle:

Screen Shot 2022-01-22 at 10 45 34 AM

The Flux Kustomization is detected improperly and shows up as invalid, as it’s not validated against the OpenAPI spec from the cluster CRD, but instead against the SIG-CLI Kustomize validation schema, I guess? It doesn’t show up as a resource at all in Monokle. I haven’t read the source code to explain it yet, but I hope this is an easy fix!

Screen Shot 2022-01-22 at 10 47 09 AM

Thanks again for releasing Monokle!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:16 (10 by maintainers)

github_iconTop GitHub Comments

5reactions
kingdonbcommented, Jan 27, 2022

This has been the best drive-by issue report in the history of reporting issues 👍 awesome. I’ll look for it in the next nightly, (or in the final release if it gets there first!)

2reactions
olensmarcommented, Jan 27, 2022

I also discovered #1199 while playing around with this - fixed in #1201 !

Read more comments on GitHub >

github_iconTop Results From Across the Web

Kustomization - Flux CD
The Kustomization API defines a pipeline for fetching, decrypting, building, validating and applying Kustomize overlays or plain Kubernetes manifests.
Read more >
fluxcd/kustomize-controller: The GitOps Toolkit ... - GitHub
The kustomize-controller is a Flux component, specialized in running continuous delivery pipelines for infrastructure and workloads defined with Kubernetes ...
Read more >
Kubernetes Kustomize with Flux CD - particule.
And no official Chart to help you here. First thing that comes to mind is to not use Helm Chart and stay with...
Read more >
Deploy Traefik Proxy With Flux & GitOps
Traefik Proxy also supports canary deployments, and we recently added middlewares for ... That entire process is managed using Kustomize, built into Flux....
Read more >
Declarative Management of Kubernetes Objects Using ...
Kustomize is a standalone tool to customize Kubernetes objects through a kustomization file. Since 1.14, Kubectl also supports the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found