Skip to content

Commit

Permalink
Controller runtime upgrade, Go 1.16, CRD upgrade v1beta1 to v1 (#129)
Browse files Browse the repository at this point in the history
* controller-runtime upgrade
* go 1.16
* controller-gen upgrade, generate docs and manifests
* simplify code, add watcher for statefulset
  • Loading branch information
pepov authored Jun 1, 2021
1 parent ec95b0e commit 2824896
Show file tree
Hide file tree
Showing 32 changed files with 2,386 additions and 871 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
build:
resource_class: large
docker:
- image: cimg/go:1.13
- image: cimg/go:1.16
environment:
GOFLAGS: -mod=readonly

Expand All @@ -29,7 +29,7 @@ jobs:
image: ubuntu-1604:201903-01
docker_layer_caching: true
environment:
GO_VERSION: '1.13'
GO_VERSION: '1.16'
K8S_VERSION: 'v1.20.0'
#VAULT_VERSION: '1.0.0'
KUBECONFIG: '/home/circleci/.kube/config'
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ KUBEBUILDER_VERSION = 2.3.1
export KUBEBUILDER_ASSETS := $(PWD)/bin
LICENSEI_VERSION = 0.2.0

CONTROLLER_GEN_VERSION = v0.4.1
CONTROLLER_GEN_VERSION = v0.5.0
CONTROLLER_GEN = $(PWD)/bin/controller-gen

OS = $(shell uname | tr A-Z a-z)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.4.1
controller-gen.kubebuilder.io/version: v0.5.0
creationTimestamp: null
name: objectstores.monitoring.banzaicloud.io
spec:
Expand Down Expand Up @@ -2878,8 +2878,6 @@ spec:
type: object
type: object
type: array
required:
- sources
type: object
quobyte:
properties:
Expand Down Expand Up @@ -3068,8 +3066,15 @@ spec:
type: object
spec:
properties:
allocateLoadBalancerNodePorts:
type: boolean
clusterIP:
type: string
clusterIPs:
items:
type: string
type: array
x-kubernetes-list-type: atomic
externalIPs:
items:
type: string
Expand All @@ -3081,7 +3086,12 @@ spec:
healthCheckNodePort:
format: int32
type: integer
ipFamily:
ipFamilies:
items:
type: string
type: array
x-kubernetes-list-type: atomic
ipFamilyPolicy:
type: string
loadBalancerIP:
type: string
Expand Down Expand Up @@ -6015,8 +6025,6 @@ spec:
type: object
type: object
type: array
required:
- sources
type: object
quobyte:
properties:
Expand Down Expand Up @@ -6209,8 +6217,15 @@ spec:
type: object
spec:
properties:
allocateLoadBalancerNodePorts:
type: boolean
clusterIP:
type: string
clusterIPs:
items:
type: string
type: array
x-kubernetes-list-type: atomic
externalIPs:
items:
type: string
Expand All @@ -6222,7 +6237,12 @@ spec:
healthCheckNodePort:
format: int32
type: integer
ipFamily:
ipFamilies:
items:
type: string
type: array
x-kubernetes-list-type: atomic
ipFamilyPolicy:
type: string
loadBalancerIP:
type: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.4.1
controller-gen.kubebuilder.io/version: v0.5.0
creationTimestamp: null
name: receivers.monitoring.banzaicloud.io
spec:
Expand Down Expand Up @@ -470,8 +470,15 @@ spec:
type: object
spec:
properties:
allocateLoadBalancerNodePorts:
type: boolean
clusterIP:
type: string
clusterIPs:
items:
type: string
type: array
x-kubernetes-list-type: atomic
externalIPs:
items:
type: string
Expand All @@ -483,7 +490,12 @@ spec:
healthCheckNodePort:
format: int32
type: integer
ipFamily:
ipFamilies:
items:
type: string
type: array
x-kubernetes-list-type: atomic
ipFamilyPolicy:
type: string
loadBalancerIP:
type: string
Expand Down Expand Up @@ -3265,8 +3277,6 @@ spec:
type: object
type: object
type: array
required:
- sources
type: object
quobyte:
properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.4.1
controller-gen.kubebuilder.io/version: v0.5.0
creationTimestamp: null
name: storeendpoints.monitoring.banzaicloud.io
spec:
Expand Down Expand Up @@ -212,8 +212,15 @@ spec:
type: object
spec:
properties:
allocateLoadBalancerNodePorts:
type: boolean
clusterIP:
type: string
clusterIPs:
items:
type: string
type: array
x-kubernetes-list-type: atomic
externalIPs:
items:
type: string
Expand All @@ -225,7 +232,12 @@ spec:
healthCheckNodePort:
format: int32
type: integer
ipFamily:
ipFamilies:
items:
type: string
type: array
x-kubernetes-list-type: atomic
ipFamilyPolicy:
type: string
loadBalancerIP:
type: string
Expand Down
66 changes: 53 additions & 13 deletions charts/thanos-operator/crds/monitoring.banzaicloud.io_thanos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.4.1
controller-gen.kubebuilder.io/version: v0.5.0
creationTimestamp: null
name: thanos.monitoring.banzaicloud.io
spec:
Expand Down Expand Up @@ -2998,8 +2998,6 @@ spec:
type: object
type: object
type: array
required:
- sources
type: object
quobyte:
properties:
Expand Down Expand Up @@ -3210,8 +3208,15 @@ spec:
type: object
spec:
properties:
allocateLoadBalancerNodePorts:
type: boolean
clusterIP:
type: string
clusterIPs:
items:
type: string
type: array
x-kubernetes-list-type: atomic
externalIPs:
items:
type: string
Expand All @@ -3223,7 +3228,12 @@ spec:
healthCheckNodePort:
format: int32
type: integer
ipFamily:
ipFamilies:
items:
type: string
type: array
x-kubernetes-list-type: atomic
ipFamilyPolicy:
type: string
loadBalancerIP:
type: string
Expand Down Expand Up @@ -6154,8 +6164,6 @@ spec:
type: object
type: object
type: array
required:
- sources
type: object
quobyte:
properties:
Expand Down Expand Up @@ -6368,8 +6376,15 @@ spec:
type: object
spec:
properties:
allocateLoadBalancerNodePorts:
type: boolean
clusterIP:
type: string
clusterIPs:
items:
type: string
type: array
x-kubernetes-list-type: atomic
externalIPs:
items:
type: string
Expand All @@ -6381,7 +6396,12 @@ spec:
healthCheckNodePort:
format: int32
type: integer
ipFamily:
ipFamilies:
items:
type: string
type: array
x-kubernetes-list-type: atomic
ipFamilyPolicy:
type: string
loadBalancerIP:
type: string
Expand Down Expand Up @@ -6855,8 +6875,15 @@ spec:
type: object
spec:
properties:
allocateLoadBalancerNodePorts:
type: boolean
clusterIP:
type: string
clusterIPs:
items:
type: string
type: array
x-kubernetes-list-type: atomic
externalIPs:
items:
type: string
Expand All @@ -6868,7 +6895,12 @@ spec:
healthCheckNodePort:
format: int32
type: integer
ipFamily:
ipFamilies:
items:
type: string
type: array
x-kubernetes-list-type: atomic
ipFamilyPolicy:
type: string
loadBalancerIP:
type: string
Expand Down Expand Up @@ -9650,8 +9682,6 @@ spec:
type: object
type: object
type: array
required:
- sources
type: object
quobyte:
properties:
Expand Down Expand Up @@ -12651,8 +12681,6 @@ spec:
type: object
type: object
type: array
required:
- sources
type: object
quobyte:
properties:
Expand Down Expand Up @@ -12857,8 +12885,15 @@ spec:
type: object
spec:
properties:
allocateLoadBalancerNodePorts:
type: boolean
clusterIP:
type: string
clusterIPs:
items:
type: string
type: array
x-kubernetes-list-type: atomic
externalIPs:
items:
type: string
Expand All @@ -12870,7 +12905,12 @@ spec:
healthCheckNodePort:
format: int32
type: integer
ipFamily:
ipFamilies:
items:
type: string
type: array
x-kubernetes-list-type: atomic
ipFamilyPolicy:
type: string
loadBalancerIP:
type: string
Expand Down
Loading

0 comments on commit 2824896

Please sign in to comment.