Comments (5)
Also i would LOVE to be able to provide an annotation that suggested necessary dependency assets
annotations:
sensio.io.bonsai.url: "https://bonsai.sensu.io/assets/jspaleta/sensu-plugins-cpu-checks"
sensio.io.bonsai.tier: "Community"
sensio.io.bonsai.version: "4.0.0-pre"
sensio.io.bonsai.suggested_runtime_asset: "https://bonsai.sensu.io/assets/sensu/sensu-ruby-runtime"
sensio.io.bonsai.suggested_runtime_asset_version: "0.0.5"
sensio.io.bonsai.tags: "experimental, ruby-runtime"
Now in this example i'm treating runtime
as a very special case and one that exists right now to make the ruby plugins work as assets. I explicitly state is a suggestion as a breadcrumb for users.
The more general case is that assets can depend on an array of other assets, which is a bit harder.. we'd have to encode that list as a json string packed into a single annotation. That get's complicated and messy.
from bonsai.
I've added what I've called common annotations that can be generated from the data. If you add any key value pair to the bonsai.yml annotations key, it will be incorporated into the annotations generated on download.
from bonsai.
Just pulled the asset config from:
https://bonsai-asset-index-staging.herokuapp.com/assets/sensu-plugins/sensu-plugins-cpu-checks
A few problems in the metadata section
- the sensu.io.bonsai.tags must be a string or null or it won't parse correctly into sensuctl
the sensu.io.bonsai.tags: []
should read as
the sensu.io.bonsai.tags: null
when there are no tags.
- labels/annotations should read as null if no labels/annotions are defined
labels: []
should read as
labels: null
-
version is not valid
-
namespace should always be default, the sensu concept of namespace isn't the same as the github user namespace.
Problems with the spec section
-
asset_url key should not exist, value there should be reported in the url key
-
last_modified should be an annotation perhaps sensu.io.bonsai.last_modified
from bonsai.
Here's a version of the config with corrections. Original lines are prefixed with ##
---
type: Asset
api_version: core/v2
metadata:
name: sensu-plugins-cpu-checks
##namespace: sensu-plugins
namespace: default
##labels: []
labels: null
##version: 4.0.0
annotations:
sensio.io.bonsai.url: https://s3.us-west-2.amazonaws.com/staging.assets.bonsai.sensu.io/68546e739d96fd695655b77b35b5aabfbabeb056/sensu-plugins-cpu-checks_4.0.0_alpine_linux_amd64.tar.gz
sensio.io.bonsai.tier: Community
sensio.io.bonsai.version: 4.0.0
##sensio.io.bonsai.tags: []
sensio.io.bonsai.tags: null
spec:
url: https://github.com/sensu-plugins/sensu-plugins-cpu-checks/releases/download/4.0.0/sensu-plugins-cpu-checks_4.0.0_alpine_linux_amd64.tar.gz
sha512: b2da25ecd7642e6de41fde37d674fe19dcb6ee3d680e145e32289f7cfc352e6b5f9413ee9b701d61faeaa47b399aa30b25885dbc1ca432c4061c8823774c28f3
##asset_url: https://s3.us-west-2.amazonaws.com/staging.assets.bonsai.sensu.io/68546e739d96fd695655b77b35b5aabfbabeb056/sensu-plugins-cpu-checks_4.0.0_alpine_linux_amd64.tar.gz
##last_modified: '2019-05-14T17:11:12.000Z'
filters:
- entity.system.os == 'linux'
- entity.system.arch == 'amd64'
- entity.system.platform == 'alpine'
from bonsai.
url should point to base url of asset on bonsai
from bonsai.
Related Issues (20)
- Not-a-collaborator error when adding new asset to Bonsai HOT 2
- Deprecation not working HOT 3
- Add support for requesting builds for a specific tag/release
- DISCUSS: unregistering/removing/deleting assets from Bonsai HOT 1
- Expose programming language from Github repo in Bonsai
- Collaborator check when trying to add new assets doesn't pick up team roles HOT 6
- Only show asset error messages to admins and maintainers
- shasum verification error when compiling releases for prvate repo HOT 2
- Feature Request: On-prem bonsai storage options
- Upgrade Heroku Postgres Instance
- Bug: Unauthorized access to contributors url error prevents recompile of asset. HOT 1
- Production Bug: Review sendgrid integration.
- Feature Enhancement: provide logic to replace cached auth token if it fails with active user github auth token. HOT 3
- Feature Enhancement: Create a way for super-admins to destroy an asset record and recreate. HOT 1
- Bug: saving into S3 bucket no longer working in staging.
- Bug: Github api rate limiting due to using cached token auth
- Enhancement: Change webhook logic to look for completed workflow_job
- Bug: ExceptionController.action(:show) has InvalidAuthenticationToken errors
- Bug: recompiling private repo results in seemingly hung process if your oauth scopes are wrong HOT 1
- Owner Access for Plugins Published From an Organizational Repo
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bonsai.