Skip to content
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

Show YAML #35

Merged
merged 3 commits into from
Jun 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions library/Kubernetes/Model/ConfigMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public function getColumnDefinitions()
'uid' => $this->translate('UID'),
'resource_version' => $this->translate('Resource Version'),
'immutable' => $this->translate('Immutable'),
'yaml' => $this->translate('YAML'),
'created' => $this->translate('Created At')
];
}
Expand All @@ -62,6 +63,7 @@ public function getColumns()
'uid',
'resource_version',
'immutable',
'yaml',
'created'
];
}
Expand Down
2 changes: 2 additions & 0 deletions library/Kubernetes/Model/CronJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ public function getColumnDefinitions()
'active' => $this->translate('Active'),
'last_schedule_time' => $this->translate('Last Schedule Time'),
'last_successful_time' => $this->translate('Last Successful Time'),
'yaml' => $this->translate('YAML'),
'created' => $this->translate('Created At')
];
}
Expand All @@ -77,6 +78,7 @@ public function getColumns()
'active',
'last_schedule_time',
'last_successful_time',
'yaml',
'created'
];
}
Expand Down
2 changes: 2 additions & 0 deletions library/Kubernetes/Model/DaemonSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ public function getColumnDefinitions()
'number_unavailable' => $this->translate('Number Unavailable'),
'icinga_state' => $this->translate('Icinga State'),
'icinga_state_reason' => $this->translate('Icinga State Reason'),
'yaml' => $this->translate('YAML'),
'created' => $this->translate('Created At')
];
}
Expand All @@ -87,6 +88,7 @@ public function getColumns()
'number_unavailable',
'icinga_state',
'icinga_state_reason',
'yaml',
'created'
];
}
Expand Down
2 changes: 2 additions & 0 deletions library/Kubernetes/Model/Deployment.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ public function getColumnDefinitions()
'unavailable_replicas' => $this->translate('Unavailable Replicas'),
'icinga_state' => $this->translate('Icinga State'),
'icinga_state_reason' => $this->translate('Icinga State Reason'),
'yaml' => $this->translate('YAML'),
'created' => $this->translate('Created At')
];
}
Expand All @@ -97,6 +98,7 @@ public function getColumns()
'unavailable_replicas',
'icinga_state',
'icinga_state_reason',
'yaml',
'created'
];
}
Expand Down
1 change: 1 addition & 0 deletions library/Kubernetes/Model/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ public function getColumns()
'first_seen',
'last_seen',
'count',
'yaml',
'created'
];
}
Expand Down
2 changes: 2 additions & 0 deletions library/Kubernetes/Model/Ingress.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public function getColumnDefinitions()
'name' => $this->translate('Name'),
'uid' => $this->translate('UID'),
'resource_version' => $this->translate('Resource Version'),
'yaml' => $this->translate('YAML'),
'created' => $this->translate('Created At')
];
}
Expand All @@ -55,6 +56,7 @@ public function getColumns()
'name',
'uid',
'resource_version',
'yaml',
'created'
];
}
Expand Down
2 changes: 2 additions & 0 deletions library/Kubernetes/Model/Job.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ public function getColumnDefinitions()
'active' => $this->translate('Active'),
'succeeded' => $this->translate('Succeeded'),
'failed' => $this->translate('Failed'),
'yaml' => $this->translate('YAML'),
'created' => $this->translate('Created At')
];
}
Expand All @@ -90,6 +91,7 @@ public function getColumns()
'active',
'succeeded',
'failed',
'yaml',
'created'
];
}
Expand Down
2 changes: 2 additions & 0 deletions library/Kubernetes/Model/NamespaceModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public function getColumnDefinitions()
'uid' => $this->translate('UID'),
'resource_version' => $this->translate('Resource Version'),
'phase' => $this->translate('Phase'),
'yaml' => $this->translate('YAML'),
'created' => $this->translate('Created At')
];
}
Expand All @@ -61,6 +62,7 @@ public function getColumns()
'uid',
'resource_version',
'phase',
'yaml',
'created'
];
}
Expand Down
2 changes: 2 additions & 0 deletions library/Kubernetes/Model/Node.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ public function getColumnDefinitions()
'kube_proxy_version' => $this->translate('KubeProxy Version'),
'icinga_state' => $this->translate('Icinga State'),
'icinga_state_reason' => $this->translate('Icinga State Reason'),
'yaml' => $this->translate('YAML'),
'created' => $this->translate('Created At')
];
}
Expand Down Expand Up @@ -111,6 +112,7 @@ public function getColumns()
'kube_proxy_version',
'icinga_state',
'icinga_state_reason',
'yaml',
'created'
];
}
Expand Down
2 changes: 2 additions & 0 deletions library/Kubernetes/Model/PersistentVolume.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ public function getColumnDefinitions()
'volume_source_type' => $this->translate('Volume Source Type'),
'storage_class' => $this->translate('Storage Class'),
'reclaim_policy' => $this->translate('Reclaim Policy'),
'yaml' => $this->translate('YAML'),
'created' => $this->translate('Created At')
];
}
Expand All @@ -81,6 +82,7 @@ public function getColumns()
'volume_source_type',
'storage_class',
'reclaim_policy',
'yaml',
'created'
];
}
Expand Down
2 changes: 2 additions & 0 deletions library/Kubernetes/Model/PersistentVolumeClaim.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ public function getColumnDefinitions()
'volume_name' => $this->translate('Volume Name'),
'volume_mode' => $this->translate('Volume Mode'),
'storage_class' => $this->translate('Storage Class'),
'yaml' => $this->translate('YAML'),
'created' => $this->translate('Created At')
];
}
Expand All @@ -97,6 +98,7 @@ public function getColumns()
'volume_name',
'volume_mode',
'storage_class',
'yaml',
'created'
];
}
Expand Down
2 changes: 2 additions & 0 deletions library/Kubernetes/Model/Pod.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ public function getColumnDefinitions()
'reason' => $this->translate('Phase Reason'),
'message' => $this->translate('Phase Message'),
'qos' => $this->translate('Quality of Service'),
'yaml' => $this->translate('YAML'),
'created' => $this->translate('Created At')
];
}
Expand All @@ -149,6 +150,7 @@ public function getColumns()
'reason',
'message',
'qos',
'yaml',
'created'
];
}
Expand Down
2 changes: 2 additions & 0 deletions library/Kubernetes/Model/ReplicaSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ public function getColumnDefinitions()
'available_replicas' => $this->translate('Available Replicas'),
'icinga_state' => $this->translate('Icinga State'),
'icinga_state_reason' => $this->translate('Icinga State Reason'),
'yaml' => $this->translate('YAML'),
'created' => $this->translate('Created At')
];
}
Expand All @@ -89,6 +90,7 @@ public function getColumns()
'available_replicas',
'icinga_state',
'icinga_state_reason',
'yaml',
'created'
];
}
Expand Down
1 change: 1 addition & 0 deletions library/Kubernetes/Model/Secret.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public function getColumns()
'resource_version',
'type',
'immutable',
'yaml',
'created'
];
}
Expand Down
2 changes: 2 additions & 0 deletions library/Kubernetes/Model/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ public function getColumnDefinitions()
'allocate_load_balancer_node_ports' => $this->translate('Allocated Load Balancer Node Ports'),
'load_balancer_class' => $this->translate('Load Balancer Class'),
'internal_traffic_policy' => $this->translate('Internal Traffic Policy'),
'yaml' => $this->translate('YAML'),
'created' => $this->translate('Created At')
];
}
Expand All @@ -97,6 +98,7 @@ public function getColumns()
'allocate_load_balancer_node_ports',
'load_balancer_class',
'internal_traffic_policy',
'yaml',
'created'
];
}
Expand Down
2 changes: 2 additions & 0 deletions library/Kubernetes/Model/StatefulSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ public function getColumnDefinitions()
'available_replicas' => $this->translate('Available Replicas'),
'icinga_state' => $this->translate('Icinga State'),
'icinga_state_reason' => $this->translate('Icinga State Reason'),
'yaml' => $this->translate('YAML'),
'created' => $this->translate('Created At')
];
}
Expand All @@ -92,6 +93,7 @@ public function getColumns()
'available_replicas',
'icinga_state',
'icinga_state_reason',
'yaml',
'created'
];
}
Expand Down
3 changes: 2 additions & 1 deletion library/Kubernetes/Web/ConfigMapDetail.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ protected function assemble()
)),
new Labels($this->configMap->label),
new Annotations($this->configMap->annotation),
new Data($this->configMap->data->execute())
new Data($this->configMap->data->execute()),
new Yaml($this->configMap->yaml)
);
}
}
3 changes: 2 additions & 1 deletion library/Kubernetes/Web/CronJobDetail.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ protected function assemble()
$this->translate('Last Successful Time') => $lastSuccessfulTime
])),
new Labels($this->cronJob->label),
new Annotations($this->cronJob->annotation)
new Annotations($this->cronJob->annotation),
new Yaml($this->cronJob->yaml)
);
}
}
3 changes: 2 additions & 1 deletion library/Kubernetes/Web/DaemonSetDetail.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ protected function assemble()
null,
new HtmlElement('h2', null, new Text($this->translate('Pods'))),
new PodList($this->daemonSet->pod->with(['node']))
)
),
new Yaml($this->daemonSet->yaml)
);
}
}
3 changes: 2 additions & 1 deletion library/Kubernetes/Web/DeploymentDetail.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ protected function assemble()
null,
new HtmlElement('h2', null, new Text($this->translate('Replica Sets'))),
new ReplicaSetList($this->deployment->replica_set)
)
),
new Yaml($this->deployment->yaml)
);
}
}
3 changes: 2 additions & 1 deletion library/Kubernetes/Web/EventDetail.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ protected function assemble()
null,
new HtmlElement('h2', null, new Text($this->translate('Note'))),
new Text($this->event->note)
)
),
new Yaml($this->event->yaml)
);
}
}
2 changes: 2 additions & 0 deletions library/Kubernetes/Web/IngressDetail.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,7 @@ protected function assemble()
)
);
}

