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

Update Kooper for Kubernetes v1.17 #95

Merged
merged 1 commit into from
Apr 13, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ Kooper is a Go library to create simple and flexible [controllers]/operators, in

In other words, is a small alternative to big frameworks like [Kubebuilder] or [operator-framework].

## Features

- Easy usage and fast to get it working.
- Extensible (Kooper doesn't get in your way).
- Simple core concepts (`Retriever` + `Handler` == controller && controller == operator).
- Metrics (extensible with Prometheus already implementated).
- Ready for core Kubernetes resources (pods, ingress, deployments...) and CRDs.
- Optional leader election system for controllers.
- Optional MultiResource controllers (e.g deployments and pods).

## Getting started

The simplest example that prints pods would be this:
Expand Down
2 changes: 1 addition & 1 deletion examples/pod-terminator-operator/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

CODE_GENERATOR_IMAGE := quay.io/slok/kube-code-generator:v1.15.10
CODE_GENERATOR_IMAGE := quay.io/slok/kube-code-generator:v1.17.3
CRD_GENERATOR_IMAGE := quay.io/slok/kube-code-generator:latest
DIRECTORY := $(PWD)
ROOT_DIRECTORY := $(DIRECTORY)/../..
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions examples/pod-terminator-operator/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ go 1.14
replace github.com/spotahome/kooper => ../../

require (
github.com/sirupsen/logrus v1.4.2
github.com/sirupsen/logrus v1.5.0
github.com/spotahome/kooper v0.0.0
github.com/stretchr/testify v1.4.0
k8s.io/api v0.15.10
github.com/stretchr/testify v1.5.1
k8s.io/api v0.17.4
k8s.io/apiextensions-apiserver v0.15.10
k8s.io/apimachinery v0.15.12-beta.0
k8s.io/client-go v0.15.10
k8s.io/apimachinery v0.17.4
k8s.io/client-go v0.17.4
)
134 changes: 134 additions & 0 deletions examples/pod-terminator-operator/go.sum

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ spec:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources'
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds'
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
description: 'Standard object''s metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata'
Expand Down
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ require (
github.com/prometheus/client_golang v1.5.1
github.com/sirupsen/logrus v1.5.0
github.com/stretchr/testify v1.5.1
k8s.io/api v0.15.10
k8s.io/apimachinery v0.15.12-beta.0
k8s.io/client-go v0.15.10
k8s.io/api v0.17.4
k8s.io/apimachinery v0.17.4
k8s.io/client-go v0.17.4
)

go 1.14
181 changes: 137 additions & 44 deletions go.sum

Large diffs are not rendered by default.