-
Notifications
You must be signed in to change notification settings - Fork 929
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 appGUID attribute to droplet resource [main] #2932
base: main
Are you sure you want to change the base?
Conversation
PR on v8 branch : 2933 |
edb7507
to
0d0ada0
Compare
type Data struct { | ||
GUID string `json:"guid,omitempty"` | ||
} | ||
|
||
type RelationshipData struct { | ||
Data Data `json:"data,omitempty"` | ||
} | ||
|
||
type Relationships struct { | ||
App RelationshipData `json:"app,omitempty"` | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any particular reason for the difference between these structs and the ones for the unmarshal (named structs vs anonymous structs)? My suggestion is if we are keeping these inside functions personally I would prefer to have them anonymous.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gmllt wanted to follow up. Do you have any feedback on this?
0d0ada0
to
629e8a1
Compare
629e8a1
to
6ee45ec
Compare
6ee45ec
to
a28ccbd
Compare
@dependabot rebase |
a28ccbd
to
05b3910
Compare
05b3910
to
ac24a3c
Compare
Where this PR should be backported?
Description of the Change
The V3 API allows you to access to the relationships existing beween a droplet and its related app.
This PR make this relationship visible trough a new
AppGUID
attribute in the resourcedroplet
.The community
cf_exporter
currently use the/v2/spaces/:guid/summary
endpoint to gain access to buildpack associated to an application. Have this relationship visible would help get rid of calls on this endpoint and retrieve buildpacks attached to an application through its droplets.This feature is necessary for applications using the cli product in go development to established relationship between an
application
resource and its droplets.This feature will not cause breaking change.