-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support multiple resources in the editor (#549) #551
Conversation
489ec3b
to
3101398
Compare
ad22275
to
9a815e7
Compare
1b626ec
to
395ed53
Compare
Signed-off-by: Andre Dietisheim <[email protected]>
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
@sbouchet, @robstryker. @jeffmaury: Please test this PR. Thanks! I wrote down 3 scenarios. ScenariosCreate resources
Expected Result:
Update resources
Expected Result: Delete and Recreate
Expected Result: Multi-resource document (2 pods, 2 service, 1 ingress)kind: Pod
apiVersion: v1
metadata:
name: apple-app
labels:
app: apple
spec:
containers:
- name: apple-app
image: hashicorp/http-echo
args:
- "-text=apple"
---
kind: Service
apiVersion: v1
metadata:
name: apple-service
spec:
selector:
app: apple
ports:
- port: 5678 # Default port for image
---
kind: Pod
apiVersion: v1
metadata:
name: banana-app
labels:
app: banana
spec:
containers:
- name: banana-app
image: hashicorp/http-echo
args:
- "-text=banana"
---
kind: Service
apiVersion: v1
metadata:
name: banana-service
spec:
selector:
app: banana
ports:
- port: 5678 # Default port for image
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: example-ingress
annotations:
ingress.kubernetes.io/rewrite-target: /
spec:
rules:
- http:
paths:
- pathType: Exact
path: /apple
backend:
service:
name: apple-service
port:
number: 5678
- pathType: Exact
path: /banana
backend:
service:
name: banana-service
port:
number: 5678 |
Thanks for spotting this, I could replicate it. It is not related to the support for multiple resources in an editor, it also happens when you edit a pod in his very own editor. This does not happen for me when I add a label to one of the services. This error seems related to the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Played around to create/modify/delete resources on minikube. LGTM
fixes #549