• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

l50 / goutils / 8768581250 / 1
88%
main: 88%

Build:
DEFAULT BRANCH: main
Ran 21 Apr 2024 12:07AM UTC
Files 27
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

21 Apr 2024 12:01AM UTC coverage: 65.205% (-1.3%) from 66.536%
8768581250.1

push

github

web-flow
Added k8s utilities (#636)

**Added:**
- Introduced `README.md` for goutils/v2/k8s package, detailing functions,
  installation, usage, and contribution guidelines.
- Added new source files `manifestHelpers.go` and `manifestHelpers_test.go`
  with comprehensive utility functions and tests for managing Kubernetes
  manifests including raw, Helm, and Kustomize types.
- Enhanced `client.go` documentation and annotations for better clarity and
  maintenance of Kubernetes client interactions.
- New `jobHelpers.go` and `jobHelpers_test.go` files to manage and test
  the deletion of Kubernetes jobs.
- Unit tests for job deletion to ensure functionality across different
  scenarios, including both successful and failed deletions.

**Changed:**
- Updated `KubernetesClient` struct to use `kubernetes.Interface` instead of
  `*kubernetes.Clientset` to improve flexibility and facilitate testing with
  fake clients.
- Improved test structure in `jobHelpers_test.go` to include dynamic setup
  for creating real and non-existent job scenarios.
- Updated comments and documentation in `client.go` to improve understanding
  and align with coding standards.
- Refactored `manifestHelpers.go` to include detailed comments and structured
  error handling for all operations involving Kubernetes manifests.

**Technical Details:**
- Implemented deletion of Kubernetes jobs with context handling and proper
  error propagation.
- Tests utilize `k8s.io/client-go/kubernetes/fake` to simulate Kubernetes
  client behavior in a controlled test environment.
- Ensured all new code adheres to idiomatic Go practices, with detailed
  commenting and robust error handling.
- Standardized documentation across new and updated files to provide clear,
  concise instructions and descriptions for developers.
- Add timeout to golangci-lint

1576 of 2417 relevant lines covered (65.2%)

11.94 hits per line

Source Files on job 8768581250.1
  • Tree
  • List 0
  • Changed 3
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 8768581250
  • a47b280e on github
  • Prev Job for on main (#8768548223.1)
  • Next Job for on main (#8769369710.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc