Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ GO_BUILD_PACKAGES_EXPANDED :=$(GO_BUILD_PACKAGES)
# LDFLAGS are not needed for dummy builds (saving time on calling git commands)
GO_LD_FLAGS:=

# Set crd-schema-gen variables
CONTROLLER_GEN_VERSION :=v0.2.1

# $1 - target name
# $2 - apis
# $3 - manifests
Expand Down
2 changes: 0 additions & 2 deletions apps/v1/generated.proto

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions apps/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ import (
// is carried out and may be changed at any time. The `latestVersion` field is updated when a new deployment
// is triggered by any means.
type DeploymentConfig struct {
metav1.TypeMeta `json:",inline"`
// Standard object's metadata.
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

// Spec represents a desired deployment state and how to deploy to it.
Expand Down Expand Up @@ -389,7 +388,6 @@ type DeploymentCondition struct {
// DeploymentConfigList is a collection of deployment configs.
type DeploymentConfigList struct {
metav1.TypeMeta `json:",inline"`
// Standard object's metadata.
metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

// Items is a list of deployment configs
Expand Down
12 changes: 5 additions & 7 deletions apps/v1/zz_generated.swagger_doc_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ spec:
plural: rolebindingrestrictions
singular: rolebindingrestriction
scope: Namespaced
preserveUnknownField: false
versions:
- name: v1
served: true
Expand All @@ -34,7 +35,6 @@ spec:
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
description: Standard object's metadata.
type: object
spec:
description: Spec defines the matcher.
Expand Down
12 changes: 2 additions & 10 deletions authorization/v1/generated.proto

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 7 additions & 17 deletions authorization/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ type PolicyRule struct {
Verbs []string `json:"verbs" protobuf:"bytes,1,rep,name=verbs"`
// AttributeRestrictions will vary depending on what the Authorizer/AuthorizationAttributeBuilder pair supports.
// If the Authorizer does not recognize how to handle the AttributeRestrictions, the Authorizer should report an error.
// +kubebuilder:validation:PreserveUnknownFields
AttributeRestrictions kruntime.RawExtension `json:"attributeRestrictions,omitempty" protobuf:"bytes,2,opt,name=attributeRestrictions"`
// APIGroups is the name of the APIGroup that contains the resources. If this field is empty, then both kubernetes and origin API groups are assumed.
// That means that if an action is requested against one of the enumerated resources in either the kubernetes or the origin API group, the request
Expand All @@ -58,8 +59,7 @@ type IsPersonalSubjectAccessReview struct {

// Role is a logical grouping of PolicyRules that can be referenced as a unit by RoleBindings.
type Role struct {
metav1.TypeMeta `json:",inline"`
// Standard object's metadata.
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

// Rules holds all the PolicyRules for this Role
Expand All @@ -82,8 +82,7 @@ func (t OptionalNames) String() string {
// It adds who information via (Users and Groups) OR Subjects and namespace information by which namespace it exists in.
// RoleBindings in a given namespace only have effect in that namespace (excepting the master namespace which has power in all namespaces).
type RoleBinding struct {
metav1.TypeMeta `json:",inline"`
// Standard object's metadata.
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

// UserNames holds all the usernames directly bound to the role.
Expand Down Expand Up @@ -326,6 +325,7 @@ type Action struct {
// IsNonResourceURL is true if this is a request for a non-resource URL (outside of the resource hieraarchy)
IsNonResourceURL bool `json:"isNonResourceURL" protobuf:"varint,9,opt,name=isNonResourceURL"`
// Content is the actual content of the request for create and update
// +kubebuilder:validation:PreserveUnknownFields
Content kruntime.RawExtension `json:"content,omitempty" protobuf:"bytes,7,opt,name=content"`
}

Expand All @@ -334,7 +334,6 @@ type Action struct {
// RoleBindingList is a collection of RoleBindings
type RoleBindingList struct {
metav1.TypeMeta `json:",inline"`
// Standard object's metadata.
metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

// Items is a list of RoleBindings
Expand All @@ -346,7 +345,6 @@ type RoleBindingList struct {
// RoleList is a collection of Roles
type RoleList struct {
metav1.TypeMeta `json:",inline"`
// Standard object's metadata.
metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

// Items is a list of Roles
Expand All @@ -359,8 +357,7 @@ type RoleList struct {

// ClusterRole is a logical grouping of PolicyRules that can be referenced as a unit by ClusterRoleBindings.
type ClusterRole struct {
metav1.TypeMeta `json:",inline"`
// Standard object's metadata.
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

// Rules holds all the PolicyRules for this ClusterRole
Expand All @@ -380,8 +377,7 @@ type ClusterRole struct {
// It adds who information via (Users and Groups) OR Subjects and namespace information by which namespace it exists in.
// ClusterRoleBindings in a given namespace only have effect in that namespace (excepting the master namespace which has power in all namespaces).
type ClusterRoleBinding struct {
metav1.TypeMeta `json:",inline"`
// Standard object's metadata.
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

// UserNames holds all the usernames directly bound to the role.
Expand Down Expand Up @@ -428,7 +424,6 @@ type NamedClusterRoleBinding struct {
// ClusterRoleBindingList is a collection of ClusterRoleBindings
type ClusterRoleBindingList struct {
metav1.TypeMeta `json:",inline"`
// Standard object's metadata.
metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

// Items is a list of ClusterRoleBindings
Expand All @@ -440,7 +435,6 @@ type ClusterRoleBindingList struct {
// ClusterRoleList is a collection of ClusterRoles
type ClusterRoleList struct {
metav1.TypeMeta `json:",inline"`
// Standard object's metadata.
metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

// Items is a list of ClusterRoles
Expand All @@ -456,9 +450,7 @@ type ClusterRoleList struct {
// belongs. If any one of those RoleBindingRestriction objects matches
// a subject, rolebindings on that subject in the namespace are allowed.
type RoleBindingRestriction struct {
metav1.TypeMeta `json:",inline"`

// Standard object's metadata.
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata" protobuf:"bytes,1,opt,name=metadata"`

// Spec defines the matcher.
Expand Down Expand Up @@ -486,8 +478,6 @@ type RoleBindingRestrictionSpec struct {
// RoleBindingRestrictionList is a collection of RoleBindingRestriction objects.
type RoleBindingRestrictionList struct {
metav1.TypeMeta `json:",inline"`

// Standard object's metadata.
metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

// Items is a list of RoleBindingRestriction objects.
Expand Down
Loading