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

l50 / goutils / 8768581250
88%

Build:
DEFAULT BRANCH: main
Ran 21 Apr 2024 12:07AM UTC
Jobs 1
Files 27
Run time 1min
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

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

43 of 113 new or added lines in 1 file covered. (38.05%)

1576 of 2417 relevant lines covered (65.2%)

11.94 hits per line

Jobs
ID Job ID Ran Files Coverage
1 8768581250.1 21 Apr 2024 12:07AM UTC 0
65.2
GitHub Action Run
Source Files on build 8768581250
Detailed source file information is not available for this build.
  • Back to Repo
  • a47b280e on github
  • Prev Build on main (#8768548223)
  • Next Build on main (#8769369710)
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