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

Make the eniconfig name as string in the template. #2990

Open
orsenthil opened this issue Jul 19, 2024 · 2 comments
Open

Make the eniconfig name as string in the template. #2990

orsenthil opened this issue Jul 19, 2024 · 2 comments
Labels

Comments

@orsenthil
Copy link
Member

When an ENIConfig with name is given a number, instead of string,

apiVersion: crd.k8s.amazonaws.com/v1alpha1
kind: ENIConfig
metadata:
    name: 3
    namespace: kube-system
spec:
    securityGroups:
        - sg-xx
        - sg-xx2
    subnet: subnet-xxx

the helm chart apply throws an error stating

unable to ssa object &{Object:map ... } ... name is required

We have to make the eniconfig name as string in the template.

@orsenthil orsenthil added the bug label Jul 19, 2024
@yash97
Copy link
Contributor

yash97 commented Jul 19, 2024

From the values.yaml, It seems like key is expected to be AZ:-

.
Readme of charts also confirms that - https://github.com/aws/amazon-vpc-cni-k8s/blob/master/charts/aws-vpc-cni/README.md#configuration. But in code I do not see this name being used anywhere.

@orsenthil
Copy link
Member Author

I think, it is the metadata.name spec that is asserting the type here - https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#metadata

In docs, we recommend the AZ name, previously used to have a suffix-with AZ name.
Not sure, how the customer generated the ENIConfig; but they ended up creating a number for name,that threw that error.

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

No branches or pull requests

2 participants