Skip to content
This repository was archived by the owner on Feb 11, 2025. It is now read-only.

Commit f68969a

Browse files
committed
update generated CRDs to v1
Signed-off-by: Marques Johansson <mjohansson@equinix.com>
1 parent b9b7ae3 commit f68969a

7 files changed

+724
-727
lines changed

go.mod

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,18 @@ require (
77
github.com/crossplane/crossplane-tools v0.0.0-20210320162312-1baca298c527
88
github.com/google/go-cmp v0.5.2
99
github.com/kr/text v0.2.0 // indirect
10+
github.com/mattn/go-isatty v0.0.12 // indirect
1011
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e // indirect
1112
github.com/packethost/packngo v0.15.0
1213
github.com/pkg/errors v0.9.1
14+
golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c // indirect
1315
golang.org/x/tools v0.0.0-20200916195026-c9a70fc28ce3 // indirect
1416
gopkg.in/alecthomas/kingpin.v2 v2.2.6
1517
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f // indirect
18+
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
1619
honnef.co/go/tools v0.0.1-2020.1.5 // indirect
1720
k8s.io/api v0.20.1
1821
k8s.io/apimachinery v0.20.2
1922
sigs.k8s.io/controller-runtime v0.8.0
2023
sigs.k8s.io/controller-tools v0.3.0
21-
sigs.k8s.io/kind v0.11.1 // indirect
2224
)

