Skip to content
Closed
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
118 changes: 59 additions & 59 deletions authorization/v1/generated.pb.go

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

11 changes: 8 additions & 3 deletions glide.lock

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

5 changes: 5 additions & 0 deletions glide.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,8 @@ import:
version: kubernetes-1.13.4
- package: k8s.io/api
version: kubernetes-1.13.4
- package: k8s.io/kubelet
repo: git@github.com:openshift/kubernetes-kubelet
version: origin-4.1-kubernetes-1.13.4
subpackages:
- config/v1beta1
6 changes: 5 additions & 1 deletion hack/lib/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ config/v1 \
image/v1 \
kubecontrolplane/v1 \
legacyconfig/v1 \
machineconfiguration/v1 \
network/v1 \
oauth/v1 \
openshiftcontrolplane/v1 \
Expand All @@ -30,18 +31,21 @@ servicecertsigner/v1alpha1 \
template/v1 \
user/v1 \
webconsole/v1 \
vendor/k8s.io/kubelet/config/v1beta1 \
"
API_PACKAGES="\
github.com/openshift/api/apps/v1,\
github.com/openshift/api/authorization/v1,\
github.com/openshift/api/build/v1,\
github.com/openshift/api/image/v1,\
github.com/openshift/api/machineconfiguration/v1,\
github.com/openshift/api/network/v1,\
github.com/openshift/api/oauth/v1,\
github.com/openshift/api/project/v1,\
github.com/openshift/api/quota/v1,\
github.com/openshift/api/route/v1,\
github.com/openshift/api/security/v1,\
github.com/openshift/api/template/v1,\
github.com/openshift/api/user/v1\
github.com/openshift/api/user/v1,\
k8s.io/kubelet/config/v1beta1\
"
2 changes: 1 addition & 1 deletion hack/update-deepcopy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ verify="${VERIFY:-}"
${CODEGEN_PKG}/generate-groups.sh "deepcopy" \
github.com/openshift/api/generated \
github.com/openshift/api \
"apps:v1 authorization:v1 build:v1 config:v1 image:v1,docker10,dockerpre012 kubecontrolplane:v1 legacyconfig:v1 network:v1 oauth:v1 openshiftcontrolplane:v1 operator:v1 operator:v1alpha1 osin:v1 project:v1 quota:v1 route:v1 security:v1 servicecertsigner:v1alpha1 template:v1 user:v1 webconsole:v1" \
"apps:v1 authorization:v1 build:v1 config:v1 image:v1,docker10,dockerpre012 kubecontrolplane:v1 legacyconfig:v1 machineconfiguration:v1 network:v1 oauth:v1 openshiftcontrolplane:v1 operator:v1 operator:v1alpha1 osin:v1 project:v1 quota:v1 route:v1 security:v1 servicecertsigner:v1alpha1 template:v1 user:v1 webconsole:v1" \
--go-header-file ${SCRIPT_ROOT}/hack/empty.txt \
${verify}
2 changes: 2 additions & 0 deletions install.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ import (
"github.com/openshift/api/config"
"github.com/openshift/api/image"
"github.com/openshift/api/kubecontrolplane"
"github.com/openshift/api/machineconfiguration"
"github.com/openshift/api/network"
"github.com/openshift/api/oauth"
"github.com/openshift/api/openshiftcontrolplane"
Expand All @@ -66,6 +67,7 @@ var (
config.Install,
image.Install,
kubecontrolplane.Install,
machineconfiguration.Install,
network.Install,
oauth.Install,
openshiftcontrolplane.Install,
Expand Down
5 changes: 5 additions & 0 deletions machineconfiguration/OWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
reviewers:
- runcom
- kikisdeliveryservice
Comment thread
LorbusChris marked this conversation as resolved.
- cgwalters
- LorbusChris
25 changes: 25 additions & 0 deletions machineconfiguration/install.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package machineconfiguration

import (
machineconfigurationv1 "github.com/openshift/api/machineconfiguration/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/schema"
)

const (
GroupName = "machineconfiguration.openshift.io"
)

var (
schemeBuilder = runtime.NewSchemeBuilder(machineconfigurationv1.Install)
// Install is a function which adds every version of this group to a scheme
Install = schemeBuilder.AddToScheme
)

func Resource(resource string) schema.GroupResource {
return schema.GroupResource{Group: GroupName, Resource: resource}
}

func Kind(kind string) schema.GroupKind {
return schema.GroupKind{Group: GroupName, Kind: kind}
}
7 changes: 7 additions & 0 deletions machineconfiguration/v1/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// +k8s:deepcopy-gen=package,register
// +k8s:defaulter-gen=TypeMeta
// +k8s:openapi-gen=true

// +groupName=machineconfiguration.openshift.io
// Package v1 is the v1 version of the API.
package v1
Loading