You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
I have created an EC2 instnace, and an Elastic IP, which references the instance.
After the instance is deleted and recreated, EIP is not re-attached to the new instance.
(Workaround: manually remove spec.forProvider.instance from EIP.)
How can we reproduce it?
Create an EC2 instance:
apiVersion: ec2.aws.jet.crossplane.io/v1alpha2
kind: Instance
metadata:
name: test-server
spec:
providerConfigRef:
name: aws-provider
forProvider:
region: eu-west-2 # or any other, as long as it is same as eip
# Not important for reproduction, whatever you need to have a running instance
[...]
Create an EIP:
apiVersion: ec2.aws.jet.crossplane.io/v1alpha2
kind: EIP
metadata:
name: test-eip
spec:
providerConfigRef:
name: aws-provider
forProvider:
region: eu-west-2 # or any other, as long as it is same as instance
vpc: true
instanceRef:
name: test-server
Apply both instance and EIP manifests, and observe they are synchronised and ready.
kubectl delete instance.ec2.aws.jet.crossplane.io/test-server, and reapply instance manifest.
After instance is synchronised and ready, observe EIP is not reattached.
What happened?
I have created an EC2 instnace, and an Elastic IP, which references the instance.
After the instance is deleted and recreated, EIP is not re-attached to the new instance.
(Workaround: manually remove
spec.forProvider.instancefrom EIP.)How can we reproduce it?
kubectl delete instance.ec2.aws.jet.crossplane.io/test-server, and reapply instance manifest.What environment did it happen in?
Crossplane version: v0.5.0-preview
EKS: 1.21