go.sum

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@ github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRF
5757
github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
5858
github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d h1:UQZhZ2O0vMHr2cI+DC1Mbh0TJxzA3RcLoMsFw+aXw7E=
5959
github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho=
60-
github.com/alessio/shellescape v1.4.1 h1:V7yhSDDn8LP4lc4jS8pFkt0zCnzVJlG5JXy9BVKJUX0=
61-
github.com/alessio/shellescape v1.4.1/go.mod h1:PZAiSCk0LJaZkiCSkPv8qIobYglO3FPpyFjDCtHLS30=
6260
github.com/andreyvit/diff v0.0.0-20170406064948-c7f18ee00883/go.mod h1:rCTlJbsFo29Kk6CurOXKm700vrz8f0KW0JNfpkRJY/8=
6361
github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o=
6462
github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8=
@@ -136,8 +134,6 @@ github.com/evanphx/json-patch v4.2.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLi
136134
github.com/evanphx/json-patch v4.5.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk=
137135
github.com/evanphx/json-patch v4.9.0+incompatible h1:kLcOMZeuLAJvL2BPWLMIj5oaZQobrkAqrL+WFZwQses=
138136
github.com/evanphx/json-patch v4.9.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk=
139-
github.com/evanphx/json-patch/v5 v5.2.0 h1:8ozOH5xxoMYDt5/u+yMTsVXydVCbTORFnOOoq2lumco=
140-
github.com/evanphx/json-patch/v5 v5.2.0/go.mod h1:G79N1coSVB93tBe7j6PhzjmR3/2VvlbKOFpnXhI9Bw4=
141137
github.com/fatih/color v1.7.0 h1:DkWD4oS2D8LGGgTQ6IvwJJXSL5Vp2ffcQg58nFV38Ys=
142138
github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
143139
github.com/form3tech-oss/jwt-go v3.2.2+incompatible/go.mod h1:pbq4aXjuKjdthFRnoDwaVPLA+WlJuPGy+QneDUgJi2k=
@@ -319,7 +315,6 @@ github.com/imdario/mergo v0.3.10 h1:6q5mVkdH/vYmqngx7kZQTjJ5HRsx+ImorDIEQ+beJgc=
319315
github.com/imdario/mergo v0.3.10/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA=
320316
github.com/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM=
321317
github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8=
322-
github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI=
323318
github.com/jmespath/go-jmespath v0.0.0-20160202185014-0b12d6b521d8/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k=
324319
github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo=
325320
github.com/json-iterator/go v0.0.0-20180612202835-f2b4162afba3/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU=
@@ -358,7 +353,6 @@ github.com/mattn/go-colorable v0.1.2 h1:/bC9yWikZXAL9uJdulbSfyVNIR3n3trXl+v8+1sx
358353
github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE=
359354
github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4=
360355
github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4=
361-
github.com/mattn/go-isatty v0.0.8 h1:HLtExJ+uU2HOZ+wI0Tt5DtUDrx8yhUqDcp7fYERX4CE=
362356
github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s=
363357
github.com/mattn/go-isatty v0.0.12 h1:wuysRhFDzyxgEmMf5xjvJ2M9dZoWAXNNr5LSBS7uHXY=
364358
github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU=
@@ -414,8 +408,6 @@ github.com/packethost/packngo v0.15.0/go.mod h1:YrtUNN9IRjjqN6zK+cy2IYoi3EjHfoWT
414408
github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc=
415409
github.com/pborman/uuid v1.2.0/go.mod h1:X/NO0urCmaxf9VXbdlT7C2Yzkj2IKimNn4k+gtPdI/k=
416410
github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic=
417-
github.com/pelletier/go-toml v1.8.1 h1:1Nf83orprkJyknT6h7zbuEGUEjcyVlCxSUGTENmNCRM=
418-
github.com/pelletier/go-toml v1.8.1/go.mod h1:T2/BmBdy8dvIRq1a/8aqjN41wvWlN4lrapLU/GW4pbc=
419411
github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR/tNboyR3/BZd58JJSHlUSCU=
420412
github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
421413
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
@@ -678,7 +670,6 @@ golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7w
678670
golang.org/x/sys v0.0.0-20200519105757-fe76b779f299/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
679671
golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
680672
golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
681-
golang.org/x/sys v0.0.0-20201112073958-5cba982894dd h1:5CtCZbICpIOFdgO940moixOPjc0178IU44m4EjOO5IY=
682673
golang.org/x/sys v0.0.0-20201112073958-5cba982894dd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
683674
golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c h1:VwygUrnw9jn88c4u8GD3rZQbqrP/tgas88tPUbBxQrk=
684675
golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
@@ -841,7 +832,6 @@ gopkg.in/yaml.v2 v2.3.0 h1:clyUAQHOM3G0M3f5vQj7LuJrETvjVot3Z5el9nffUtU=
841832
gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
842833
gopkg.in/yaml.v3 v3.0.0-20190905181640-827449938966/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
843834
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
844-
gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776 h1:tQIYjPdBoyREyB9XMu+nnTclpTYkz2zFM+lzLJFO4gQ=
845835
gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
846836
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo=
847837
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
@@ -865,7 +855,6 @@ k8s.io/apiextensions-apiserver v0.20.1 h1:ZrXQeslal+6zKM/HjDXLzThlz/vPSxrfK3OqL8
865855
k8s.io/apiextensions-apiserver v0.20.1/go.mod h1:ntnrZV+6a3dB504qwC5PN/Yg9PBiDNt1EVqbW2kORVk=
866856
k8s.io/apimachinery v0.0.0-20190913080033-27d36303b655/go.mod h1:nL6pwRT8NgfF8TT68DBI8uEePRt89cSvoXUVqbkWHq4=
867857
k8s.io/apimachinery v0.18.2/go.mod h1:9SnR/e11v5IbyPCGbvJViimtJ0SwHG4nfZFjU77ftcA=
868-
k8s.io/apimachinery v0.20.1 h1:LAhz8pKbgR8tUwn7boK+b2HZdt7MiTu2mkYtFMUjTRQ=
869858
k8s.io/apimachinery v0.20.1/go.mod h1:WlLqWAHZGg07AeltaI0MV5uk1Omp8xaN0JGLY6gkRpU=
870859
k8s.io/apimachinery v0.20.2 h1:hFx6Sbt1oG0n6DZ+g4bFt5f6BoMkOjKWsQFu077M3Vg=
871860
k8s.io/apimachinery v0.20.2/go.mod h1:WlLqWAHZGg07AeltaI0MV5uk1Omp8xaN0JGLY6gkRpU=
@@ -920,8 +909,6 @@ sigs.k8s.io/controller-runtime v0.8.0/go.mod h1:v9Lbj5oX443uR7GXYY46E0EE2o7k2YxQ
920909
sigs.k8s.io/controller-tools v0.2.4/go.mod h1:m/ztfQNocGYBgTTCmFdnK94uVvgxeZeE3LtJvd/jIzA=
921910
sigs.k8s.io/controller-tools v0.3.0 h1:y3YD99XOyWaXkiF1kd41uRvfp/64teWcrEZFuHxPhJ4=
922911
sigs.k8s.io/controller-tools v0.3.0/go.mod h1:enhtKGfxZD1GFEoMgP8Fdbu+uKQ/cq1/WGJhdVChfvI=
923-
sigs.k8s.io/kind v0.11.1 h1:pVzOkhUwMBrCB0Q/WllQDO3v14Y+o2V0tFgjTqIUjwA=
924-
sigs.k8s.io/kind v0.11.1/go.mod h1:fRpgVhtqAWrtLB9ED7zQahUimpUXuG/iHT88xYqEGIA=
925912
sigs.k8s.io/structured-merge-diff v0.0.0-20190525122527-15d366b2352e/go.mod h1:wWxsB5ozmmv/SG7nM11ayaAW51xMvak/t1r0CSlcokI=
926913
sigs.k8s.io/structured-merge-diff v0.0.0-20190817042607-6149e4549fca h1:6dsH6AYQWbyZmtttJNe8Gq1cXOeS1BdV3eW37zHilAQ=
927914
sigs.k8s.io/structured-merge-diff v0.0.0-20190817042607-6149e4549fca/go.mod h1:IIgPezJWb76P0hotTxzDbWsMYB8APh18qZnxkomBpxA=

