github.com/yrj2011/jx-test-infra@v0.0.0-20190529031832-7a2065ee98eb/prow/kube/types.go (about) 1 /* 2 Copyright 2016 The Kubernetes Authors. 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15 */ 16 17 package kube 18 19 import ( 20 "k8s.io/api/core/v1" 21 metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" 22 ) 23 24 // TODO: Drop all of these, please! 25 26 // ObjectMeta is a kubernetes v1 ObjectMeta 27 type ObjectMeta = metav1.ObjectMeta 28 29 // Pod is a kubernetes v1 Pod 30 type Pod = v1.Pod 31 32 // PodTemplateSpec is a kubernetes v1 PodTemplateSpec 33 type PodTemplateSpec = v1.PodTemplateSpec 34 35 // PodSpec is a kubernetes v1 PodSpec 36 type PodSpec = v1.PodSpec 37 38 // PodStatus is a kubernetes v1 PodStatus 39 type PodStatus = v1.PodStatus 40 41 // Phase constants 42 const ( 43 PodPending = v1.PodPending 44 PodRunning = v1.PodRunning 45 PodSucceeded = v1.PodSucceeded 46 PodFailed = v1.PodFailed 47 PodUnknown = v1.PodUnknown 48 ) 49 50 // PodStatus constants 51 const ( 52 Evicted = "Evicted" 53 ) 54 55 // Container is a kubernetes v1 Container 56 type Container = v1.Container 57 58 // Port is a kubernetes v1 ContainerPort 59 type Port = v1.ContainerPort 60 61 // EnvVar is a kubernetes v1 EnvVar 62 type EnvVar = v1.EnvVar 63 64 // Volume is a kubernetes v1 Volume 65 type Volume = v1.Volume 66 67 // VolumeMount is a kubernetes v1 VolumeMount 68 type VolumeMount = v1.VolumeMount 69 70 // VolumeSource is a kubernetes v1 VolumeSource 71 type VolumeSource = v1.VolumeSource 72 73 // EmptyDirVolumeSource is a kubernetes v1 EmptyDirVolumeSource 74 type EmptyDirVolumeSource = v1.EmptyDirVolumeSource 75 76 // SecretSource is a kubernetes v1 SecretVolumeSource 77 type SecretSource = v1.SecretVolumeSource 78 79 // ConfigMapSource is a kubernetes v1 ConfigMapVolumeSource 80 type ConfigMapSource = v1.ConfigMapVolumeSource 81 82 // ConfigMap is a kubernetes v1 ConfigMap 83 type ConfigMap = v1.ConfigMap 84 85 // Secret is a kubernetes v1 secret 86 type Secret = v1.Secret