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
96c146c8
Commit
96c146c8
authored
Jan 12, 2017
by
Mike Danese
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
promote certificates.k8s.io to beta
parent
80f3e93b
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
73 additions
and
73 deletions
+73
-73
certificates.go
cmd/kube-controller-manager/app/certificates.go
+1
-1
bootstrap.go
cmd/kubelet/app/bootstrap.go
+2
-2
cmd.go
cmd/libs/go2idl/go-to-protobuf/protobuf/cmd.go
+1
-1
init.sh
hack/lib/init.sh
+1
-1
csr.yml
hack/testdata/csr.yml
+1
-1
defaulting_test.go
pkg/api/defaulting_test.go
+43
-43
install.go
pkg/apis/certificates/install/install.go
+3
-3
conversion.go
pkg/apis/certificates/v1beta1/conversion.go
+1
-1
defaults.go
pkg/apis/certificates/v1beta1/defaults.go
+1
-1
doc.go
pkg/apis/certificates/v1beta1/doc.go
+1
-1
helpers.go
pkg/apis/certificates/v1beta1/helpers.go
+1
-1
register.go
pkg/apis/certificates/v1beta1/register.go
+2
-2
types.go
pkg/apis/certificates/v1beta1/types.go
+1
-1
groupapprove.go
pkg/controller/certificates/groupapprove.go
+2
-2
csr.go
pkg/kubelet/util/csr/csr.go
+3
-3
master.go
pkg/master/master.go
+2
-2
storage_certificates.go
pkg/registry/certificates/rest/storage_certificates.go
+6
-6
master_utils.go
test/integration/framework/master_utils.go
+1
-1
No files found.
cmd/kube-controller-manager/app/certificates.go
View file @
96c146c8
...
...
@@ -28,7 +28,7 @@ import (
)
func
startCSRController
(
ctx
ControllerContext
)
(
bool
,
error
)
{
if
!
ctx
.
AvailableResources
[
schema
.
GroupVersionResource
{
Group
:
"certificates.k8s.io"
,
Version
:
"v1
alph
a1"
,
Resource
:
"certificatesigningrequests"
}]
{
if
!
ctx
.
AvailableResources
[
schema
.
GroupVersionResource
{
Group
:
"certificates.k8s.io"
,
Version
:
"v1
bet
a1"
,
Resource
:
"certificatesigningrequests"
}]
{
return
false
,
nil
}
resyncPeriod
:=
ResyncPeriod
(
&
ctx
.
Options
)()
...
...
cmd/kubelet/app/bootstrap.go
View file @
96c146c8
...
...
@@ -27,7 +27,7 @@ import (
"k8s.io/apimachinery/pkg/types"
clientcmdapi
"k8s.io/client-go/tools/clientcmd/api"
unversionedcertificates
"k8s.io/kubernetes/pkg/client/clientset_generated/clientset/typed/certificates/v1alph
a1"
certificates
"k8s.io/kubernetes/pkg/client/clientset_generated/clientset/typed/certificates/v1bet
a1"
"k8s.io/kubernetes/pkg/client/restclient"
"k8s.io/kubernetes/pkg/client/unversioned/clientcmd"
"k8s.io/kubernetes/pkg/kubelet/util/csr"
...
...
@@ -62,7 +62,7 @@ func bootstrapClientCert(kubeconfigPath string, bootstrapPath string, certDir st
if
err
!=
nil
{
return
fmt
.
Errorf
(
"unable to load bootstrap kubeconfig: %v"
,
err
)
}
bootstrapClient
,
err
:=
unversioned
certificates
.
NewForConfig
(
bootstrapClientConfig
)
bootstrapClient
,
err
:=
certificates
.
NewForConfig
(
bootstrapClientConfig
)
if
err
!=
nil
{
return
fmt
.
Errorf
(
"unable to create certificates signing request client: %v"
,
err
)
}
...
...
cmd/libs/go2idl/go-to-protobuf/protobuf/cmd.go
View file @
96c146c8
...
...
@@ -79,7 +79,7 @@ func New() *Generator {
`k8s.io/kubernetes/pkg/apis/rbac/v1alpha1`
,
`k8s.io/kubernetes/pkg/apis/rbac/v1beta1`
,
`k8s.io/kubernetes/federation/apis/federation/v1beta1`
,
`k8s.io/kubernetes/pkg/apis/certificates/v1
alph
a1`
,
`k8s.io/kubernetes/pkg/apis/certificates/v1
bet
a1`
,
`k8s.io/kubernetes/pkg/apis/imagepolicy/v1alpha1`
,
`k8s.io/kubernetes/pkg/apis/storage/v1beta1`
,
},
","
),
...
...
hack/lib/init.sh
View file @
96c146c8
...
...
@@ -59,7 +59,7 @@ authorization.k8s.io/v1beta1 \
autoscaling/v1 \
batch/v1 \
batch/v2alpha1 \
certificates.k8s.io/v1
alph
a1 \
certificates.k8s.io/v1
bet
a1 \
extensions/v1beta1 \
imagepolicy.k8s.io/v1alpha1 \
policy/v1beta1 \
...
...
hack/testdata/csr.yml
View file @
96c146c8
apiVersion
:
certificates.k8s.io/v1
alph
a1
apiVersion
:
certificates.k8s.io/v1
bet
a1
kind
:
CertificateSigningRequest
metadata
:
name
:
foo
...
...
pkg/api/defaulting_test.go
View file @
96c146c8
...
...
@@ -54,49 +54,49 @@ func TestVerifyDefaulting(t *testing.T) {
func
TestDefaulting
(
t
*
testing
.
T
)
{
// these are the known types with defaulters - you must add to this list if you add a top level defaulter
typesWithDefaulting
:=
map
[
schema
.
GroupVersionKind
]
struct
{}{
{
Group
:
""
,
Version
:
"v1"
,
Kind
:
"ConfigMap"
}
:
{},
{
Group
:
""
,
Version
:
"v1"
,
Kind
:
"ConfigMapList"
}
:
{},
{
Group
:
""
,
Version
:
"v1"
,
Kind
:
"Endpoints"
}
:
{},
{
Group
:
""
,
Version
:
"v1"
,
Kind
:
"EndpointsList"
}
:
{},
{
Group
:
""
,
Version
:
"v1"
,
Kind
:
"Namespace"
}
:
{},
{
Group
:
""
,
Version
:
"v1"
,
Kind
:
"NamespaceList"
}
:
{},
{
Group
:
""
,
Version
:
"v1"
,
Kind
:
"Node"
}
:
{},
{
Group
:
""
,
Version
:
"v1"
,
Kind
:
"NodeList"
}
:
{},
{
Group
:
""
,
Version
:
"v1"
,
Kind
:
"PersistentVolume"
}
:
{},
{
Group
:
""
,
Version
:
"v1"
,
Kind
:
"PersistentVolumeList"
}
:
{},
{
Group
:
""
,
Version
:
"v1"
,
Kind
:
"PersistentVolumeClaim"
}
:
{},
{
Group
:
""
,
Version
:
"v1"
,
Kind
:
"PersistentVolumeClaimList"
}
:
{},
{
Group
:
""
,
Version
:
"v1"
,
Kind
:
"PodAttachOptions"
}
:
{},
{
Group
:
""
,
Version
:
"v1"
,
Kind
:
"PodExecOptions"
}
:
{},
{
Group
:
""
,
Version
:
"v1"
,
Kind
:
"Pod"
}
:
{},
{
Group
:
""
,
Version
:
"v1"
,
Kind
:
"PodList"
}
:
{},
{
Group
:
""
,
Version
:
"v1"
,
Kind
:
"PodTemplate"
}
:
{},
{
Group
:
""
,
Version
:
"v1"
,
Kind
:
"PodTemplateList"
}
:
{},
{
Group
:
""
,
Version
:
"v1"
,
Kind
:
"ReplicationController"
}
:
{},
{
Group
:
""
,
Version
:
"v1"
,
Kind
:
"ReplicationControllerList"
}
:
{},
{
Group
:
""
,
Version
:
"v1"
,
Kind
:
"Secret"
}
:
{},
{
Group
:
""
,
Version
:
"v1"
,
Kind
:
"SecretList"
}
:
{},
{
Group
:
""
,
Version
:
"v1"
,
Kind
:
"Service"
}
:
{},
{
Group
:
""
,
Version
:
"v1"
,
Kind
:
"ServiceList"
}
:
{},
{
Group
:
"apps"
,
Version
:
"v1beta1"
,
Kind
:
"StatefulSet"
}
:
{},
{
Group
:
"apps"
,
Version
:
"v1beta1"
,
Kind
:
"StatefulSetList"
}
:
{},
{
Group
:
"autoscaling"
,
Version
:
"v1"
,
Kind
:
"HorizontalPodAutoscaler"
}
:
{},
{
Group
:
"autoscaling"
,
Version
:
"v1"
,
Kind
:
"HorizontalPodAutoscalerList"
}
:
{},
{
Group
:
"batch"
,
Version
:
"v1"
,
Kind
:
"Job"
}
:
{},
{
Group
:
"batch"
,
Version
:
"v1"
,
Kind
:
"JobList"
}
:
{},
{
Group
:
"batch"
,
Version
:
"v2alpha1"
,
Kind
:
"CronJob"
}
:
{},
{
Group
:
"batch"
,
Version
:
"v2alpha1"
,
Kind
:
"CronJobList"
}
:
{},
{
Group
:
"batch"
,
Version
:
"v2alpha1"
,
Kind
:
"Job"
}
:
{},
{
Group
:
"batch"
,
Version
:
"v2alpha1"
,
Kind
:
"JobList"
}
:
{},
{
Group
:
"batch"
,
Version
:
"v2alpha1"
,
Kind
:
"JobTemplate"
}
:
{},
{
Group
:
"batch"
,
Version
:
"v2alpha1"
,
Kind
:
"ScheduledJob"
}
:
{},
{
Group
:
"batch"
,
Version
:
"v2alpha1"
,
Kind
:
"ScheduledJobList"
}
:
{},
{
Group
:
"certificates.k8s.io"
,
Version
:
"v1
alph
a1"
,
Kind
:
"CertificateSigningRequest"
}
:
{},
{
Group
:
"certificates.k8s.io"
,
Version
:
"v1
alph
a1"
,
Kind
:
"CertificateSigningRequestList"
}
:
{},
{
Group
:
"componentconfig"
,
Version
:
"v1alpha1"
,
Kind
:
"KubeProxyConfiguration"
}
:
{},
{
Group
:
"componentconfig"
,
Version
:
"v1alpha1"
,
Kind
:
"KubeSchedulerConfiguration"
}
:
{},
{
Group
:
"componentconfig"
,
Version
:
"v1alpha1"
,
Kind
:
"KubeletConfiguration"
}
:
{},
{
Group
:
"kubeadm.k8s.io"
,
Version
:
"v1alpha1"
,
Kind
:
"MasterConfiguration"
}
:
{},
{
Group
:
""
,
Version
:
"v1"
,
Kind
:
"ConfigMap"
}
:
{},
{
Group
:
""
,
Version
:
"v1"
,
Kind
:
"ConfigMapList"
}
:
{},
{
Group
:
""
,
Version
:
"v1"
,
Kind
:
"Endpoints"
}
:
{},
{
Group
:
""
,
Version
:
"v1"
,
Kind
:
"EndpointsList"
}
:
{},
{
Group
:
""
,
Version
:
"v1"
,
Kind
:
"Namespace"
}
:
{},
{
Group
:
""
,
Version
:
"v1"
,
Kind
:
"NamespaceList"
}
:
{},
{
Group
:
""
,
Version
:
"v1"
,
Kind
:
"Node"
}
:
{},
{
Group
:
""
,
Version
:
"v1"
,
Kind
:
"NodeList"
}
:
{},
{
Group
:
""
,
Version
:
"v1"
,
Kind
:
"PersistentVolume"
}
:
{},
{
Group
:
""
,
Version
:
"v1"
,
Kind
:
"PersistentVolumeList"
}
:
{},
{
Group
:
""
,
Version
:
"v1"
,
Kind
:
"PersistentVolumeClaim"
}
:
{},
{
Group
:
""
,
Version
:
"v1"
,
Kind
:
"PersistentVolumeClaimList"
}
:
{},
{
Group
:
""
,
Version
:
"v1"
,
Kind
:
"PodAttachOptions"
}
:
{},
{
Group
:
""
,
Version
:
"v1"
,
Kind
:
"PodExecOptions"
}
:
{},
{
Group
:
""
,
Version
:
"v1"
,
Kind
:
"Pod"
}
:
{},
{
Group
:
""
,
Version
:
"v1"
,
Kind
:
"PodList"
}
:
{},
{
Group
:
""
,
Version
:
"v1"
,
Kind
:
"PodTemplate"
}
:
{},
{
Group
:
""
,
Version
:
"v1"
,
Kind
:
"PodTemplateList"
}
:
{},
{
Group
:
""
,
Version
:
"v1"
,
Kind
:
"ReplicationController"
}
:
{},
{
Group
:
""
,
Version
:
"v1"
,
Kind
:
"ReplicationControllerList"
}
:
{},
{
Group
:
""
,
Version
:
"v1"
,
Kind
:
"Secret"
}
:
{},
{
Group
:
""
,
Version
:
"v1"
,
Kind
:
"SecretList"
}
:
{},
{
Group
:
""
,
Version
:
"v1"
,
Kind
:
"Service"
}
:
{},
{
Group
:
""
,
Version
:
"v1"
,
Kind
:
"ServiceList"
}
:
{},
{
Group
:
"apps"
,
Version
:
"v1beta1"
,
Kind
:
"StatefulSet"
}
:
{},
{
Group
:
"apps"
,
Version
:
"v1beta1"
,
Kind
:
"StatefulSetList"
}
:
{},
{
Group
:
"autoscaling"
,
Version
:
"v1"
,
Kind
:
"HorizontalPodAutoscaler"
}
:
{},
{
Group
:
"autoscaling"
,
Version
:
"v1"
,
Kind
:
"HorizontalPodAutoscalerList"
}
:
{},
{
Group
:
"batch"
,
Version
:
"v1"
,
Kind
:
"Job"
}
:
{},
{
Group
:
"batch"
,
Version
:
"v1"
,
Kind
:
"JobList"
}
:
{},
{
Group
:
"batch"
,
Version
:
"v2alpha1"
,
Kind
:
"CronJob"
}
:
{},
{
Group
:
"batch"
,
Version
:
"v2alpha1"
,
Kind
:
"CronJobList"
}
:
{},
{
Group
:
"batch"
,
Version
:
"v2alpha1"
,
Kind
:
"Job"
}
:
{},
{
Group
:
"batch"
,
Version
:
"v2alpha1"
,
Kind
:
"JobList"
}
:
{},
{
Group
:
"batch"
,
Version
:
"v2alpha1"
,
Kind
:
"JobTemplate"
}
:
{},
{
Group
:
"batch"
,
Version
:
"v2alpha1"
,
Kind
:
"ScheduledJob"
}
:
{},
{
Group
:
"batch"
,
Version
:
"v2alpha1"
,
Kind
:
"ScheduledJobList"
}
:
{},
{
Group
:
"certificates.k8s.io"
,
Version
:
"v1
bet
a1"
,
Kind
:
"CertificateSigningRequest"
}
:
{},
{
Group
:
"certificates.k8s.io"
,
Version
:
"v1
bet
a1"
,
Kind
:
"CertificateSigningRequestList"
}
:
{},
{
Group
:
"componentconfig"
,
Version
:
"v1alpha1"
,
Kind
:
"KubeProxyConfiguration"
}
:
{},
{
Group
:
"componentconfig"
,
Version
:
"v1alpha1"
,
Kind
:
"KubeSchedulerConfiguration"
}
:
{},
{
Group
:
"componentconfig"
,
Version
:
"v1alpha1"
,
Kind
:
"KubeletConfiguration"
}
:
{},
{
Group
:
"kubeadm.k8s.io"
,
Version
:
"v1alpha1"
,
Kind
:
"MasterConfiguration"
}
:
{},
// This object contains only int fields which currently breaks the defaulting test because
// it's pretty stupid. Once we add non integer fields, we should uncomment this.
// {Group: "kubeadm.k8s.io", Version: "v1alpha1", Kind: "NodeConfiguration"}: {},
...
...
pkg/apis/certificates/install/install.go
View file @
96c146c8
...
...
@@ -22,20 +22,20 @@ import (
"k8s.io/apimachinery/pkg/util/sets"
"k8s.io/kubernetes/pkg/apimachinery/announced"
"k8s.io/kubernetes/pkg/apis/certificates"
"k8s.io/kubernetes/pkg/apis/certificates/v1
alph
a1"
"k8s.io/kubernetes/pkg/apis/certificates/v1
bet
a1"
)
func
init
()
{
if
err
:=
announced
.
NewGroupMetaFactory
(
&
announced
.
GroupMetaFactoryArgs
{
GroupName
:
certificates
.
GroupName
,
VersionPreferenceOrder
:
[]
string
{
v1
alph
a1
.
SchemeGroupVersion
.
Version
},
VersionPreferenceOrder
:
[]
string
{
v1
bet
a1
.
SchemeGroupVersion
.
Version
},
ImportPrefix
:
"k8s.io/kubernetes/pkg/apis/certificates"
,
RootScopedKinds
:
sets
.
NewString
(
"CertificateSigningRequest"
),
AddInternalObjectsToScheme
:
certificates
.
AddToScheme
,
},
announced
.
VersionToSchemeFunc
{
v1
alpha1
.
SchemeGroupVersion
.
Version
:
v1alph
a1
.
AddToScheme
,
v1
beta1
.
SchemeGroupVersion
.
Version
:
v1bet
a1
.
AddToScheme
,
},
)
.
Announce
()
.
RegisterAndEnable
();
err
!=
nil
{
panic
(
err
)
...
...
pkg/apis/certificates/v1
alph
a1/conversion.go
→
pkg/apis/certificates/v1
bet
a1/conversion.go
View file @
96c146c8
...
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
package
v1
alph
a1
package
v1
bet
a1
import
(
"fmt"
...
...
pkg/apis/certificates/v1
alph
a1/defaults.go
→
pkg/apis/certificates/v1
bet
a1/defaults.go
View file @
96c146c8
...
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
package
v1
alph
a1
package
v1
bet
a1
import
"k8s.io/apimachinery/pkg/runtime"
...
...
pkg/apis/certificates/v1
alph
a1/doc.go
→
pkg/apis/certificates/v1
bet
a1/doc.go
View file @
96c146c8
...
...
@@ -20,4 +20,4 @@ limitations under the License.
// +k8s:defaulter-gen=TypeMeta
// +groupName=certificates.k8s.io
package
v1
alpha1
// import "k8s.io/kubernetes/pkg/apis/certificates/v1alph
a1"
package
v1
beta1
// import "k8s.io/kubernetes/pkg/apis/certificates/v1bet
a1"
pkg/apis/certificates/v1
alph
a1/helpers.go
→
pkg/apis/certificates/v1
bet
a1/helpers.go
View file @
96c146c8
...
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
package
v1
alph
a1
package
v1
bet
a1
import
(
"crypto/x509"
...
...
pkg/apis/certificates/v1
alph
a1/register.go
→
pkg/apis/certificates/v1
bet
a1/register.go
View file @
96c146c8
...
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
package
v1
alph
a1
package
v1
bet
a1
import
(
metav1
"k8s.io/apimachinery/pkg/apis/meta/v1"
...
...
@@ -27,7 +27,7 @@ import (
const
GroupName
=
"certificates.k8s.io"
// SchemeGroupVersion is group version used to register these objects
var
SchemeGroupVersion
=
schema
.
GroupVersion
{
Group
:
GroupName
,
Version
:
"v1
alph
a1"
}
var
SchemeGroupVersion
=
schema
.
GroupVersion
{
Group
:
GroupName
,
Version
:
"v1
bet
a1"
}
// Kind takes an unqualified kind and returns a Group qualified GroupKind
func
Kind
(
kind
string
)
schema
.
GroupKind
{
...
...
pkg/apis/certificates/v1
alph
a1/types.go
→
pkg/apis/certificates/v1
bet
a1/types.go
View file @
96c146c8
...
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
package
v1
alph
a1
package
v1
bet
a1
import
(
metav1
"k8s.io/apimachinery/pkg/apis/meta/v1"
...
...
pkg/controller/certificates/groupapprove.go
View file @
96c146c8
...
...
@@ -22,8 +22,8 @@ import (
"strings"
utilruntime
"k8s.io/apimachinery/pkg/util/runtime"
certificates
"k8s.io/kubernetes/pkg/apis/certificates/v1
alph
a1"
clientcertificates
"k8s.io/kubernetes/pkg/client/clientset_generated/clientset/typed/certificates/v1
alph
a1"
certificates
"k8s.io/kubernetes/pkg/apis/certificates/v1
bet
a1"
clientcertificates
"k8s.io/kubernetes/pkg/client/clientset_generated/clientset/typed/certificates/v1
bet
a1"
)
// groupApprover implements AutoApprover for signing Kubelet certificates.
...
...
pkg/kubelet/util/csr/csr.go
View file @
96c146c8
...
...
@@ -25,8 +25,8 @@ import (
"k8s.io/apimachinery/pkg/types"
"k8s.io/apimachinery/pkg/watch"
"k8s.io/kubernetes/pkg/api/v1"
certificates
"k8s.io/kubernetes/pkg/apis/certificates/v1
alph
a1"
unversionedcertificates
"k8s.io/kubernetes/pkg/client/clientset_generated/clientset/typed/certificates/v1alph
a1"
certificates
"k8s.io/kubernetes/pkg/apis/certificates/v1
bet
a1"
certificatesclient
"k8s.io/kubernetes/pkg/client/clientset_generated/clientset/typed/certificates/v1bet
a1"
certutil
"k8s.io/kubernetes/pkg/util/cert"
)
...
...
@@ -34,7 +34,7 @@ import (
// then it will watch the object's status, once approved by API server, it will return the API
// server's issued certificate (pem-encoded). If there is any errors, or the watch timeouts,
// it will return an error. This is intended for use on nodes (kubelet and kubeadm).
func
RequestNodeCertificate
(
client
unversionedcertificates
.
CertificateSigningRequestInterface
,
privateKeyData
[]
byte
,
nodeName
types
.
NodeName
)
(
certData
[]
byte
,
err
error
)
{
func
RequestNodeCertificate
(
client
certificatesclient
.
CertificateSigningRequestInterface
,
privateKeyData
[]
byte
,
nodeName
types
.
NodeName
)
(
certData
[]
byte
,
err
error
)
{
subject
:=
&
pkix
.
Name
{
Organization
:
[]
string
{
"system:nodes"
},
CommonName
:
fmt
.
Sprintf
(
"system:node:%s"
,
nodeName
),
...
...
pkg/master/master.go
View file @
96c146c8
...
...
@@ -35,7 +35,7 @@ import (
authorizationapiv1beta1
"k8s.io/kubernetes/pkg/apis/authorization/v1beta1"
autoscalingapiv1
"k8s.io/kubernetes/pkg/apis/autoscaling/v1"
batchapiv1
"k8s.io/kubernetes/pkg/apis/batch/v1"
certificatesapiv1
alpha1
"k8s.io/kubernetes/pkg/apis/certificates/v1alph
a1"
certificatesapiv1
beta1
"k8s.io/kubernetes/pkg/apis/certificates/v1bet
a1"
extensionsapiv1beta1
"k8s.io/kubernetes/pkg/apis/extensions/v1beta1"
policyapiv1beta1
"k8s.io/kubernetes/pkg/apis/policy/v1beta1"
rbacapi
"k8s.io/kubernetes/pkg/apis/rbac/v1alpha1"
...
...
@@ -397,7 +397,7 @@ func DefaultAPIResourceConfigSource() *genericapiserver.ResourceConfig {
rbacv1beta1
.
SchemeGroupVersion
,
rbacapi
.
SchemeGroupVersion
,
storageapiv1beta1
.
SchemeGroupVersion
,
certificatesapiv1
alph
a1
.
SchemeGroupVersion
,
certificatesapiv1
bet
a1
.
SchemeGroupVersion
,
authorizationapiv1beta1
.
SchemeGroupVersion
,
)
...
...
pkg/registry/certificates/rest/storage_certificates.go
View file @
96c146c8
...
...
@@ -18,7 +18,7 @@ package rest
import
(
"k8s.io/kubernetes/pkg/apis/certificates"
certificatesapiv1
alpha1
"k8s.io/kubernetes/pkg/apis/certificates/v1alph
a1"
certificatesapiv1
beta1
"k8s.io/kubernetes/pkg/apis/certificates/v1bet
a1"
"k8s.io/kubernetes/pkg/genericapiserver/registry/generic"
"k8s.io/kubernetes/pkg/genericapiserver/registry/rest"
genericapiserver
"k8s.io/kubernetes/pkg/genericapiserver/server"
...
...
@@ -30,16 +30,16 @@ type RESTStorageProvider struct{}
func
(
p
RESTStorageProvider
)
NewRESTStorage
(
apiResourceConfigSource
genericapiserver
.
APIResourceConfigSource
,
restOptionsGetter
generic
.
RESTOptionsGetter
)
(
genericapiserver
.
APIGroupInfo
,
bool
)
{
apiGroupInfo
:=
genericapiserver
.
NewDefaultAPIGroupInfo
(
certificates
.
GroupName
)
if
apiResourceConfigSource
.
AnyResourcesForVersionEnabled
(
certificatesapiv1
alph
a1
.
SchemeGroupVersion
)
{
apiGroupInfo
.
VersionedResourcesStorageMap
[
certificatesapiv1
alpha1
.
SchemeGroupVersion
.
Version
]
=
p
.
v1alph
a1Storage
(
apiResourceConfigSource
,
restOptionsGetter
)
apiGroupInfo
.
GroupMeta
.
GroupVersion
=
certificatesapiv1
alph
a1
.
SchemeGroupVersion
if
apiResourceConfigSource
.
AnyResourcesForVersionEnabled
(
certificatesapiv1
bet
a1
.
SchemeGroupVersion
)
{
apiGroupInfo
.
VersionedResourcesStorageMap
[
certificatesapiv1
beta1
.
SchemeGroupVersion
.
Version
]
=
p
.
v1bet
a1Storage
(
apiResourceConfigSource
,
restOptionsGetter
)
apiGroupInfo
.
GroupMeta
.
GroupVersion
=
certificatesapiv1
bet
a1
.
SchemeGroupVersion
}
return
apiGroupInfo
,
true
}
func
(
p
RESTStorageProvider
)
v1
alph
a1Storage
(
apiResourceConfigSource
genericapiserver
.
APIResourceConfigSource
,
restOptionsGetter
generic
.
RESTOptionsGetter
)
map
[
string
]
rest
.
Storage
{
version
:=
certificatesapiv1
alph
a1
.
SchemeGroupVersion
func
(
p
RESTStorageProvider
)
v1
bet
a1Storage
(
apiResourceConfigSource
genericapiserver
.
APIResourceConfigSource
,
restOptionsGetter
generic
.
RESTOptionsGetter
)
map
[
string
]
rest
.
Storage
{
version
:=
certificatesapiv1
bet
a1
.
SchemeGroupVersion
storage
:=
map
[
string
]
rest
.
Storage
{}
if
apiResourceConfigSource
.
ResourceEnabled
(
version
.
WithResource
(
"certificatesigningrequests"
))
{
...
...
test/integration/framework/master_utils.go
View file @
96c146c8
...
...
@@ -43,7 +43,7 @@ import (
apps
"k8s.io/kubernetes/pkg/apis/apps/v1beta1"
autoscaling
"k8s.io/kubernetes/pkg/apis/autoscaling/v1"
"k8s.io/kubernetes/pkg/apis/batch"
certificates
"k8s.io/kubernetes/pkg/apis/certificates/v1
alph
a1"
certificates
"k8s.io/kubernetes/pkg/apis/certificates/v1
bet
a1"
extensions
"k8s.io/kubernetes/pkg/apis/extensions/v1beta1"
policy
"k8s.io/kubernetes/pkg/apis/policy/v1alpha1"
rbac
"k8s.io/kubernetes/pkg/apis/rbac/v1alpha1"
...
...
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