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
e73b27cb
Commit
e73b27cb
authored
Aug 21, 2017
by
Tim Hockin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add debugging to the codegen process
parent
a235ba4e
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
99 additions
and
17 deletions
+99
-17
Makefile.generated_files
build/root/Makefile.generated_files
+68
-9
verify.sh
hack/make-rules/verify.sh
+1
-0
verify-generated-files-remake.sh
hack/verify-generated-files-remake.sh
+30
-0
types.go
pkg/api/unversioned/types.go
+0
-2
helpers.go
pkg/apis/rbac/v1/helpers.go
+0
-2
helpers.go
pkg/apis/rbac/v1alpha1/helpers.go
+0
-2
helpers.go
pkg/apis/rbac/v1beta1/helpers.go
+0
-2
No files found.
build/root/Makefile.generated_files
View file @
e73b27cb
This diff is collapsed.
Click to expand it.
hack/make-rules/verify.sh
View file @
e73b27cb
...
@@ -36,6 +36,7 @@ QUICK_PATTERNS+=(
...
@@ -36,6 +36,7 @@ QUICK_PATTERNS+=(
"verify-api-groups.sh"
"verify-api-groups.sh"
"verify-bazel.sh"
"verify-bazel.sh"
"verify-boilerplate.sh"
"verify-boilerplate.sh"
"verify-generated-files-remake"
"verify-godep-licenses.sh"
"verify-godep-licenses.sh"
"verify-gofmt.sh"
"verify-gofmt.sh"
"verify-pkg-names.sh"
"verify-pkg-names.sh"
...
...
hack/verify-generated-files-remake.sh
0 → 100644
View file @
e73b27cb
#!/bin/bash
# Copyright 2017 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
set
-o
errexit
set
-o
nounset
set
-o
pipefail
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
}
"
)
/..
source
"
${
KUBE_ROOT
}
/hack/lib/init.sh"
make generated_files
X
=
$(
make generated_files
DBG_CODEGEN
=
1
)
if
[[
-n
"
${
X
}
"
]]
;
then
echo
"Back-to-back 'make' runs are not clean for codegen"
echo
"
${
X
}
"
exit
1
fi
pkg/api/unversioned/types.go
View file @
e73b27cb
...
@@ -23,8 +23,6 @@ package unversioned
...
@@ -23,8 +23,6 @@ package unversioned
// TypeMeta describes an individual object in an API response or request
// TypeMeta describes an individual object in an API response or request
// with strings representing the type of the object and its API schema version.
// with strings representing the type of the object and its API schema version.
// Structures that are versioned or persisted should inline TypeMeta.
// Structures that are versioned or persisted should inline TypeMeta.
//
// +k8s:deepcopy-gen=false
type
TypeMeta
struct
{
type
TypeMeta
struct
{
// Kind is a string value representing the REST resource this object represents.
// Kind is a string value representing the REST resource this object represents.
// Servers may infer this from the endpoint the client submits requests to.
// Servers may infer this from the endpoint the client submits requests to.
...
...
pkg/apis/rbac/v1/helpers.go
View file @
e73b27cb
...
@@ -24,7 +24,6 @@ import (
...
@@ -24,7 +24,6 @@ import (
metav1
"k8s.io/apimachinery/pkg/apis/meta/v1"
metav1
"k8s.io/apimachinery/pkg/apis/meta/v1"
)
)
// +k8s:deepcopy-gen=false
// PolicyRuleBuilder let's us attach methods. A no-no for API types.
// PolicyRuleBuilder let's us attach methods. A no-no for API types.
// We use it to construct rules in code. It's more compact than trying to write them
// We use it to construct rules in code. It's more compact than trying to write them
// out in a literal and allows us to perform some basic checking during construction
// out in a literal and allows us to perform some basic checking during construction
...
@@ -91,7 +90,6 @@ func (r *PolicyRuleBuilder) Rule() (rbacv1.PolicyRule, error) {
...
@@ -91,7 +90,6 @@ func (r *PolicyRuleBuilder) Rule() (rbacv1.PolicyRule, error) {
return
r
.
PolicyRule
,
nil
return
r
.
PolicyRule
,
nil
}
}
// +k8s:deepcopy-gen=false
// ClusterRoleBindingBuilder let's us attach methods. A no-no for API types.
// ClusterRoleBindingBuilder let's us attach methods. A no-no for API types.
// We use it to construct bindings in code. It's more compact than trying to write them
// We use it to construct bindings in code. It's more compact than trying to write them
// out in a literal.
// out in a literal.
...
...
pkg/apis/rbac/v1alpha1/helpers.go
View file @
e73b27cb
...
@@ -24,7 +24,6 @@ import (
...
@@ -24,7 +24,6 @@ import (
metav1
"k8s.io/apimachinery/pkg/apis/meta/v1"
metav1
"k8s.io/apimachinery/pkg/apis/meta/v1"
)
)
// +k8s:deepcopy-gen=false
// PolicyRuleBuilder let's us attach methods. A no-no for API types.
// PolicyRuleBuilder let's us attach methods. A no-no for API types.
// We use it to construct rules in code. It's more compact than trying to write them
// We use it to construct rules in code. It's more compact than trying to write them
// out in a literal and allows us to perform some basic checking during construction
// out in a literal and allows us to perform some basic checking during construction
...
@@ -91,7 +90,6 @@ func (r *PolicyRuleBuilder) Rule() (rbacv1alpha1.PolicyRule, error) {
...
@@ -91,7 +90,6 @@ func (r *PolicyRuleBuilder) Rule() (rbacv1alpha1.PolicyRule, error) {
return
r
.
PolicyRule
,
nil
return
r
.
PolicyRule
,
nil
}
}
// +k8s:deepcopy-gen=false
// ClusterRoleBindingBuilder let's us attach methods. A no-no for API types.
// ClusterRoleBindingBuilder let's us attach methods. A no-no for API types.
// We use it to construct bindings in code. It's more compact than trying to write them
// We use it to construct bindings in code. It's more compact than trying to write them
// out in a literal.
// out in a literal.
...
...
pkg/apis/rbac/v1beta1/helpers.go
View file @
e73b27cb
...
@@ -24,7 +24,6 @@ import (
...
@@ -24,7 +24,6 @@ import (
metav1
"k8s.io/apimachinery/pkg/apis/meta/v1"
metav1
"k8s.io/apimachinery/pkg/apis/meta/v1"
)
)
// +k8s:deepcopy-gen=false
// PolicyRuleBuilder let's us attach methods. A no-no for API types.
// PolicyRuleBuilder let's us attach methods. A no-no for API types.
// We use it to construct rules in code. It's more compact than trying to write them
// We use it to construct rules in code. It's more compact than trying to write them
// out in a literal and allows us to perform some basic checking during construction
// out in a literal and allows us to perform some basic checking during construction
...
@@ -91,7 +90,6 @@ func (r *PolicyRuleBuilder) Rule() (rbacv1beta1.PolicyRule, error) {
...
@@ -91,7 +90,6 @@ func (r *PolicyRuleBuilder) Rule() (rbacv1beta1.PolicyRule, error) {
return
r
.
PolicyRule
,
nil
return
r
.
PolicyRule
,
nil
}
}
// +k8s:deepcopy-gen=false
// ClusterRoleBindingBuilder let's us attach methods. A no-no for API types.
// ClusterRoleBindingBuilder let's us attach methods. A no-no for API types.
// We use it to construct bindings in code. It's more compact than trying to write them
// We use it to construct bindings in code. It's more compact than trying to write them
// out in a literal.
// out in a literal.
...
...
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