Skip to content

Unexpected Custom Analyzer Execution #1601

@ronaldpetty

Description

@ronaldpetty

If you typo the namespace, CAs still run (unlike filters).

% k8sgpt analyze --custom-analysis -n defaut # typo, yet CA runs
AI Provider: AI not used; --explain not set

0: my-ca diskuse()
- Error: Disk usage is 80
Disk usage is 80
% k8sgpt analyze --custom-analysis -n default # expected to run
AI Provider: AI not used; --explain not set

0: my-ca diskuse()
- Error: Disk usage is 80
Disk usage is 80
1: ConfigMap default/kube-root-ca.crt()
- Error: ConfigMap kube-root-ca.crt is not used by any pods in the namespace

2: Pod default/brokenpod()
- Error: Back-off pulling image "nginx:i_dont_exist": ErrImagePull: Error response from daemon: failed to resolve reference "docker.io/library/nginx:i_dont_exist": docker.io/library/nginx:i_dont_exist: not found

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Proposed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions