feat: add k8s cluster resource management module
- Add K8s module with kubeconfig storage in cluster_config table - Implement resource list APIs for 8 kinds: namespace, deployment, statefulset, service, configmap, pod, pv, pvc - Add K8sResourceList page with sidebar navigation and resource tables - Support YAML upload/input dialog for resource creation via dynamic client - Add kubeconfig settings drawer - Increase main content width from lg to xl for better table display - Add navigation link for cluster resources in top bar 🤖 Generated with [Qoder][https://qoder.com]
This commit is contained in:
@@ -79,3 +79,14 @@ type RegistryConfig struct {
|
||||
Key string `gorm:"uniqueIndex;not null" json:"key"` // ???? key
|
||||
Value string `gorm:"type:text" json:"value"` // ???? value
|
||||
}
|
||||
|
||||
// ClusterConfig k8s cluster configuration
|
||||
type ClusterConfig struct {
|
||||
ID uint `gorm:"primarykey" json:"id"`
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
UpdatedAt time.Time `json:"updated_at"`
|
||||
DeletedAt gorm.DeletedAt `gorm:"index" json:"-"`
|
||||
|
||||
Key string `gorm:"uniqueIndex;not null" json:"key"`
|
||||
Value string `gorm:"type:text" json:"value"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user