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

[Popeye] Wrong flag when deploying popeye? #1327

Closed
tensingnightco opened this issue Feb 19, 2025 · 1 comment · Fixed by #1331
Closed

[Popeye] Wrong flag when deploying popeye? #1327

tensingnightco opened this issue Feb 19, 2025 · 1 comment · Fixed by #1331
Assignees
Labels
bug Something isn't working

Comments

@tensingnightco
Copy link

tensingnightco commented Feb 19, 2025

Which Helm Chart is affected?

popeye

What's the chart version?

0.22.1

Enter the changed values of values.yaml?

cronJob:
outputFormat: prometheus
prometheus:
basicAuth:
enabled: true
password: P#G**q!kJv9NydEeT!Yd
user: root
pushgatewayAddress: pushgw.re-cloud.io
schedule: '* */1 * * *'
image:
pullPolicy: IfNotPresent
tag: latest
resources:
limits:
cpu: 80m
memory: 80Mi
serviceAccount:
create: true
name: popeye

Describe the bug a clear and concise description of what the bug is.

This is the bug when deployed into the k8s cluster(it doesn't recognize or the helm chart is maybe wrong in specifying flag here):

Error: unknown flag: --pushgateway-address
Usage:
  popeye [flags]
  popeye [command]

Available Commands:
  completion  Generate the autocompletion script for the specified shell
  help        Help about any command
  info        Prints Popeye info
  version     Prints version/build info

Flags:
  -A, --all-namespaces                 When present, runs linters for all namespaces
      --as string                      Username to impersonate for the operation
      --as-group stringArray           Group to impersonate for the operation
      --certificate-authority string   Path to a cert file for the certificate authority
  -c, --clear                          Clears the screen before a run
      --client-certificate string      Path to a client certificate file for TLS
      --client-key string              Path to a client key file for TLS
      --cluster string                 The name of the kubeconfig cluster to use
      --cluster-name string            Specify a cluster name when running popeye in cluster
      --context string                 The name of the kubeconfig context to use
  -f, --file string                    Use a spinach YAML configuration file
      --force-exit-zero                Force zero exit status when report errors are present
  -h, --help                           help for popeye
      --insecure-skip-tls-verify       If true, the server's caCertFile will not be checked for validity
      --kubeconfig string              Path to the kubeconfig file to use for CLI requests
  -l, --lint string                    Specify a lint level (ok, info, warn, error) (default "ok")
  -v, --log-level int                  Specify log level. Use 0|1|2|3|4 for disable|info|warn|error|debug (default 1)
      --logs none                      Specify log file location. Use none for stdout (default "/tmp/popeye.log")
      --min-score int                  Force non-zero exit if the cluster score is below that threshold (default 50)
  -n, --namespace string               If present, the namespace scope for this CLI request
  -o, --out string                     Specify the output type (standard, jurassic, yaml, json, html, junit, score) (default "standard")
      --output-file string             Specify the file name to persist report to disk
      --over-allocs                    Check for cpu/memory over allocations
      --push-gtwy-password string      Prometheus pushgateway auth password
      --push-gtwy-url string           Prometheus pushgateway address e.g. http://localhost:9091
      --push-gtwy-user string          Prometheus pushgateway auth username
      --request-timeout string         The length of time to wait before giving up on a single server request
      --s3-bucket string               Specify to which S3 bucket you want to save the output file
      --s3-endpoint string             Specify an s3 compatible endpoint when the s3-bucket option is enabled
      --s3-region string               Specify an s3 compatible region when the s3-bucket option is enabled
      --save                           Specify if you want Popeye to persist the output to a file
  -s, --sections strings               Specify which resources to include in the scan ie -s po,svc
      --token string                   Bearer token for authentication to the API server
      --user string                    The name of the kubeconfig user to use

Use "popeye [command] --help" for more information about a command.

stream closed EOF for pushgw/popeye-28999367-mgbfw (popeye)

How to reproduce it?

No response

What's your helm version?

3.17.0

Enter the command that you execute and failing/misfunctioning.

helm install popeye christianhuth/popeye -n pushgw --values value-popeye.yaml

Anything else we need to know?

@tensingnightco tensingnightco added the bug Something isn't working label Feb 19, 2025
@christianhuth
Copy link
Owner

Thanks for the reporting the bug. Looks like they changed the name of the flags. Will fix with next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants