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
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion pkg/controller/provider/web/ocp/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@ type Resource struct {
Name string `json:"name"`
// self link.
SelfLink string `json:"selfLink"`

// self path.
Path string `json:"path,omitempty"`

// forklift ID, for compatability with providers using ID instead of UID
ID string `json:"id,omitempty"`
}

// Populate the fields with the specified object.
Expand All @@ -26,4 +29,6 @@ func (r *Resource) With(m *model.Base) {
r.Version = m.Version
r.Namespace = m.Namespace
r.Name = m.Name

r.ID = m.UID
}
Loading