package/crds/metal.equinix.com_providerconfigs.yaml

Lines changed: 114 additions & 115 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,11 @@
1-
apiVersion: apiextensions.k8s.io/v1beta1
1+
apiVersion: apiextensions.k8s.io/v1
22
kind: CustomResourceDefinition
33
metadata:
44
annotations:
55
controller-gen.kubebuilder.io/version: v0.3.0
66
creationTimestamp: null
77
name: providerconfigs.metal.equinix.com
88
spec:
9-
additionalPrinterColumns:
10-
- JSONPath: .metadata.creationTimestamp
11-
name: AGE
12-
type: date
13-
- JSONPath: .spec.credentialsSecretRef.name
14-
name: SECRET-NAME
15-
priority: 1
16-
type: string
179
group: metal.equinix.com
1810
names:
1911
categories:
@@ -24,122 +16,129 @@ spec:
2416
plural: providerconfigs
2517
singular: providerconfig
2618
scope: Cluster
27-
subresources:
28-
status: {}
29-
validation:
30-
openAPIV3Schema:
31-
description: A ProviderConfig configures a Template provider.
32-
properties:
33-
apiVersion:
34-
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/sig-architecture/api-conventions.md#resources'
35-
type: string
36-
kind:
37-
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/sig-architecture/api-conventions.md#types-kinds'
38-
type: string
39-
metadata:
40-
type: object
41-
spec:
42-
description: A ProviderConfigSpec defines the desired state of a ProviderConfig.
43-
properties:
44-
credentials:
45-
description: Credentials required to authenticate to this provider.
46-
properties:
47-
env:
48-
description: Env is a reference to an environment variable that contains credentials that must be used to connect to the provider.
19+
versions:
20+
- additionalPrinterColumns:
21+
- jsonPath: .metadata.creationTimestamp
22+
name: AGE
23+
type: date
24+
- jsonPath: .spec.credentialsSecretRef.name
25+
name: SECRET-NAME
26+
priority: 1
27+
type: string
28+
name: v1beta1
29+
schema:
30+
openAPIV3Schema:
31+
description: A ProviderConfig configures a Template provider.
32+
properties:
33+
apiVersion:
34+
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/sig-architecture/api-conventions.md#resources'
35+
type: string
36+
kind:
37+
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/sig-architecture/api-conventions.md#types-kinds'
38+
type: string
39+
metadata:
40+
type: object
41+
spec:
42+
description: A ProviderConfigSpec defines the desired state of a ProviderConfig.
43+
properties:
44+
credentials:
45+
description: Credentials required to authenticate to this provider.
46+
properties:
47+
env:
48+
description: Env is a reference to an environment variable that contains credentials that must be used to connect to the provider.
49+
properties:
50+
name:
51+
description: Name is the name of an environment variable.
52+
type: string
53+
required:
54+
- name
55+
type: object
56+
fs:
57+
description: Fs is a reference to a filesystem location that contains credentials that must be used to connect to the provider.
58+
properties:
59+
path:
60+
description: Path is a filesystem path.
61+
type: string
62+
required:
63+
- path
64+
type: object
65+
secretRef:
66+
description: A SecretRef is a reference to a secret key that contains the credentials that must be used to connect to the provider.
67+
properties:
68+
key:
69+
description: The key to select.
70+
type: string
71+
name:
72+
description: Name of the secret.
73+
type: string
74+
namespace:
75+
description: Namespace of the secret.
76+
type: string
77+
required:
78+
- key
79+
- name
80+
- namespace
81+
type: object
82+
source:
83+
description: Source of the provider credentials.
84+
enum:
85+
- None
86+
- Secret
87+
- Environment
88+
- Filesystem
89+
type: string
90+
required:
91+
- source
92+
type: object
93+
projectID:
94+
description: ProjectID is the Project ID (UUID) of this Equinix Metal Provider. If this is not specified it must be included in the Provider secret (JSON field providerID).
95+
type: string
96+
required:
97+
- credentials
98+
type: object
99+
status:
100+
description: A ProviderConfigStatus reflects the observed state of a ProviderConfig.
101+
properties:
102+
conditions:
103+
description: Conditions of the resource.
104+
items:
105+
description: A Condition that may apply to a resource.
49106
properties:
50-
name:
51-
description: Name is the name of an environment variable.
107+
lastTransitionTime:
108+
description: LastTransitionTime is the last time this condition transitioned from one status to another.
109+
format: date-time
52110
type: string
53-
required:
54-
- name
55-
type: object
56-
fs:
57-
description: Fs is a reference to a filesystem location that contains credentials that must be used to connect to the provider.
58-
properties:
59-
path:
60-
description: Path is a filesystem path.
111+
message:
112+
description: A Message containing details about this condition's last transition from one status to another, if any.
61113
type: string
62-
required:
63-
- path
64-
type: object
65-
secretRef:
66-
description: A SecretRef is a reference to a secret key that contains the credentials that must be used to connect to the provider.
67-
properties:
68-
key:
69-
description: The key to select.
114+
reason:
115+
description: A Reason for this condition's last transition from one status to another.
70116
type: string
71-
name:
72-
description: Name of the secret.
117+
status:
118+
description: Status of this condition; is it currently True, False, or Unknown?
73119
type: string
74-
namespace:
75-
description: Namespace of the secret.
120+
type:
121+
description: Type of this condition. At most one of each condition type may apply to a resource at any point in time.
76122
type: string
77123
required:
78-
- key
79-
- name
80-
- namespace
124+
- lastTransitionTime
125+
- reason
126+
- status
127+
- type
81128
type: object
82-
source:
83-
description: Source of the provider credentials.
84-
enum:
85-
- None
86-
- Secret
87-
- Environment
88-
- Filesystem
89-
type: string
90-
required:
91-
- source
92-
type: object
93-
projectID:
94-
description: ProjectID is the Project ID (UUID) of this Equinix Metal Provider. If this is not specified it must be included in the Provider secret (JSON field providerID).
95-
type: string
96-
required:
97-
- credentials
98-
type: object
99-
status:
100-
description: A ProviderConfigStatus reflects the observed state of a ProviderConfig.
101-
properties:
102-
conditions:
103-
description: Conditions of the resource.
104-
items:
105-
description: A Condition that may apply to a resource.
106-
properties:
107-
lastTransitionTime:
108-
description: LastTransitionTime is the last time this condition transitioned from one status to another.
109-
format: date-time
110-
type: string
111-
message:
112-
description: A Message containing details about this condition's last transition from one status to another, if any.
113-
type: string
114-
reason:
115-
description: A Reason for this condition's last transition from one status to another.
116-
type: string
117-
status:
118-
description: Status of this condition; is it currently True, False, or Unknown?
119-
type: string
120-
type:
121-
description: Type of this condition. At most one of each condition type may apply to a resource at any point in time.
122-
type: string
123-
required:
124-
- lastTransitionTime
125-
- reason
126-
- status
127-
- type
128-
type: object
129-
type: array
130-
users:
131-
description: Users of this provider configuration.
132-
format: int64
133-
type: integer
134-
type: object
135-
required:
136-
- spec
137-
type: object
138-
version: v1beta1
139-
versions:
140-
- name: v1beta1
129+
type: array
130+
users:
131+
description: Users of this provider configuration.
132+
format: int64
133+
type: integer
134+
type: object
135+
required:
136+
- spec
137+
type: object
141138
served: true
142139
storage: true
140+
subresources:
141+
status: {}
143142
status:
144143
acceptedNames:
145144
kind: ""

0 commit comments

Comments
 (0)