Documentation ¶
Overview ¶
Package latest defines the default output serializations that code should use and imports the required schemas. It also ensures all previously known and supported API versions are available for conversion. Consumers may import this package in lieu of importing individual versions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var OldestVersion = unversioned.GroupVersion{Group: "", Version: "v1"}
OldestVersion is the string that represents the oldest server version supported, for client code that wants to hardcode the lowest common denominator.
var Version = unversioned.GroupVersion{Group: "", Version: "v1"}
Version is the string that represents the current external default version.
var Versions = []unversioned.GroupVersion{ {Group: "authorization.openshift.io", Version: "v1"}, {Group: "build.openshift.io", Version: "v1"}, {Group: "apps.openshift.io", Version: "v1"}, {Group: "template.openshift.io", Version: "v1"}, {Group: "image.openshift.io", Version: "v1"}, {Group: "project.openshift.io", Version: "v1"}, {Group: "user.openshift.io", Version: "v1"}, {Group: "oauth.openshift.io", Version: "v1"}, {Group: "network.openshift.io", Version: "v1"}, {Group: "route.openshift.io", Version: "v1"}, {Group: "quota.openshift.io", Version: "v1"}, {Group: "security.openshift.io", Version: "v1"}, {Group: "", Version: "v1"}, }
Versions is the list of versions that are recognized in code. The order provided may be assumed to be most preferred to least preferred, and clients may choose to prefer the earlier items in the list over the latter items when presented with a set of versions to choose.
Functions ¶
func IsKindInAnyOriginGroup ¶ added in v1.1.2
IsKindInAnyOriginGroup returns true if OpenShift owns the kind described in any apiVersion. TODO: this may not work once we divide builds/deployments/images into their own API groups
func IsOriginAPIGroup ¶
IsOriginAPIGroup returns true if the provided group name belongs to Origin API.
func OriginKind ¶ added in v0.2.1
func OriginKind(gvk unversioned.GroupVersionKind) bool
OriginKind returns true if OpenShift owns the GroupVersionKind.
func OriginLegacyKind ¶
func OriginLegacyKind(gvk unversioned.GroupVersionKind) bool
OriginLegacyKind returns true for OriginKinds which are not in their own api group.
Types ¶
This section is empty.