Skip to content

Commit a3521b7

Browse files
committed
fix: removed the preservedversion from the crd definitions (#1734)
1 parent 45fe104 commit a3521b7

File tree

10 files changed

+4567
-4322
lines changed

10 files changed

+4567
-4322
lines changed

.github/workflows/e2e.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,11 @@ jobs:
103103
- name: Install Kubectl
104104
uses: azure/setup-kubectl@v4
105105
with:
106-
version: v1.28.0
106+
version: v1.34
107107

108108
- name: Install Kind
109109
run: |
110-
curl -sL https://github.com/kubernetes-sigs/kind/releases/download/v0.20.0/kind-linux-amd64 -o kind
110+
curl -sL https://github.com/kubernetes-sigs/kind/releases/download/v0.31.0/kind-linux-amd64 -o kind
111111
chmod +x kind
112112
kind create cluster
113113

charts/terranetes-controller/crds/terraform.appvia.io_cloudresources.yaml

Lines changed: 447 additions & 423 deletions
Large diffs are not rendered by default.

charts/terranetes-controller/crds/terraform.appvia.io_configurations.yaml

Lines changed: 319 additions & 306 deletions
Large diffs are not rendered by default.
Lines changed: 143 additions & 138 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
apiVersion: apiextensions.k8s.io/v1
23
kind: CustomResourceDefinition
34
metadata:
@@ -8,155 +9,159 @@ spec:
89
group: terraform.appvia.io
910
names:
1011
categories:
11-
- terraform
12+
- terraform
1213
kind: Context
1314
listKind: ContextList
1415
plural: contexts
1516
singular: context
1617
scope: Cluster
1718
versions:
18-
- additionalPrinterColumns:
19-
- jsonPath: .metadata.creationTimestamp
20-
name: Age
21-
type: date
22-
name: v1alpha1
23-
schema:
24-
openAPIV3Schema:
25-
description: Context is the schema for the context type
26-
properties:
27-
apiVersion:
28-
description: |-
29-
APIVersion defines the versioned schema of this representation of an object.
30-
Servers should convert recognized schemas to the latest internal value, and
31-
may reject unrecognized values.
32-
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
33-
type: string
34-
kind:
35-
description: |-
36-
Kind is a string value representing the REST resource this object represents.
37-
Servers may infer this from the endpoint the client submits requests to.
38-
Cannot be updated.
39-
In CamelCase.
40-
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
41-
type: string
42-
metadata:
43-
type: object
44-
spec:
45-
description: ContextSpec defines the desired state for a context
46-
properties:
47-
variables:
48-
additionalProperties:
49-
type: object
50-
x-kubernetes-preserve-unknown-fields: true
51-
description: |-
52-
Variables is a list of variables which can be used globally by Context resources.
53-
The structure of the variables is a map of key/value pairs, which MUST have both
54-
a description and a value.
19+
- additionalPrinterColumns:
20+
- jsonPath: .metadata.creationTimestamp
21+
name: Age
22+
type: date
23+
name: v1alpha1
24+
schema:
25+
openAPIV3Schema:
26+
description: Context is the schema for the context type
27+
properties:
28+
apiVersion:
29+
description: |-
30+
APIVersion defines the versioned schema of this representation of an object.
31+
Servers should convert recognized schemas to the latest internal value, and
32+
may reject unrecognized values.
33+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
34+
type: string
35+
kind:
36+
description: |-
37+
Kind is a string value representing the REST resource this object represents.
38+
Servers may infer this from the endpoint the client submits requests to.
39+
Cannot be updated.
40+
In CamelCase.
41+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
42+
type: string
43+
metadata:
44+
type: object
45+
spec:
46+
description: ContextSpec defines the desired state for a context
47+
properties:
48+
variables:
49+
additionalProperties:
5550
type: object
56-
required:
57-
- variables
58-
type: object
59-
status:
60-
description: ContextStatus defines the observed state of a terraform
61-
properties:
62-
conditions:
63-
description: Conditions represents the observations of the resource's current state.
64-
items:
65-
description: Condition is the current observed condition of some aspect of a resource
66-
properties:
67-
detail:
68-
description: |-
69-
Detail is any additional human-readable detail to understand this condition, for example,
70-
the full underlying error which caused an issue
71-
type: string
72-
lastTransitionTime:
73-
description: |-
74-
LastTransitionTime is the last time the condition transitioned from one status to another.
75-
This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
76-
format: date-time
77-
type: string
78-
message:
79-
description: |-
80-
Message is a human readable message indicating details about the transition.
81-
This may be an empty string.
82-
maxLength: 32768
83-
type: string
84-
name:
85-
description: Name is a human-readable name for this condition.
86-
minLength: 1
87-
type: string
88-
observedGeneration:
89-
description: |-
90-
ObservedGeneration represents the .metadata.generation that the condition was set based upon.
91-
For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
92-
with respect to the current state of the instance.
93-
format: int64
94-
minimum: 0
95-
type: integer
96-
reason:
97-
description: |-
98-
Reason contains a programmatic identifier indicating the reason for the condition's last transition.
99-
Producers of specific condition types may define expected values and meanings for this field,
100-
and whether the values are considered a guaranteed API.
101-
The value should be a CamelCase string.
102-
This field may not be empty.
103-
maxLength: 1024
104-
minLength: 1
105-
pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
106-
type: string
107-
status:
108-
description: Status of the condition, one of True, False, Unknown.
109-
enum:
110-
- "True"
111-
- "False"
112-
- Unknown
113-
type: string
114-
type:
115-
description: Type of condition in CamelCase or in foo.example.com/CamelCase.
116-
maxLength: 316
117-
pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
118-
type: string
119-
required:
120-
- lastTransitionTime
121-
- name
122-
- reason
123-
- status
124-
- type
125-
type: object
126-
type: array
127-
x-kubernetes-list-map-keys:
128-
- type
129-
x-kubernetes-list-type: map
130-
lastReconcile:
131-
description: LastReconcile describes the generation and time of the last reconciliation
51+
x-kubernetes-preserve-unknown-fields: true
52+
description: |-
53+
Variables is a list of variables which can be used globally by Context resources.
54+
The structure of the variables is a map of key/value pairs, which MUST have both
55+
a description and a value.
56+
type: object
57+
required:
58+
- variables
59+
type: object
60+
status:
61+
description: ContextStatus defines the observed state of a terraform
62+
properties:
63+
conditions:
64+
description: Conditions represents the observations of the resource's
65+
current state.
66+
items:
67+
description: Condition is the current observed condition of some
68+
aspect of a resource
13269
properties:
133-
generation:
134-
description: Generation is the generation reconciled on the last reconciliation
135-
format: int64
136-
type: integer
137-
time:
138-
description: Time is the last time the resource was reconciled
70+
detail:
71+
description: |-
72+
Detail is any additional human-readable detail to understand this condition, for example,
73+
the full underlying error which caused an issue
74+
type: string
75+
lastTransitionTime:
76+
description: |-
77+
LastTransitionTime is the last time the condition transitioned from one status to another.
78+
This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
13979
format: date-time
14080
type: string
141-
type: object
142-
lastSuccess:
143-
description: |-
144-
LastSuccess descibes the generation and time of the last reconciliation which resulted in
145-
a Success status
146-
properties:
147-
generation:
148-
description: Generation is the generation reconciled on the last reconciliation
81+
message:
82+
description: |-
83+
Message is a human readable message indicating details about the transition.
84+
This may be an empty string.
85+
maxLength: 32768
86+
type: string
87+
name:
88+
description: Name is a human-readable name for this condition.
89+
minLength: 1
90+
type: string
91+
observedGeneration:
92+
description: |-
93+
ObservedGeneration represents the .metadata.generation that the condition was set based upon.
94+
For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
95+
with respect to the current state of the instance.
14996
format: int64
97+
minimum: 0
15098
type: integer
151-
time:
152-
description: Time is the last time the resource was reconciled
153-
format: date-time
99+
reason:
100+
description: |-
101+
Reason contains a programmatic identifier indicating the reason for the condition's last transition.
102+
Producers of specific condition types may define expected values and meanings for this field,
103+
and whether the values are considered a guaranteed API.
104+
The value should be a CamelCase string.
105+
This field may not be empty.
106+
maxLength: 1024
107+
minLength: 1
108+
pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
109+
type: string
110+
status:
111+
description: Status of the condition, one of True, False, Unknown.
112+
enum:
113+
- "True"
114+
- "False"
115+
- Unknown
116+
type: string
117+
type:
118+
description: Type of condition in CamelCase or in foo.example.com/CamelCase.
119+
maxLength: 316
120+
pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
154121
type: string
122+
required:
123+
- lastTransitionTime
124+
- name
125+
- reason
126+
- status
127+
- type
155128
type: object
156-
type: object
157-
type: object
158-
served: true
159-
storage: true
160-
subresources:
161-
status: {}
162-
preserveUnknownFields: false
129+
type: array
130+
x-kubernetes-list-map-keys:
131+
- type
132+
x-kubernetes-list-type: map
133+
lastReconcile:
134+
description: LastReconcile describes the generation and time of the
135+
last reconciliation
136+
properties:
137+
generation:
138+
description: Generation is the generation reconciled on the last
139+
reconciliation
140+
format: int64
141+
type: integer
142+
time:
143+
description: Time is the last time the resource was reconciled
144+
format: date-time
145+
type: string
146+
type: object
147+
lastSuccess:
148+
description: |-
149+
LastSuccess descibes the generation and time of the last reconciliation which resulted in
150+
a Success status
151+
properties:
152+
generation:
153+
description: Generation is the generation reconciled on the last
154+
reconciliation
155+
format: int64
156+
type: integer
157+
time:
158+
description: Time is the last time the resource was reconciled
159+
format: date-time
160+
type: string
161+
type: object
162+
type: object
163+
type: object
164+
served: true
165+
storage: true
166+
subresources:
167+
status: {}

0 commit comments

Comments
 (0)