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

Add compatibility ID field for OCP base resource type #460

Merged
merged 1 commit into from
Jul 25, 2023

Conversation

yaacov
Copy link
Member

@yaacov yaacov commented Jul 25, 2023

Add compatibility ID field for OCP base resource type

Why this is needed:
Users of forklift API (for example the UI) expect an "id" json field and not a "uid" field.

@yaacov yaacov requested a review from bennyz July 25, 2023 08:42
@yaacov yaacov requested a review from ahadas as a code owner July 25, 2023 08:42
Path string `json:"path,omitempty"`

// forklift ID, for compatability with providers using ID instead of UID
ID string `json:"id"`
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
ID string `json:"id"`
ID string `json:"id,omitempty"`

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed

@yaacov yaacov force-pushed the add-base-id-field-for-ocp branch from 3aa535a to 243e1aa Compare July 25, 2023 08:43
@sonarcloud
Copy link

sonarcloud bot commented Jul 25, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@bennyz bennyz merged commit 52e7964 into kubev2v:main Jul 25, 2023
6 of 7 checks passed
@ahadas
Copy link
Member

ahadas commented Jul 25, 2023

@yaacov @bennyz so how about deprecating the UID field?

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.

3 participants