Skip to content
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

when security group yaml make an error and applyed,the sg rules work properly,some rules deleted and the egress rule is empty #2189

Open
Scumwong opened this issue Oct 10, 2024 · 2 comments
Labels
service/ec2 Indicates issues or PRs that are related to ec2-controller.

Comments

@Scumwong
Copy link

Describe the bug
when security group yaml make an error and applyed,the sg rules work properly,some rules deleted and the egress rule is empty
I installed the latest version of ec2-controller and still get the same error
Steps to reproduce

Expected outcome
A concise description of what you expected to happen.

Environment

  • Kubernetes version
  • Using EKS (yes/no), if so version? yes
  • AWS service targeted (S3, RDS, etc.)
@a-hilaly
Copy link
Member

Hi @Scumwong - can you please share an example of the yaml file you're trying to apply and a concise description of what you expect to happen?

@a-hilaly a-hilaly added the service/ec2 Indicates issues or PRs that are related to ec2-controller. label Oct 10, 2024
@Scumwong
Copy link
Author

Scumwong commented Oct 10, 2024

`apiVersion: ec2.services.k8s.aws/v1alpha1
kind: SecurityGroup
metadata:
name: test-sg
spec:
description: http
egressRules:

  • fromPort: 0
    ipProtocol: '-1'
    ipRanges:
    • cidrIP: 0.0.0.0/0
      description: ''
      toPort: 0
      ingressRules:
  • fromPort: 80
    ipProtocol: tcp
    ipRanges:
    • cidrIP: 0.0.0.0/0
      description:
    • cidrIP: 0.0.0.0/0
      description:
      toPort: 8080
      name: test-sg
      vpcID: vpc-05ffcf85f078678`

Just like the yaml above,there is repeated rule.when i apply the yaml ,error occers and shows that repeated rule,and the sg got no rule,include egress.What i want is that when there are incorrect configurations,the log shows the erroe,but do not affect the previous security group rule

@a-hilaly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
service/ec2 Indicates issues or PRs that are related to ec2-controller.
Projects
None yet
Development

No branches or pull requests

2 participants