kubernetesk8s.io/kubernetes/test/e2e/manifest Index | Files

package manifest

import "k8s.io/kubernetes/test/e2e/manifest"

Index

Functions

func DaemonSetFromManifest

func DaemonSetFromManifest(fileName, ns string) (*appsv1.DaemonSet, error)

DaemonSetFromManifest returns a DaemonSet from a manifest stored in fileName in the Namespace indicated by ns.

func IngressFromManifest

func IngressFromManifest(fileName string) (*networkingv1beta1.Ingress, error)

IngressFromManifest reads a .json/yaml file and returns the ingress in it.

func IngressToManifest

func IngressToManifest(ing *networkingv1beta1.Ingress, path string) error

IngressToManifest generates a yaml file in the given path with the given ingress. Assumes that a directory exists at the given path.

func PodFromManifest

func PodFromManifest(filename string) (*v1.Pod, error)

PodFromManifest reads a .json/yaml file and returns the pod in it.

func RcFromManifest

func RcFromManifest(fileName string) (*v1.ReplicationController, error)

RcFromManifest reads a .json/yaml file and returns the rc in it.

func RoleFromManifest

func RoleFromManifest(fileName, ns string) (*rbacv1.Role, error)

RoleFromManifest returns a Role from a manifest stored in fileName in the Namespace indicated by ns.

func StatefulSetFromManifest

func StatefulSetFromManifest(fileName, ns string) (*appsv1.StatefulSet, error)

StatefulSetFromManifest returns a StatefulSet from a manifest stored in fileName in the Namespace indicated by ns.

func SvcFromManifest

func SvcFromManifest(fileName string) (*v1.Service, error)

SvcFromManifest reads a .json/yaml file and returns the service in it.

Source Files

manifest.go

Version
v1.16.13
Published
Jul 15, 2020
Platform
js/wasm
Imports
12 packages
Last checked
9 minutes ago

Tools for package owners.