summaryrefslogtreecommitdiff
path: root/vendor/github.com/openshift/api/config/v1/register.go
diff options
context:
space:
mode:
authorSascha Grunert <sgrunert@suse.com>2019-09-05 16:58:06 +0200
committerSascha Grunert <sgrunert@suse.com>2019-09-05 16:58:08 +0200
commitf66a2069f1b26ff9987b008ba4b0c91ac3b682cc (patch)
tree1219ee0e7b87494eaf2c6ace56d4ecada0dc4a39 /vendor/github.com/openshift/api/config/v1/register.go
parentb962b1e3538312f145aea0cf5546ae31f35f635f (diff)
downloadpodman-f66a2069f1b26ff9987b008ba4b0c91ac3b682cc.tar.gz
podman-f66a2069f1b26ff9987b008ba4b0c91ac3b682cc.tar.bz2
podman-f66a2069f1b26ff9987b008ba4b0c91ac3b682cc.zip
Update buildah to v1.11.0
Vendor in the latest changes for buildah to apply the implemented features here as well. Signed-off-by: Sascha Grunert <sgrunert@suse.com>
Diffstat (limited to 'vendor/github.com/openshift/api/config/v1/register.go')
-rw-r--r--vendor/github.com/openshift/api/config/v1/register.go70
1 files changed, 70 insertions, 0 deletions
diff --git a/vendor/github.com/openshift/api/config/v1/register.go b/vendor/github.com/openshift/api/config/v1/register.go
new file mode 100644
index 000000000..35eace370
--- /dev/null
+++ b/vendor/github.com/openshift/api/config/v1/register.go
@@ -0,0 +1,70 @@
+package v1
+
+import (
+ metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ "k8s.io/apimachinery/pkg/runtime"
+ "k8s.io/apimachinery/pkg/runtime/schema"
+)
+
+var (
+ GroupName = "config.openshift.io"
+ GroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1"}
+ schemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
+ // Install is a function which adds this version to a scheme
+ Install = schemeBuilder.AddToScheme
+
+ // SchemeGroupVersion generated code relies on this name
+ // Deprecated
+ SchemeGroupVersion = GroupVersion
+ // AddToScheme exists solely to keep the old generators creating valid code
+ // DEPRECATED
+ AddToScheme = schemeBuilder.AddToScheme
+)
+
+// Resource generated code relies on this being here, but it logically belongs to the group
+// DEPRECATED
+func Resource(resource string) schema.GroupResource {
+ return schema.GroupResource{Group: GroupName, Resource: resource}
+}
+
+// Adds the list of known types to api.Scheme.
+func addKnownTypes(scheme *runtime.Scheme) error {
+ scheme.AddKnownTypes(GroupVersion,
+ &APIServer{},
+ &APIServerList{},
+ &Authentication{},
+ &AuthenticationList{},
+ &Build{},
+ &BuildList{},
+ &ClusterOperator{},
+ &ClusterOperatorList{},
+ &ClusterVersion{},
+ &ClusterVersionList{},
+ &Console{},
+ &ConsoleList{},
+ &DNS{},
+ &DNSList{},
+ &FeatureGate{},
+ &FeatureGateList{},
+ &Image{},
+ &ImageList{},
+ &Infrastructure{},
+ &InfrastructureList{},
+ &Ingress{},
+ &IngressList{},
+ &Network{},
+ &NetworkList{},
+ &OAuth{},
+ &OAuthList{},
+ &OperatorHub{},
+ &OperatorHubList{},
+ &Project{},
+ &ProjectList{},
+ &Proxy{},
+ &ProxyList{},
+ &Scheduler{},
+ &SchedulerList{},
+ )
+ metav1.AddToGroupVersion(scheme, GroupVersion)
+ return nil
+}