Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Two containers in same Pod without name should throw error #32

Closed
kadel opened this issue Jun 19, 2017 · 0 comments
Closed

Two containers in same Pod without name should throw error #32

kadel opened this issue Jun 19, 2017 · 0 comments
Labels

Comments

@kadel
Copy link
Member

kadel commented Jun 19, 2017

name: test

containers:
- image: quay.io/tomkral/nonroot-nginx
- image: quay.io/tomkral/sleeper

the result is invalid:

apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  creationTimestamp: null
  labels:
    app: test
  name: test
spec:
  strategy: {}
  template:
    metadata:
      creationTimestamp: null
      labels:
        app: test
      name: test
    spec:
      containers:
      - image: quay.io/tomkral/nonroot-nginx
        name: ""
        resources: {}
      - image: quay.io/tomkral/sleeper
        name: ""
        resources: {}
status: {}

I expected this to throw error saying that if there are multiple containers they have to have unique names

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant