internalapis

package
v0.6.0-alpha.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2022 License: Apache-2.0 Imports: 18 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KCPInternalAPIs = []InternalAPI{
	{
		Names: apiextensionsv1.CustomResourceDefinitionNames{
			Plural:   "namespaces",
			Singular: "namespace",
			Kind:     "Namespace",
		},
		GroupVersion: schema.GroupVersion{Group: "", Version: "v1"},
		Instance:     &corev1.Namespace{},
		ResourceSope: apiextensionsv1.ClusterScoped,
		HasStatus:    true,
	},
	{
		Names: apiextensionsv1.CustomResourceDefinitionNames{
			Plural:   "configmaps",
			Singular: "configmap",
			Kind:     "ConfigMap",
		},
		GroupVersion: schema.GroupVersion{Group: "", Version: "v1"},
		Instance:     &corev1.ConfigMap{},
		ResourceSope: apiextensionsv1.NamespaceScoped,
	},
	{
		Names: apiextensionsv1.CustomResourceDefinitionNames{
			Plural:   "secrets",
			Singular: "secret",
			Kind:     "Secret",
		},
		GroupVersion: schema.GroupVersion{Group: "", Version: "v1"},
		Instance:     &corev1.Secret{},
		ResourceSope: apiextensionsv1.NamespaceScoped,
	},
	{
		Names: apiextensionsv1.CustomResourceDefinitionNames{
			Plural:   "serviceaccounts",
			Singular: "serviceaccount",
			Kind:     "ServiceAccount",
		},
		GroupVersion: schema.GroupVersion{Group: "", Version: "v1"},
		Instance:     &corev1.ServiceAccount{},
		ResourceSope: apiextensionsv1.NamespaceScoped,
	},
}

KCPInternalAPIs provides a list of InternalAPI for the APIs that are part of the KCP scheme and will be there in every KCP workspace

Schemas contains a list of internal APIs that should be exposed for the syncer of any SyncTarget.

Functions

This section is empty.

Types

type InternalAPI

type InternalAPI struct {
	Names        apiextensionsv1.CustomResourceDefinitionNames
	GroupVersion schema.GroupVersion
	Instance     runtime.Object
	ResourceSope apiextensionsv1.ResourceScope
	HasStatus    bool
}

InternalAPI describes an API to be imported from some schemes and generated OpenAPI V2 definitions

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL