32
32
< a ng-href ="{{statefulSet | editYamlURL}} " role ="button "> Edit YAML</ a >
33
33
</ li >
34
34
< li ng-if ="resourceGroupVersion | canI : 'delete' ">
35
- <!-- TODO: Warn about replicas? deleting statefulSets doesn't delete the pods -->
36
- <!-- TODO: hpa-list attrib? figure out autoscaling -->
37
35
< delete-link
38
36
kind ="statefulSet "
39
37
group ="apps "
59
57
< div class ="middle-content " persist-tab-state >
60
58
< div class ="container-fluid ">
61
59
< div ng-if ="!loaded "> Loading...</ div >
60
+
62
61
< div class ="row " ng-if ="loaded ">
63
62
< div class ="col-md-12 ">
64
63
< uib-tabset >
65
64
< uib-tab active ="selectedTab.details ">
66
65
< uib-tab-heading > Details</ uib-tab-heading >
67
66
68
- < div class ="resource-details ">
69
- < dl class ="dl-horizontal left ">
70
- < dt > Status:</ dt >
71
- < dd >
72
- <!-- the deploymentStatus filter seems to work fine here -->
73
- < status-icon status ="statefulSet | deploymentStatus "> </ status-icon >
74
- {{statefulSet | deploymentStatus}}
75
- </ dd >
76
- < dt > Replicas:</ dt >
77
- < dd >
78
- <!--
79
- statefulSets do not have history
80
- & are always scalable unless there are HPAs involved
81
- -->
82
- <!-- TODO: DONUT -->
83
- < replicas status ="statefulSet.status.replicas "
84
- spec ="statefulSet.spec.replicas "
85
- disable-scaling ="!isScalable() "
86
- scale-fn ="scale(replicas) "
87
- deployment ="statefulSet ">
88
- </ replicas >
89
- <!-- TODO: HPA as a follow-on PR
90
- <span ng-if="autoscalers.length">(autoscaled)</span>
91
- -->
92
- </ dd >
93
- </ dl >
94
- < h3 > Template</ h3 >
95
- < pod-template
96
- pod-template ="statefulSet.spec.template "
97
- detailed ="true ">
98
- </ pod-template >
99
-
100
- < h3 > Storage</ h3 >
101
- < volumes
102
- volumes ="statefulSet.spec.template.spec.volumes "
103
- namespace ="projectName "
104
- can-remove ="false "> </ volumes >
67
+ < div class ="row " style ="max-width: 650px; ">
105
68
106
- < h3 > Pods</ h3 >
107
- < pods-table
108
- pods ="podsForStatefulSet "> </ pods-table >
69
+ < div class ="col-sm-4 col-sm-push-8 browse-deployment-donut ">
70
+ <!--
71
+ TODO: scale/autoscale is a follow-on PR
72
+ -->
73
+ < deployment-donut
74
+ deployment ="statefulSet "
75
+ pods ="podsForStatefulSet "
76
+ scalable ="isScalable() "
77
+ alerts ="alerts ">
78
+ </ deployment-donut >
79
+ </ div >
109
80
110
- < annotations
111
- annotations ="statefulSet.metadata.annotations "> </ annotations >
81
+ < div class ="col-sm-8 col-sm-pull-4 ">
82
+ < dl class ="dl-horizontal left ">
83
+ < dt > Status:</ dt >
84
+ < dd >
85
+ < status-icon status ="statefulSet | deploymentStatus "> </ status-icon >
86
+ {{statefulSet | deploymentStatus}}
87
+ </ dd >
88
+ < dt > Replicas:</ dt >
89
+ < dd >
90
+ < replicas
91
+ status ="statefulSet.status.replicas "
92
+ spec ="statefulSet.spec.replicas "
93
+ disable-scaling ="!isScalable() "
94
+ scale-fn ="scale(replicas) "
95
+ deployment ="statefulSet ">
96
+ </ replicas >
97
+ <!-- TODO: HPA as a follow-on PR
98
+ <span ng-if="autoscalers.length">(autoscaled)</span>
99
+ -->
100
+ </ dd >
101
+ </ dl >
102
+ < h3 > Template</ h3 >
103
+ < pod-template
104
+ pod-template ="statefulSet.spec.template "
105
+ detailed ="true ">
106
+ </ pod-template >
107
+ </ div >
112
108
113
109
</ div >
110
+
111
+ < div class ="row ">
112
+ < div class ="col-md-12 ">
113
+ < h3 > Storage</ h3 >
114
+ < volumes
115
+ volumes ="statefulSet.spec.template.spec.volumes "
116
+ namespace ="projectName "
117
+ can-remove ="false "> </ volumes >
118
+
119
+ < h3 > Pods</ h3 >
120
+ < pods-table
121
+ pods ="podsForStatefulSet "> </ pods-table >
122
+
123
+ < annotations
124
+ annotations ="statefulSet.metadata.annotations "> </ annotations >
125
+ </ div >
126
+ </ div >
114
127
</ uib-tab >
115
128
116
129
< uib-tab active ="selectedTab.environment " ng-if ="statefulSet ">
@@ -120,7 +133,7 @@ <h3>Pods</h3>
120
133
< div ng-repeat ="container in statefulSet.spec.template.spec.containers ">
121
134
< h3 > Container {{container.name}} Environment Variables</ h3 >
122
135
< p >
123
- Environment variables for statefulSets are readonly.
136
+ Environment variables for stateful sets are readonly.
124
137
< span ng-if ="!(container.env.length) ">
125
138
There are no environment variables for this container.
126
139
</ span >
@@ -139,20 +152,18 @@ <h3>Container {{container.name}} Environment Variables</h3>
139
152
</ div >
140
153
</ uib-tab >
141
154
142
-
143
155
< uib-tab active ="selectedTab.metrics ">
144
156
< uib-tab-heading > Metrics</ uib-tab-heading >
145
157
< div class ="resource-metrics ">
146
158
< deployment-metrics
147
- ng-if ="selectedTab.metrics && podsForStatefulSet "
148
- pods ="podsForStatefulSet "
149
- containers ="statefulSet.spec.template.spec.containers "
150
- alerts ="alerts ">
159
+ ng-if ="selectedTab.metrics && podsForStatefulSet "
160
+ pods ="podsForStatefulSet "
161
+ containers ="statefulSet.spec.template.spec.containers "
162
+ alerts ="alerts ">
151
163
</ deployment-metrics >
152
164
</ div >
153
165
</ uib-tab >
154
166
155
-
156
167
< uib-tab active ="selectedTab.events ">
157
168
< uib-tab-heading > Events</ uib-tab-heading >
158
169
< div class ="resource-events ">
@@ -165,7 +176,6 @@ <h3>Container {{container.name}} Environment Variables</h3>
165
176
</ div >
166
177
</ uib-tab >
167
178
168
-
169
179
</ uib-tabset >
170
180
</ div >
171
181
</ div >
0 commit comments