mirror of
https://github.com/replicatedhq/troubleshoot.git
synced 2026-02-14 10:19:54 +00:00
* Add .worktrees to .gitignore Prevent worktree directories from being tracked in the repository. * feat: collect CertificateSigningRequests in clusterResources collector Add support for collecting CertificateSigningRequests (CSRs) from the certificates.k8s.io/v1 API in the clusterResources collector. Changes: - Added certificateSigningRequests() helper function in cluster_resources.go following the existing pattern for other cluster-scoped resources - Integrated CSR collection into the Collect() method between volumeAttachments and configMaps - Added CLUSTER_RESOURCES_CERTIFICATE_SIGNING_REQUESTS constant - Implemented fail-safe error handling for permission denied scenarios (e.g., managed clusters like EKS that may deny CSR access) Testing: - Added Test_CertificateSigningRequests() with table-driven tests for single and multiple CSR collection scenarios - Added Test_CertificateSigningRequests_PermissionDenied() to verify fail-safe behavior when API access is forbidden - All existing tests pass with no regressions CSRs are saved to: cluster-resources/certificatesigningrequests.json Errors are saved to: cluster-resources/certificatesigningrequests-errors.json * style: run make fmt to align constant declarations Formatting changes only - realigned constant declarations for consistent spacing. * fix: add .worktrees as separate line in .gitignore The /support-bundle directory should remain ignored (for built binaries), and /.worktrees/ should be added as a separate line.
60 lines
880 B
Plaintext
60 lines
880 B
Plaintext
|
|
# Binaries for programs and plugins
|
|
*.exe
|
|
*.exe~
|
|
*.dll
|
|
*.so
|
|
*.dylib
|
|
bin
|
|
.DS_Store
|
|
|
|
# npm generated files
|
|
node_modules/
|
|
package*.json
|
|
|
|
# Test binary, build with `go test -c`
|
|
*.test
|
|
|
|
# Output of the go coverage tool, specifically when used with LiteIDE
|
|
*.out
|
|
|
|
# Kubernetes Generated files - skip generated files, except for vendored files
|
|
|
|
!vendor/**/zz_generated.*
|
|
|
|
# Vendored files downloaded with go mod
|
|
vendor
|
|
|
|
# editor and IDE paraphernalia
|
|
.idea
|
|
*.swp
|
|
*.swo
|
|
*~
|
|
.envrc
|
|
|
|
|
|
dist
|
|
try.sh
|
|
|
|
.vscode/
|
|
workspace.*
|
|
|
|
cosign.key
|
|
sbom/
|
|
|
|
# Ignore local pre-commit config
|
|
.pre-commit-config.yaml
|
|
|
|
# Ignore generated support bundles
|
|
*.tar.gz
|
|
!testdata/supportbundle/*.tar.gz
|
|
!test/baselines/**/baseline.tar.gz
|
|
|
|
# Ignore built binaries (use / prefix to avoid catching source files)
|
|
/troubleshoot
|
|
/troubleshoot-test
|
|
cmd/troubleshoot/troubleshoot
|
|
cmd/*/troubleshoot
|
|
/support-bundle
|
|
/.worktrees/
|