Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
d00906f4
Commit
d00906f4
authored
Oct 23, 2018
by
Jordan Liggitt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix omitempty/optional indicator on CABundle fields
parent
daf17e2a
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
17 additions
and
16 deletions
+17
-16
types.go
pkg/apis/admissionregistration/types.go
+3
-3
types.go
pkg/apis/auditregistration/types.go
+2
-3
types.go
...ing/src/k8s.io/api/admissionregistration/v1beta1/types.go
+5
-5
types.go
staging/src/k8s.io/api/auditregistration/v1alpha1/types.go
+4
-5
types.go
.../k8s.io/kube-aggregator/pkg/apis/apiregistration/types.go
+1
-0
types.go
...s.io/kube-aggregator/pkg/apis/apiregistration/v1/types.go
+1
-0
types.go
...kube-aggregator/pkg/apis/apiregistration/v1beta1/types.go
+1
-0
No files found.
pkg/apis/admissionregistration/types.go
View file @
d00906f4
...
...
@@ -328,9 +328,9 @@ type WebhookClientConfig struct {
// +optional
Service
*
ServiceReference
// `caBundle` is a PEM encoded CA bundle which will be used to validate
//
the webhook's server certificate
.
//
Required.
// `caBundle` is a PEM encoded CA bundle which will be used to validate
the webhook's server certificate.
//
If unspecified, system trust roots on the apiserver are used
.
//
+optional
CABundle
[]
byte
}
...
...
pkg/apis/auditregistration/types.go
View file @
d00906f4
...
...
@@ -173,9 +173,8 @@ type WebhookClientConfig struct {
// +optional
Service
*
ServiceReference
// `caBundle` is a PEM encoded CA bundle which will be used to validate
// the webhook's server certificate.
// defaults to the apiservers CA bundle for the endpoint type
// `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate.
// If unspecified, system trust roots on the apiserver are used.
// +optional
CABundle
[]
byte
}
...
...
staging/src/k8s.io/api/admissionregistration/v1beta1/types.go
View file @
d00906f4
...
...
@@ -282,12 +282,12 @@ type WebhookClientConfig struct {
// Port 443 will be used if it is open, otherwise it is an error.
//
// +optional
Service
*
ServiceReference
`json:"service" protobuf:"bytes,1,opt,name=service"`
Service
*
ServiceReference
`json:"service
,omitempty
" protobuf:"bytes,1,opt,name=service"`
// `caBundle` is a PEM encoded CA bundle which will be used to validate
//
the webhook's server certificate
.
//
Required.
CABundle
[]
byte
`json:"caBundle" protobuf:"bytes,2,opt,name=caBundle"`
// `caBundle` is a PEM encoded CA bundle which will be used to validate
the webhook's server certificate.
//
If unspecified, system trust roots on the apiserver are used
.
//
+optional
CABundle
[]
byte
`json:"caBundle
,omitempty
" protobuf:"bytes,2,opt,name=caBundle"`
}
// ServiceReference holds a reference to Service.legacy.k8s.io
...
...
staging/src/k8s.io/api/auditregistration/v1alpha1/types.go
View file @
d00906f4
...
...
@@ -169,13 +169,12 @@ type WebhookClientConfig struct {
// Port 443 will be used if it is open, otherwise it is an error.
//
// +optional
Service
*
ServiceReference
`json:"service" protobuf:"bytes,2,opt,name=service"`
Service
*
ServiceReference
`json:"service
,omitempty
" protobuf:"bytes,2,opt,name=service"`
// `caBundle` is a PEM encoded CA bundle which will be used to validate
// the webhook's server certificate.
// defaults to the apiservers CA bundle for the endpoint type
// `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate.
// If unspecified, system trust roots on the apiserver are used.
// +optional
CABundle
[]
byte
`json:"caBundle" protobuf:"bytes,3,opt,name=caBundle"`
CABundle
[]
byte
`json:"caBundle
,omitempty
" protobuf:"bytes,3,opt,name=caBundle"`
}
// ServiceReference holds a reference to Service.legacy.k8s.io
...
...
staging/src/k8s.io/kube-aggregator/pkg/apis/apiregistration/types.go
View file @
d00906f4
...
...
@@ -53,6 +53,7 @@ type APIServiceSpec struct {
// This is strongly discouraged. You should use the CABundle instead.
InsecureSkipTLSVerify
bool
// CABundle is a PEM encoded CA bundle which will be used to validate an API server's serving certificate.
// If unspecified, system trust roots on the apiserver are used.
// +optional
CABundle
[]
byte
...
...
staging/src/k8s.io/kube-aggregator/pkg/apis/apiregistration/v1/types.go
View file @
d00906f4
...
...
@@ -53,6 +53,7 @@ type APIServiceSpec struct {
// This is strongly discouraged. You should use the CABundle instead.
InsecureSkipTLSVerify
bool
`json:"insecureSkipTLSVerify,omitempty" protobuf:"varint,4,opt,name=insecureSkipTLSVerify"`
// CABundle is a PEM encoded CA bundle which will be used to validate an API server's serving certificate.
// If unspecified, system trust roots on the apiserver are used.
// +optional
CABundle
[]
byte
`json:"caBundle,omitempty" protobuf:"bytes,5,opt,name=caBundle"`
...
...
staging/src/k8s.io/kube-aggregator/pkg/apis/apiregistration/v1beta1/types.go
View file @
d00906f4
...
...
@@ -53,6 +53,7 @@ type APIServiceSpec struct {
// This is strongly discouraged. You should use the CABundle instead.
InsecureSkipTLSVerify
bool
`json:"insecureSkipTLSVerify,omitempty" protobuf:"varint,4,opt,name=insecureSkipTLSVerify"`
// CABundle is a PEM encoded CA bundle which will be used to validate an API server's serving certificate.
// If unspecified, system trust roots on the apiserver are used.
// +optional
CABundle
[]
byte
`json:"caBundle,omitempty" protobuf:"bytes,5,opt,name=caBundle"`
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment