Skip to content

Commit b3bb66f

Browse files
committed
guestbook-operator: update controller-gen
1 parent cfd0b42 commit b3bb66f

File tree

5 files changed

+28
-277
lines changed

5 files changed

+28
-277
lines changed

examples/guestbook-operator/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11

22
# Image URL to use all building/pushing image targets
33
IMG ?= controller:latest
4-
# Produce CRDs that work back to Kubernetes 1.11 (no version conversion)
5-
CRD_OPTIONS ?= "crd:trivialVersions=true,preserveUnknownFields=false"
4+
# Produce v1 CRDs
5+
CRD_OPTIONS ?= "crd:crdVersions=v1"
66

77
# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
88
ifeq (,$(shell go env GOBIN))
@@ -98,7 +98,7 @@ CONTROLLER_GEN ?= $(LOCALBIN)/controller-gen
9898

9999
## Tool Versions
100100
KUSTOMIZE_VERSION ?= v3.8.7
101-
CONTROLLER_TOOLS_VERSION ?= v0.4.1
101+
CONTROLLER_TOOLS_VERSION ?= v0.17.3
102102

103103
KUSTOMIZE_INSTALL_SCRIPT ?= "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh"
104104
.PHONY: kustomize

examples/guestbook-operator/api/v1alpha1/zz_generated.deepcopy.go

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/guestbook-operator/config/crd/bases/addons.example.org_guestbooks.yaml

Lines changed: 25 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
21
---
32
apiVersion: apiextensions.k8s.io/v1
43
kind: CustomResourceDefinition
54
metadata:
65
annotations:
7-
controller-gen.kubebuilder.io/version: v0.4.1
8-
creationTimestamp: null
6+
controller-gen.kubebuilder.io/version: v0.17.3
97
name: guestbooks.addons.example.org
108
spec:
119
group: addons.example.org
@@ -22,31 +20,40 @@ spec:
2220
description: Guestbook is the Schema for the guestbooks API
2321
properties:
2422
apiVersion:
25-
description: 'APIVersion defines the versioned schema of this representation
26-
of an object. Servers should convert recognized schemas to the latest
27-
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
23+
description: |-
24+
APIVersion defines the versioned schema of this representation of an object.
25+
Servers should convert recognized schemas to the latest internal value, and
26+
may reject unrecognized values.
27+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
2828
type: string
2929
kind:
30-
description: 'Kind is a string value representing the REST resource this
31-
object represents. Servers may infer this from the endpoint the client
32-
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
30+
description: |-
31+
Kind is a string value representing the REST resource this object represents.
32+
Servers may infer this from the endpoint the client submits requests to.
33+
Cannot be updated.
34+
In CamelCase.
35+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
3336
type: string
3437
metadata:
3538
type: object
3639
spec:
3740
description: GuestbookSpec defines the desired state of Guestbook
3841
properties:
3942
channel:
40-
description: 'Channel specifies a channel that can be used to resolve
41-
a specific addon, eg: stable It will be ignored if Version is specified'
43+
description: |-
44+
Channel specifies a channel that can be used to resolve a specific addon, eg: stable
45+
It will be ignored if Version is specified
4246
type: string
4347
patches:
4448
items:
4549
type: object
50+
x-kubernetes-preserve-unknown-fields: true
4651
type: array
52+
x-kubernetes-preserve-unknown-fields: true
4753
version:
48-
description: Version specifies the exact addon version to be deployed,
49-
eg 1.2.3 It should not be specified if Channel is specified
54+
description: |-
55+
Version specifies the exact addon version to be deployed, eg 1.2.3
56+
It should not be specified if Channel is specified
5057
type: string
5158
type: object
5259
status:
@@ -58,19 +65,18 @@ spec:
5865
type: array
5966
healthy:
6067
type: boolean
68+
observedGeneration:
69+
default: 0
70+
format: int64
71+
type: integer
6172
phase:
6273
type: string
6374
required:
6475
- healthy
76+
- observedGeneration
6577
type: object
6678
type: object
6779
served: true
6880
storage: true
6981
subresources:
7082
status: {}
71-
status:
72-
acceptedNames:
73-
kind: ""
74-
plural: ""
75-
conditions: []
76-
storedVersions: []

examples/guestbook-operator/config/crd/bases/addons.example.org_guestbookspecs.yaml

Lines changed: 0 additions & 252 deletions
This file was deleted.

examples/guestbook-operator/config/rbac/role.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
21
---
32
apiVersion: rbac.authorization.k8s.io/v1
43
kind: ClusterRole
54
metadata:
6-
creationTimestamp: null
75
name: manager-role
86
rules:
97
- apiGroups:

0 commit comments

Comments
 (0)