Comments (3)
@jimi-c Could you list out what the valuable pieces for every event might be? This would help us determine what useful info to expose is.
from ansible-operator.
@shawn-hurley / @mhrivnak the doc for what runner sends back is here:
https://ansible-runner.readthedocs.io/en/latest/intro.html#runner-artifact-job-events-host-and-playbook-events
It looks like the best course of action would be to print the stdout
field from the data blob if that key exists, otherwise print the event_data (or the entire blob, if people prefer). Within event data, as I said in chat, there are pretty much only 2-3 fields that stay static: rc
, changed
and failed
. The failed
key is not always set in the data, but if it is there should also be a corresponding msg
field (though that is not strictly enforced). You could look for that though, if you wanted to do some special logging to highlight failures or to trigger other events.
from ansible-operator.
Generally if there is anything in the event{} data structure then you'll have a stdout
entry. If you're needing to display some content then you can pretty well rely on there being something in there... otherwise you can just throw away and not display any data.
This is the code Tower relies on to drive its own display.
from ansible-operator.
Related Issues (14)
- improvements to config file
- duplicate GVK in config file should fail startup
- Accept path to watches file as a command line arg or environment variable
- Document how to add additional modules/dependencies for Ansible to operator's image.
- Should allow for a use case where proxy is not run
- rename config.yaml HOT 1
- Proxy should be able to use generated certs to communicate over SSL HOT 1
- resourceVersion for the provided watch is too old HOT 1
- Proxy code leads to resources being created by `system:anonymous` leads to 403 HOT 2
- As a human, I find the output of the ansible-operator difficult to read HOT 4
- Latest Build is Broken HOT 3
- Reconcile running all the time
- Stacktrace resource is missing HOT 1
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 ansible-operator.