$this->addHtml(new Yaml($this->ingress->yaml));
}
}
3 changes: 2 additions & 1 deletion library/Kubernetes/Web/JobDetail.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ protected function assemble()
)
)
)
)
),
new Yaml($this->job->yaml)
);
}
}
3 changes: 2 additions & 1 deletion library/Kubernetes/Web/NamespaceDetail.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ protected function assemble()
$this->translate('Phase') => $this->namespace->phase
]),
new Labels($this->namespace->label),
new Annotations($this->namespace->annotation)
new Annotations($this->namespace->annotation),
new Yaml($this->namespace->yaml)
);
}
}
3 changes: 2 additions & 1 deletion library/Kubernetes/Web/NodeDetail.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ protected function assemble()
)
)
)
)
),
new Yaml($this->node->yaml)
);
}
}
3 changes: 2 additions & 1 deletion library/Kubernetes/Web/PersistentVolumeClaimDetail.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ protected function assemble()
null,
new HtmlElement('h2', null, new Text($this->translate('Pods'))),
new PodList($this->pvc->pod)
)
),
new Yaml($this->pvc->yaml)
);
}
}
3 changes: 2 additions & 1 deletion library/Kubernetes/Web/PersistentVolumeDetail.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ protected function assemble()
new Attributes(['class' => 'persistent-volume-claims']),
new HtmlElement('h2', null, new Text($this->translate('Claims'))),
new PersistentVolumeClaimList($this->persistentVolume->pvc)
)
),
new Yaml($this->persistentVolume->yaml)
);
}
}
3 changes: 2 additions & 1 deletion library/Kubernetes/Web/PodDetail.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ protected function assemble()
)
)
)
)
),
new Yaml($this->pod->yaml)
);
}
}
3 changes: 2 additions & 1 deletion library/Kubernetes/Web/ReplicaSetDetail.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ protected function assemble()
)
)
)
)
),
new Yaml($this->replicaSet->yaml)
);
}
}
3 changes: 2 additions & 1 deletion library/Kubernetes/Web/SecretDetail.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ protected function assemble()
])),
new Labels($this->secret->label),
new Annotations($this->secret->annotation),
new Data($this->secret->data->execute())
new Data($this->secret->data->execute()),
new Yaml($this->secret->yaml)
);
}
}
2 changes: 2 additions & 0 deletions library/Kubernetes/Web/ServiceDetail.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,5 +101,7 @@ protected function assemble()
new HtmlElement('h2', null, new Text($this->translate('Pods')))
)));
}

$this->addHtml(new Yaml($this->service->yaml));
}
}
3 changes: 2 additions & 1 deletion library/Kubernetes/Web/StatefulSetDetail.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ protected function assemble()
null,
new HtmlElement('h2', null, new Text($this->translate('Pods'))),
new PodList($this->statefulSet->pod->with(['node']))
)
),
new Yaml($this->statefulSet->yaml)
);
}
}