You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The apply_cmd ... should output the YAML of the objects it applied to the Kubernetes cluster to stdout. Tilt will track workload status and stream pod logs based on this result.
Work Around:
Currently, we are using a script like this to get the YAML manifest of all resources deployed by timoni:
#!/bin/bash# Run timoni apply command and pipe the output to the while loop with prefix "#" to comment it out in YAML format# Could have also ignored the output except if there is an error
timoni apply $RELEASE ./ --namespace $NAMESPACE2>&1|whileread line;doecho"# $line";done# Run timoni inspect resources and store the output
resources=$(timoni inspect resources $RELEASE --namespace $NAMESPACE)# Skip the header line and parse each resourceecho"$resources"| tail -n +2 |whileread -r line;doecho"---"# Separator between resources# Extract resource type and name
resource_type=$(echo "$line"| awk '{print $1}'| cut -d/ -f1)
resource_name=$(echo "$line"| awk '{print $1}'| cut -d/ -f2)
namespace=$(echo "$line"| awk '{print $2}')# Generate and run kubectl get command
kubectl get "$resource_type""$resource_name" --namespace "$namespace" --output YAML
done
Expected Outcome:
> Add a new flag for timoni inspect resources called --output with values table, yaml or json which can be used to get the YAML manifest of all resources deployed by timoni.
This great tool saves us a lot of time by abstracting CUE for Kubernetes.
Kudos! and much appreciation! 🙏
The text was updated successfully, but these errors were encountered:
rrmistry
changed the title
[Feature] Show table/YAML/JSON format for timoni inspect resources command
[Feature] Show output in either table/yaml/json format for timoni inspect resources command
Dec 12, 2024
Business Problem Being Solved For
> External tool requires YAML manifests of all resources deployed by timoni
Context:
Currently, we are using Tilt which requires the YAML manifest of all resources deployed by an external tool (in this case timoni)
Reference:
k8s_custom_deploy
Excerpt:
Work Around:
Currently, we are using a script like this to get the YAML manifest of all resources deployed by timoni:
Expected Outcome:
> Add a new flag for
timoni inspect resources
called--output
with valuestable
,yaml
orjson
which can be used to get the YAML manifest of all resources deployed by timoni.This great tool saves us a lot of time by abstracting CUE for Kubernetes.
Kudos! and much appreciation! 🙏
The text was updated successfully, but these errors were encountered: