Unable to update plugins using miactl #589
Replies: 2 comments
-
Hi @dallas-fletchall and thank you for reaching out. Your expectation seems reasonable, but a few validations happen under the hood when updating a versioned marketplace resource. To better understand the situation here: |
Beta Was this translation helpful? Give feedback.
-
We worked through some of the issues that we were having. The conclusion that we came to is that multiple properties retrieved from Having Deleting from the Additionally, some items are just disregarded without warning (e.g. Finally, images uploaded with We worked around these issues by implementing steps in the pipeline to validate known issues for our use case based on the schema below. Is there a better schema that we can modify to meet our use case? {
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"additionalProperties": true,
"required": [
"image",
"supportedByImage",
"supportedBy",
"visibility"
],
"properties": {
"_id": {
"not": {}
},
"releaseDate": {
"not": {}
},
"isLatest": {
"not": {}
},
"imageUrl": {
"not": {}
},
"supportedByImageUrl": {
"not": {}
},
"visibility": {
"type": "object",
"properties": {
"allTenants": {
"type": "boolean"
},
"public": {
"not": {}
}
},
"required": [
"allTenants"
]
},
"supportedBy": {
"type": "string"
},
"supportedByImage": {
"type": "object",
"properties": {
"localPath": {
"type": "string"
}
},
"required": [
"localPath"
]
},
"image": {
"type": "object",
"properties": {
"localPath": {
"type": "string"
}
},
"required": [
"localPath"
]
}
}
} Ultimately, my original expectation still holds. If a property is supplied that cannot be accepted, a non-zero response should be returned (erroring on unknown and unexpected properties would make sense as well). |
Beta Was this translation helpful? Give feedback.
-
What product are you having troubles with?
Marketplace
What Console version are you using?
1.112.1
Description
Based on declarative-approach docs, specifically this section, I should be able to update an item's description (at the very least).
We have a working set of github actions, but it refuses to update items. Using a service account with clientId and clientSecret, we are can upload a new item, but are unable to modify an existing item. Below are the relevant sections of the action.
Actual Outcome
Taking a previous item that was created using the above github action, we update the
.description
, and were provided with the output below as the result ofmiactl marketplace apply --file-path /some/path
:Each instance of the plugin with the same objectId is a version of the plugin.
Expected Outcome
I would expect 1 of 2 possible outcomes.
/some/path
/some/path
, including the updated descriptionBeta Was this translation helpful? Give feedback.
All reactions