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

Unable to check for deployment version using label #1725

Open
GauJosh opened this issue Jan 24, 2025 · 1 comment
Open

Unable to check for deployment version using label #1725

GauJosh opened this issue Jan 24, 2025 · 1 comment

Comments

@GauJosh
Copy link

GauJosh commented Jan 24, 2025

Bug Description

I am trying to find istio version that is installed in my cluster but unable to do so.

Expected Behavior

Support bundle check should provide right output.

Steps To Reproduce

Here is my manifest:

apiVersion: troubleshoot.sh/v1beta2
kind: SupportBundle
metadata:
  name: supportbundle-test
spec:
  collectors:
 - cluster-resources:
      namespaces:
      - istio-system
  analyzers:
    - clusterResource:
        checkName: Istio-version
        kind: deployments
        namespace: istio-system
        name: istiod
        yamlPath: 'metadata.labels."operator.istio.io/version"'
        regex: "1.24.0"
        outcomes:
          - pass:
              when: ">= 1.24.0"
              message: "Your cluster meets the recommended and required istio version."
          - fail:
              when: "< 1.24.0"
              message: "The application requires at least istio 1.24.0"

I see the istio manifest is getting generated inside tar file. (support-bundle-2025-01-23T14_45_29/cluster-resources/deployments/istio-system.json)
Result I get is:

x Istio-version resource does not exist

Additional Context

Include the following information.

  • Troubleshoot version: 0.115.1
@GauJosh
Copy link
Author

GauJosh commented Jan 24, 2025

I realized that I was using wrong kind. It should be deployment, not deployments.
Now getting a different issue. When I run my check, somehow the support-bundle does not work with regex?
Command just exits without any output.

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

No branches or pull requests

1 participant