-
Notifications
You must be signed in to change notification settings - Fork 208
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
sysdump: Detect features from cilium-config ConfigMap #2004
Conversation
- Call FeatureSet.ExtractFromConfigMap to extract features from cilium-config. - Add tasks related to SPIRE server if and only if "mutual-auth-spiffe" feature is enabled. Ref: #1962 Signed-off-by: Michi Mutsuzaki <[email protected]>
requesting review from service mesh team 🚀🙏 |
@@ -263,6 +267,14 @@ func NewCollector(k KubernetesClient, o Options, startTime time.Time, cliVersion | |||
} | |||
c.log("ℹ️ %s ConfigMap not found in %s namespace", ciliumConfigMapName, c.Options.CiliumNamespace) | |||
} | |||
if c.CiliumConfigMap != nil && len(c.CiliumPods) > 0 { | |||
ciliumVersion, err := c.Client.GetCiliumVersion(context.Background(), c.CiliumPods[0]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yikes! hopefully we'll have a better way to retrieve version info... perhaps helm values??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah this is not great, but it needs to work even when you install cilium without doing helm install
, like helm template | kubectl apply -
or similar.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@michi-covalent Nice work!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM from service mesh
Ref: #1962