mirror of https://github.com/k3s-io/k3s
Merge pull request #2391 from lavalamp/fix3
Remove confusing function; add TODO and explanation for (nonfatal) error...pull/6/head
commit
8a508bcce3
|
@ -646,6 +646,7 @@ func ServeCachedManifestFile() (servingAddress string) {
|
|||
const (
|
||||
// This is copied from, and should be kept in sync with:
|
||||
// https://raw.githubusercontent.com/GoogleCloudPlatform/container-vm-guestbook-redis-python/master/manifest.yaml
|
||||
// Note that kubelet complains about these containers not having a self link.
|
||||
testManifestFile = `version: v1beta2
|
||||
id: container-vm-guestbook
|
||||
containers:
|
||||
|
|
|
@ -268,11 +268,6 @@ func (self *podWorkers) Run(podFullName string, action func()) {
|
|||
}()
|
||||
}
|
||||
|
||||
// LogEvent reports an event.
|
||||
func (kl *Kubelet) LogEvent(event *api.Event) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func makeEnvironmentVariables(container *api.Container) []string {
|
||||
var result []string
|
||||
for _, value := range container.Env {
|
||||
|
@ -404,6 +399,9 @@ func fieldPath(pod *api.BoundPod, container *api.Container) (string, error) {
|
|||
// containerRef returns an *api.ObjectReference which references the given container within the
|
||||
// given pod. Returns an error if the reference can't be constructed or the container doesn't
|
||||
// actually belong to the pod.
|
||||
// TODO: Pods that came to us by static config or over HTTP have no selfLink set, which makes
|
||||
// this fail and log an error. Figure out how we want to identify these pods to the rest of the
|
||||
// system.
|
||||
func containerRef(pod *api.BoundPod, container *api.Container) (*api.ObjectReference, error) {
|
||||
fieldPath, err := fieldPath(pod, container)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue