Skip to content

Commit ef9d509

Browse files
authored
Update dependencies to publish SiteInfo (#130)
Signed-off-by: 1gtm <1gtm@appscode.com>
1 parent 161aab3 commit ef9d509

File tree

6 files changed

+190
-18
lines changed

6 files changed

+190
-18
lines changed

go.mod

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ go 1.15
55
require (
66
github.com/pkg/errors v0.9.1
77
github.com/spf13/cobra v1.1.3
8-
golang.org/x/crypto v0.0.0-20210314154223-e6e6c4f2bb5b // indirect
98
gomodules.xyz/kglog v0.0.1
109
gomodules.xyz/runtime v0.2.0
1110
gomodules.xyz/x v0.0.8
@@ -16,9 +15,8 @@ require (
1615
k8s.io/component-base v0.21.1
1716
k8s.io/kubectl v0.21.0
1817
kmodules.xyz/client-go v0.0.0-20210928133955-8df5bb467db6
19-
kmodules.xyz/custom-resources v0.0.0-20211007064058-70fba50e58a4
20-
kmodules.xyz/monitoring-agent-api v0.0.0-20210928135619-38ca075a2dbd // indirect
21-
kubevault.dev/apimachinery v0.5.1-0.20210928181518-3f0dfa49c80b
18+
kmodules.xyz/custom-resources v0.0.0-20211007080833-72bd9e8cae6e
19+
kubevault.dev/apimachinery v0.5.1-0.20211007072029-11f1fc548ffe
2220
)
2321

2422
replace bitbucket.org/ww/goautoneg => gomodules.xyz/goautoneg v0.0.0-20120707110453-a547fc61f48d

go.sum

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -838,23 +838,20 @@ k8s.io/metrics v0.21.0/go.mod h1:L3Ji9EGPP1YBbfm9sPfEXSpnj8i24bfQbAFAsW0NueQ=
838838
k8s.io/utils v0.0.0-20201110183641-67b214c5f920 h1:CbnUZsM497iRC5QMVkHwyl8s2tB3g7yaSHkYPkpgelw=
839839
k8s.io/utils v0.0.0-20201110183641-67b214c5f920/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA=
840840
kmodules.xyz/client-go v0.0.0-20210617233340-13d22e91512b/go.mod h1:A6GAK6xP5zBuWK6A/vUkkjKzcuywkms7fIxRf5wblO4=
841-
kmodules.xyz/client-go v0.0.0-20210715065708-d4f0cc74ead1/go.mod h1:E/vGngai00UtVwP8R4PWpPUBF/EZa6Ub9WS5+tVcs4M=
842841
kmodules.xyz/client-go v0.0.0-20210831030638-b1d662179991/go.mod h1:0gkPeALtYjB27OHt4rd6+ZmMgoVTHVLtEJQeU23/gtA=
843-
kmodules.xyz/client-go v0.0.0-20210921150324-f005c6dfcb32/go.mod h1:0gkPeALtYjB27OHt4rd6+ZmMgoVTHVLtEJQeU23/gtA=
844842
kmodules.xyz/client-go v0.0.0-20210928133955-8df5bb467db6 h1:o+SymmN26C8bqh1nLTFjT0UdOtAYrTLbp6v49iRe5MY=
845843
kmodules.xyz/client-go v0.0.0-20210928133955-8df5bb467db6/go.mod h1:0gkPeALtYjB27OHt4rd6+ZmMgoVTHVLtEJQeU23/gtA=
846844
kmodules.xyz/crd-schema-fuzz v0.0.0-20210618002152-fae23aef5fb4/go.mod h1:IIkUctlfoptoci0BOrsUf8ya+MOG5uaeh1PE4uzaIbA=
847-
kmodules.xyz/custom-resources v0.0.0-20210829135624-c63be82e13c0/go.mod h1:VYtz1fgHgLqCk+sdSUGBClfZfJ6z4873wB5MYOXxpS8=
848-
kmodules.xyz/custom-resources v0.0.0-20211007064058-70fba50e58a4 h1:mRmwqv3kQTzL9/kccHztRJFZU2Ks2MHhIxBJi3yQi6w=
849845
kmodules.xyz/custom-resources v0.0.0-20211007064058-70fba50e58a4/go.mod h1:pGabego8q4oi/2sNjhdtFkgVaVw4AyGv14GO6VtAjTw=
850-
kmodules.xyz/monitoring-agent-api v0.0.0-20210902163558-0323c6034f70/go.mod h1:08pBqfEuy29EjhaMrHB2XFy2iekoFi7AjaXcJS+xAck=
846+
kmodules.xyz/custom-resources v0.0.0-20211007080833-72bd9e8cae6e h1:0IEUFAJPgwPx3+Zb1BMcHLywKhJtXMk6YCHNsjWJwYQ=
847+
kmodules.xyz/custom-resources v0.0.0-20211007080833-72bd9e8cae6e/go.mod h1:pGabego8q4oi/2sNjhdtFkgVaVw4AyGv14GO6VtAjTw=
851848
kmodules.xyz/monitoring-agent-api v0.0.0-20210928135619-38ca075a2dbd h1:G1HkRXnQx2H63HFRrY+4oWPJg78W2RnzepJqjm8KT/M=
852849
kmodules.xyz/monitoring-agent-api v0.0.0-20210928135619-38ca075a2dbd/go.mod h1:08pBqfEuy29EjhaMrHB2XFy2iekoFi7AjaXcJS+xAck=
853850
kmodules.xyz/offshoot-api v0.0.0-20210829122105-6f4d481b0c61 h1:J56UGmRFddu6tERRd8BELmP5QbXxievzb+6vAjFptiM=
854851
kmodules.xyz/offshoot-api v0.0.0-20210829122105-6f4d481b0c61/go.mod h1:3LECbAL3FgbyK80NP3V3Pmiuo/a3hFWg/PR6SPFhTns=
855852
kmodules.xyz/resource-metrics v0.0.5/go.mod h1:6Dv63HDgp83DhA+lZNB7GIQR6PLjNrYW6ghQKioQzII=
856-
kubevault.dev/apimachinery v0.5.1-0.20210928181518-3f0dfa49c80b h1:Ns4HfLbOAg+77JS37Rt0Pet79Lyh0rhQsGVT0vc8QSw=
857-
kubevault.dev/apimachinery v0.5.1-0.20210928181518-3f0dfa49c80b/go.mod h1:aGIAaCWQtYhv6BeFt8IdgIIdbFHadK/U5ElG7lu3TFk=
853+
kubevault.dev/apimachinery v0.5.1-0.20211007072029-11f1fc548ffe h1:9/qN0SKLVmG01AGv2JoEgVV67y5SwuRccms1wdXfMd0=
854+
kubevault.dev/apimachinery v0.5.1-0.20211007072029-11f1fc548ffe/go.mod h1:VMZabHIDK/ygzQr2NqbQXHVLQYwQu9D2/MoTCd1TrQY=
858855
rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0=
859856
rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA=
860857
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.0.15/go.mod h1:LEScyzhFmoF5pso/YSeBstl57mOzx9xlU9n85RGrDQg=

vendor/kmodules.xyz/custom-resources/apis/auditor/v1alpha1/openapi_generated.go

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/kmodules.xyz/custom-resources/apis/auditor/v1alpha1/siteinfo_types.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,13 @@ const (
2828
ResourceSiteInfos = "siteinfos"
2929
)
3030

31+
// SiteInfo captures information of a product deployment site.
32+
33+
// +k8s:openapi-gen=true
3134
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
3235

33-
// SiteInfo captures information of a product deployment site.
36+
// +kubebuilder:object:root=true
37+
// +kubebuilder:resource:path=siteinfos,singular=siteinfo,scope=Cluster,categories={auditor,appscode,all}
3438
type SiteInfo struct {
3539
metav1.TypeMeta `json:",inline"`
3640
metav1.ObjectMeta `json:"metadata,omitempty"`
Lines changed: 176 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,176 @@
1+
2+
---
3+
apiVersion: apiextensions.k8s.io/v1
4+
kind: CustomResourceDefinition
5+
metadata:
6+
creationTimestamp: null
7+
name: siteinfos.auditor.appscode.com
8+
spec:
9+
group: auditor.appscode.com
10+
names:
11+
categories:
12+
- auditor
13+
- appscode
14+
- all
15+
kind: SiteInfo
16+
listKind: SiteInfoList
17+
plural: siteinfos
18+
singular: siteinfo
19+
scope: Cluster
20+
versions:
21+
- name: v1alpha1
22+
schema:
23+
openAPIV3Schema:
24+
properties:
25+
apiVersion:
26+
description: 'APIVersion defines the versioned schema of this representation
27+
of an object. Servers should convert recognized schemas to the latest
28+
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
29+
type: string
30+
kind:
31+
description: 'Kind is a string value representing the REST resource this
32+
object represents. Servers may infer this from the endpoint the client
33+
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
34+
type: string
35+
kubernetes:
36+
properties:
37+
clusterName:
38+
description: https://github.com/kmodules/client-go/blob/master/tools/clusterid/lib.go
39+
type: string
40+
clusterUID:
41+
type: string
42+
controlPlane:
43+
description: https://github.com/kmodules/client-go/blob/kubernetes-1.16.3/tools/analytics/analytics.go#L66
44+
properties:
45+
dnsNames:
46+
items:
47+
type: string
48+
type: array
49+
emailAddresses:
50+
items:
51+
type: string
52+
type: array
53+
ipAddresses:
54+
items:
55+
type: string
56+
type: array
57+
notAfter:
58+
format: date-time
59+
type: string
60+
notBefore:
61+
format: date-time
62+
type: string
63+
uris:
64+
items:
65+
type: string
66+
type: array
67+
required:
68+
- notAfter
69+
- notBefore
70+
type: object
71+
nodeStats:
72+
properties:
73+
allocatable:
74+
additionalProperties:
75+
anyOf:
76+
- type: integer
77+
- type: string
78+
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
79+
x-kubernetes-int-or-string: true
80+
description: Allocatable represents the resources of a node that
81+
are available for scheduling. Defaults to Capacity.
82+
type: object
83+
capacity:
84+
additionalProperties:
85+
anyOf:
86+
- type: integer
87+
- type: string
88+
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
89+
x-kubernetes-int-or-string: true
90+
description: 'Capacity represents the total resources of a node.
91+
More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity'
92+
type: object
93+
count:
94+
type: integer
95+
type: object
96+
version:
97+
description: 'Info contains versioning information. TODO: Add []string
98+
of api versions supported? It''s still unclear how we''ll want to
99+
distribute that information.'
100+
properties:
101+
buildDate:
102+
type: string
103+
compiler:
104+
type: string
105+
gitCommit:
106+
type: string
107+
gitTreeState:
108+
type: string
109+
gitVersion:
110+
type: string
111+
goVersion:
112+
type: string
113+
major:
114+
type: string
115+
minor:
116+
type: string
117+
platform:
118+
type: string
119+
required:
120+
- buildDate
121+
- compiler
122+
- gitCommit
123+
- gitTreeState
124+
- gitVersion
125+
- goVersion
126+
- major
127+
- minor
128+
- platform
129+
type: object
130+
required:
131+
- nodeStats
132+
type: object
133+
metadata:
134+
type: object
135+
product:
136+
properties:
137+
licenseID:
138+
type: string
139+
productName:
140+
description: This has been renamed to Features
141+
type: string
142+
productOwnerName:
143+
type: string
144+
productOwnerUID:
145+
type: string
146+
productUID:
147+
type: string
148+
version:
149+
properties:
150+
commitHash:
151+
type: string
152+
commitTimestamp:
153+
type: string
154+
compiler:
155+
type: string
156+
gitBranch:
157+
type: string
158+
gitTag:
159+
type: string
160+
goVersion:
161+
type: string
162+
platform:
163+
type: string
164+
version:
165+
type: string
166+
versionStrategy:
167+
type: string
168+
type: object
169+
required:
170+
- version
171+
type: object
172+
required:
173+
- kubernetes
174+
type: object
175+
served: true
176+
storage: true

vendor/modules.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,6 @@ go.starlark.net/starlark
156156
go.starlark.net/starlarkstruct
157157
go.starlark.net/syntax
158158
# golang.org/x/crypto v0.0.0-20210314154223-e6e6c4f2bb5b
159-
## explicit
160159
golang.org/x/crypto/pkcs12
161160
golang.org/x/crypto/pkcs12/internal/rc2
162161
# golang.org/x/net v0.0.0-20210428140749-89ef3d95e781
@@ -554,7 +553,7 @@ kmodules.xyz/client-go/meta
554553
kmodules.xyz/client-go/tools/analytics
555554
kmodules.xyz/client-go/tools/cli
556555
kmodules.xyz/client-go/tools/clusterid
557-
# kmodules.xyz/custom-resources v0.0.0-20211007064058-70fba50e58a4
556+
# kmodules.xyz/custom-resources v0.0.0-20211007080833-72bd9e8cae6e
558557
## explicit
559558
kmodules.xyz/custom-resources/apis/appcatalog
560559
kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1
@@ -565,11 +564,10 @@ kmodules.xyz/custom-resources/apis/metrics/v1alpha1
565564
kmodules.xyz/custom-resources/client/clientset/versioned/scheme
566565
kmodules.xyz/custom-resources/crds
567566
# kmodules.xyz/monitoring-agent-api v0.0.0-20210928135619-38ca075a2dbd
568-
## explicit
569567
kmodules.xyz/monitoring-agent-api/api/v1
570568
# kmodules.xyz/offshoot-api v0.0.0-20210829122105-6f4d481b0c61
571569
kmodules.xyz/offshoot-api/api/v1
572-
# kubevault.dev/apimachinery v0.5.1-0.20210928181518-3f0dfa49c80b
570+
# kubevault.dev/apimachinery v0.5.1-0.20211007072029-11f1fc548ffe
573571
## explicit
574572
kubevault.dev/apimachinery/apis
575573
kubevault.dev/apimachinery/apis/catalog

0 commit comments

Comments
 (0)