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

[minor_change] Add datasource and resource for fvFBRoute in aci_vrf_f… #1227

Merged
merged 4 commits into from
Jul 3, 2024

Conversation

akinross
Copy link
Collaborator

…allback_route and aci_vrf_fallback_route_group

fixes #1185

@akinross
Copy link
Collaborator Author

CI failing because of introduced dependency in main.go, please ignore during review asked @samiib already to have a look

anvitha-jain
anvitha-jain previously approved these changes May 31, 2024
@codecov-commenter
Copy link

codecov-commenter commented May 31, 2024

Codecov Report

Attention: Patch coverage is 90.02890% with 69 lines in your changes missing coverage. Please review.

Project coverage is 85.24%. Comparing base (c9b51cd) to head (170e508).

Files Patch % Lines
...ternal/provider/resource_aci_vrf_fallback_route.go 86.51% 35 Missing and 18 partials ⚠️
...nal/provider/data_source_aci_vrf_fallback_route.go 92.30% 6 Missing and 2 partials ⚠️
.../provider/resource_aci_vrf_fallback_route_group.go 93.38% 5 Missing and 3 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1227      +/-   ##
==========================================
+ Coverage   85.08%   85.24%   +0.15%     
==========================================
  Files          59       61       +2     
  Lines       16619    17263     +644     
==========================================
+ Hits        14140    14715     +575     
- Misses       1802     1848      +46     
- Partials      677      700      +23     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@samiib
Copy link
Collaborator

samiib commented May 31, 2024

CI failing because of introduced dependency in main.go, please ignore during review asked @samiib already to have a look

@akinross

I tried adding the new dependency as an import in generator.go to force it to be downloaded to vendor but that wasn't working. See: edfdf7b
import "golang.org/x/tools/cmd/goimports" is a program, not an importable package

I don't see any other way to get this into vendor as it's not really intended to be used to vendor programs. The vendor command will only find packages required to build the provider and other programs are not really required to build it, just generate it.

For now I got around this by adding -mod=mod to the single generate command.

@lhercot - This may be the one exception to having everything in vendor. What do you think?

sajagana
sajagana previously approved these changes Jun 5, 2024
Copy link
Collaborator

@sajagana sajagana left a comment

Choose a reason for hiding this comment

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

LGTM!

anvitha-jain
anvitha-jain previously approved these changes Jun 10, 2024
gen/definitions/classes.yaml Show resolved Hide resolved
shrsr
shrsr previously approved these changes Jun 12, 2024
@samiib samiib dismissed stale reviews from shrsr, anvitha-jain, and sajagana via c48b6c1 June 12, 2024 23:37
@samiib
Copy link
Collaborator

samiib commented Jun 13, 2024

CI failing because of introduced dependency in main.go, please ignore during review asked @samiib already to have a look

@akinross

I tried adding the new dependency as an import in generator.go to force it to be downloaded to vendor but that wasn't working. See: edfdf7b import "golang.org/x/tools/cmd/goimports" is a program, not an importable package

I don't see any other way to get this into vendor as it's not really intended to be used to vendor programs. The vendor command will only find packages required to build the provider and other programs are not really required to build it, just generate it.

For now I got around this by adding -mod=mod to the single generate command.

@lhercot - This may be the one exception to having everything in vendor. What do you think?

Thank you @lhercot for suggesting a different method of specifying the tool dependency in the provider.
I committed the change and the vendor files to the PR and this is working well in the CI now.

main.go Outdated Show resolved Hide resolved
@akinross akinross requested a review from samiib June 18, 2024 12:57
anvitha-jain
anvitha-jain previously approved these changes Jun 18, 2024
samiib
samiib previously approved these changes Jun 19, 2024
Copy link
Collaborator

@samiib samiib left a comment

Choose a reason for hiding this comment

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

LGTM

sajagana
sajagana previously approved these changes Jun 26, 2024
Copy link
Collaborator

@sajagana sajagana left a comment

Choose a reason for hiding this comment

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

LGTM!

docs/resources/vrf_fallback_route.md Outdated Show resolved Hide resolved
@akinross akinross requested a review from lhercot July 2, 2024 06:23
@akinross akinross dismissed stale reviews from sajagana, samiib, and anvitha-jain via b16c75d July 2, 2024 11:46
samiib
samiib previously approved these changes Jul 2, 2024
Copy link
Collaborator

@samiib samiib left a comment

Choose a reason for hiding this comment

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

LGTM

lhercot
lhercot previously approved these changes Jul 2, 2024
Copy link
Member

@lhercot lhercot left a comment

Choose a reason for hiding this comment

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

LGTM

…allback_route and aci_vrf_fallback_route_group
@akinross akinross dismissed stale reviews from lhercot and samiib via 962f137 July 2, 2024 20:24
Copy link
Member

@lhercot lhercot left a comment

Choose a reason for hiding this comment

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

LGTM

@lhercot lhercot merged commit bd77190 into CiscoDevNet:master Jul 3, 2024
4 checks passed
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.

Create a new resource and data source for the aci_fallback_route(fvFBRoute)
7 participants