21 Commits

Author SHA1 Message Date
Sergiy Markin
4ae2c3a101 Fixed lint and unit tests
This PS makes sure we have linter and unit tests
processed. The code has been reformatted to adhere
to Go's code formatting conventions.

Change-Id: I31f15d6d6c4b9bda7e3837941b6c9c3c3735aea7
2024-03-26 19:41:48 +00:00
Mohammed Naser
5dcc0bf0b2 Update to Go 1.21
This patch updates the whole code to use the latest Go version 1.21
and also updates the dependencies to the latest versions.

Change-Id: Ie0b346e4622c56825aeda176f63ae4e55f06a2ce
2024-03-26 15:10:40 +00:00
Ian Howell
9f4f1a7849 Move from Godeps to go modules
This commit removes the configuration files for Godeps as well as the
vendored dependencies, replacing them with go modules, Go's built-in
dependency management system. This dramatically slims down the size of
the repo (from 25M to 324K, discounting the .git directory) and greatly
speeds up cloning times. This will also provide mechanisms for managing
versions of any auxiliary tools (e.g. linters), creating a reproducible
environment for developers and CI/CD efforts.

This also modifies the Makefile to take into account that the repo no
longer needs to be cloned into the GOPATH.

Change-Id: I2213792cc3ce81831d5b835f2252ca6f137e0086
2019-09-30 14:20:47 -05:00
Ian Howell
bba1bd9d3d This is a code-linting refactor
This refactors a large part of the codebase using the suggestions from
golangci-lint

Change-Id: I2b7735086a64e50f3d5e0b30c225870bddc70935
2019-09-30 14:20:43 -05:00
Ian Howell
0bd56907bf Update to use client-go v10.0.0
This removes dependencies on the stale v1.5.1 client-go and updates
the project to work with the current v10.0.0 release.

This change will make it easier to implement new CRDs which use more
recent versions of client-go
2018-12-13 09:50:12 -06:00
Sean Eagan
20a0b3c86b Add pod dependencies
Pod dependencies check for at least one pod which satisfies all of:

* On the same host as the kubernetes-entrypoint container
* In the specified namespace
* Matches the specified labels
* In ready state

It uses JSON for the the env var encoding to avoid complexity of parsing
labels.
2018-03-14 15:45:37 -05:00
PiotrProkop
a6473109f1 Fixing daemonset checking Pods in wrong namespace and small refactoring 2017-09-27 18:32:44 +02:00
Dominika Krzyszczyk
2590d0c013 Extend functionality of kubernetes-entrypoint with adding namespace per service option. 2017-09-27 12:25:14 +02:00
Antoni Rościszewski
c8498527ee Merge remote-tracking branch 'upstream/master'
# Conflicts:
#	dependencies/service/service.go
#	mocks/daemonset.go
#	mocks/pod.go
2017-02-13 12:48:28 +01:00
Antoni Rościszewski
a14b57aaa9 Add tests for all of the dependencies 2017-02-13 12:40:05 +01:00
PiotrProkop
86b60a7c62 Fixing service bug and switching go-client to v1.5.1 2017-02-10 16:25:26 +01:00
Michał Żyłowski
e072c1d986 Fix daemonset dependency panic when POD_NAME is unset
Simple refactor
2017-01-18 10:53:34 +01:00
pprokop
1344f6314e Changing k8s-client to kubernetes/go-client 2016-11-04 12:41:18 +01:00
pprokop
d2bf65ede9 Changes due to Quentin review 2016-10-28 14:55:23 +02:00
pprokop
7a3b080e68 Adding test for daemonset 2016-10-28 14:55:23 +02:00
pprokop
273433cdba Changes due to DTadrzak review 2016-10-28 14:55:23 +02:00
pprokop
af0672d339 Removin imports 2016-10-28 14:55:23 +02:00
pprokop
ab11828911 Refactoring 2016-10-28 14:55:23 +02:00
pprokop
eb00c9e9e4 Changing imports and daemonset dependency 2016-08-09 10:36:17 +02:00
pprokop
e4eae43aae Changing imports paths 2016-07-22 13:26:31 +02:00
pprokop
e43a271dbf Adding initial codebase 2016-07-18 18:57:12 +02:00