Skip to content

Changed AVIInfraSettingCR Name #1727

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

Open
wants to merge 1 commit into
base: release-1.12.1-tkg
Choose a base branch
from

Conversation

Rishabh-Baranwal
Copy link
Contributor

@Rishabh-Baranwal Rishabh-Baranwal commented Apr 14, 2025

Issue : VPC with name "VPC-foo" gets used as name for AVIInfraSetting CR which is not DNS compliant. As a result, AVIInfraSetting CR won't get created.
Fix : Create hash of project name and vpc name, and use it as AVIInfraSetting CR name.
For parity, same change has been done in case of T1 based WCP environment.

@avijenkins
Copy link
Collaborator

Can one of the admins verify this patch?

project := strings.Split(arr[0], "/projects/")[1]
tenant, err := getTenantForProject(project)
projectArr := strings.Split(arr[0], "/projects/")
infraSettingName := lib.GetAviInfraSettingName(projectArr[len(projectArr)-1] + arr[len(arr)-1])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's put a delimiter between project name and vpc name, for ex - project + "-" + vpc

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

Successfully merging this pull request may close these issues.

4 participants