Skip to content

Commit e7ec904

Browse files
committed
Generate CRDs using the stable apiextensions
Signed-off-by: Stefan Prodan <[email protected]>
1 parent fb26178 commit e7ec904

File tree

2 files changed

+109
-109
lines changed

2 files changed

+109
-109
lines changed

Makefile

Lines changed: 2 additions & 2 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 ?= fluxcd/image-automation-controller
4-
# Produce CRDs that work back to Kubernetes 1.11 (no version conversion)
5-
CRD_OPTIONS ?= "crd:trivialVersions=true"
4+
# Produce CRDs that work back to Kubernetes 1.16
5+
CRD_OPTIONS ?= crd:crdVersions=v1
66

77
# Version of the Toolkit from which to get CRDs. Change this if you
88
# bump the go module version.

config/crd/bases/image.toolkit.fluxcd.io_imageupdateautomations.yaml

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

22
---
3-
apiVersion: apiextensions.k8s.io/v1beta1
3+
apiVersion: apiextensions.k8s.io/v1
44
kind: CustomResourceDefinition
55
metadata:
66
annotations:
77
controller-gen.kubebuilder.io/version: v0.3.0
88
creationTimestamp: null
99
name: imageupdateautomations.image.toolkit.fluxcd.io
1010
spec:
11-
additionalPrinterColumns:
12-
- JSONPath: .status.lastAutomationRunTime
13-
name: Last run
14-
type: string
1511
group: image.toolkit.fluxcd.io
1612
names:
1713
kind: ImageUpdateAutomation
1814
listKind: ImageUpdateAutomationList
1915
plural: imageupdateautomations
2016
singular: imageupdateautomation
2117
scope: Namespaced
22-
subresources:
23-
status: {}
24-
validation:
25-
openAPIV3Schema:
26-
description: ImageUpdateAutomation is the Schema for the imageupdateautomations
27-
API
28-
properties:
29-
apiVersion:
30-
description: 'APIVersion defines the versioned schema of this representation
31-
of an object. Servers should convert recognized schemas to the latest
32-
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
33-
type: string
34-
kind:
35-
description: 'Kind is a string value representing the REST resource this
36-
object represents. Servers may infer this from the endpoint the client
37-
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
38-
type: string
39-
metadata:
40-
type: object
41-
spec:
42-
description: ImageUpdateAutomationSpec defines the desired state of ImageUpdateAutomation
43-
properties:
44-
checkout:
45-
description: Checkout gives the parameters for cloning the git repository,
46-
ready to make changes.
47-
properties:
48-
branch:
49-
description: Branch gives the branch to clone from the git repository.
50-
If missing, it will be left to default; be aware this may give
51-
indeterminate results.
52-
type: string
53-
gitRepositoryRef:
54-
description: GitRepositoryRef refers to the resource giving access
55-
details to a git repository to update files in.
56-
properties:
57-
name:
58-
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
59-
TODO: Add other useful fields. apiVersion, kind, uid?'
60-
type: string
61-
type: object
62-
required:
63-
- gitRepositoryRef
64-
type: object
65-
commit:
66-
description: Commit specifies how to commit to the git repo
67-
properties:
68-
authorEmail:
69-
description: AuthorEmail gives the email to provide when making
70-
a commit
71-
type: string
72-
authorName:
73-
description: AuthorName gives the name to provide when making a
74-
commit
75-
type: string
76-
messageTemplate:
77-
description: MessageTemplate provides a template for the commit
78-
message, into which will be interpolated the details of the change
79-
made.
80-
type: string
81-
required:
82-
- authorEmail
83-
- authorName
84-
type: object
85-
minimumRunInterval:
86-
description: RunInterval gives a lower bound for how often the automation
87-
run should be attempted. Otherwise it will default.
88-
type: string
89-
update:
90-
description: Update gives the specification for how to update the files
91-
in the repository
92-
properties:
93-
setters:
94-
description: Setters if present means update workloads using setters,
95-
via fields marked in the files themselves.
96-
properties:
97-
paths:
98-
description: Paths gives all paths that should be subject to
99-
updates using setters. If missing, the path `.` (the root
100-
of the git repository) is assumed.
101-
items:
102-
type: string
103-
type: array
104-
type: object
105-
type: object
106-
required:
107-
- checkout
108-
- commit
109-
- update
110-
type: object
111-
status:
112-
description: ImageUpdateAutomationStatus defines the observed state of ImageUpdateAutomation
113-
properties:
114-
lastAutomationRunTime:
115-
description: LastAutomationRunTime records the last time the controller
116-
ran this automation through to completion (even if no updates were
117-
made).
118-
format: date-time
119-
type: string
120-
type: object
121-
type: object
122-
version: v1alpha1
12318
versions:
124-
- name: v1alpha1
19+
- additionalPrinterColumns:
20+
- jsonPath: .status.lastAutomationRunTime
21+
name: Last run
22+
type: string
23+
name: v1alpha1
24+
schema:
25+
openAPIV3Schema:
26+
description: ImageUpdateAutomation is the Schema for the imageupdateautomations
27+
API
28+
properties:
29+
apiVersion:
30+
description: 'APIVersion defines the versioned schema of this representation
31+
of an object. Servers should convert recognized schemas to the latest
32+
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
33+
type: string
34+
kind:
35+
description: 'Kind is a string value representing the REST resource this
36+
object represents. Servers may infer this from the endpoint the client
37+
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
38+
type: string
39+
metadata:
40+
type: object
41+
spec:
42+
description: ImageUpdateAutomationSpec defines the desired state of ImageUpdateAutomation
43+
properties:
44+
checkout:
45+
description: Checkout gives the parameters for cloning the git repository,
46+
ready to make changes.
47+
properties:
48+
branch:
49+
description: Branch gives the branch to clone from the git repository.
50+
If missing, it will be left to default; be aware this may give
51+
indeterminate results.
52+
type: string
53+
gitRepositoryRef:
54+
description: GitRepositoryRef refers to the resource giving access
55+
details to a git repository to update files in.
56+
properties:
57+
name:
58+
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
59+
TODO: Add other useful fields. apiVersion, kind, uid?'
60+
type: string
61+
type: object
62+
required:
63+
- gitRepositoryRef
64+
type: object
65+
commit:
66+
description: Commit specifies how to commit to the git repo
67+
properties:
68+
authorEmail:
69+
description: AuthorEmail gives the email to provide when making
70+
a commit
71+
type: string
72+
authorName:
73+
description: AuthorName gives the name to provide when making
74+
a commit
75+
type: string
76+
messageTemplate:
77+
description: MessageTemplate provides a template for the commit
78+
message, into which will be interpolated the details of the
79+
change made.
80+
type: string
81+
required:
82+
- authorEmail
83+
- authorName
84+
type: object
85+
minimumRunInterval:
86+
description: RunInterval gives a lower bound for how often the automation
87+
run should be attempted. Otherwise it will default.
88+
type: string
89+
update:
90+
description: Update gives the specification for how to update the
91+
files in the repository
92+
properties:
93+
setters:
94+
description: Setters if present means update workloads using setters,
95+
via fields marked in the files themselves.
96+
properties:
97+
paths:
98+
description: Paths gives all paths that should be subject
99+
to updates using setters. If missing, the path `.` (the
100+
root of the git repository) is assumed.
101+
items:
102+
type: string
103+
type: array
104+
type: object
105+
type: object
106+
required:
107+
- checkout
108+
- commit
109+
- update
110+
type: object
111+
status:
112+
description: ImageUpdateAutomationStatus defines the observed state of
113+
ImageUpdateAutomation
114+
properties:
115+
lastAutomationRunTime:
116+
description: LastAutomationRunTime records the last time the controller
117+
ran this automation through to completion (even if no updates were
118+
made).
119+
format: date-time
120+
type: string
121+
type: object
122+
type: object
125123
served: true
126124
storage: true
125+
subresources:
126+
status: {}
127127
status:
128128
acceptedNames:
129129
kind: ""

0 commit comments

Comments
 (0)