9
9
< alerts alerts ="alerts "> </ alerts >
10
10
< div >
11
11
< h1 >
12
- {{petSet .metadata.name}}
12
+ {{statefulSet .metadata.name}}
13
13
< div
14
14
class ="pull-right dropdown "
15
- ng-if ="petSet "
15
+ ng-if ="statefulSet "
16
16
ng-show ="resourceGroupVersion.resource | canIDoAny ">
17
17
< button
18
18
type ="button "
30
30
< ul class ="dropdown-menu actions action-button ">
31
31
<!-- TODO: kinda works, but cant seem to edit. neat. -->
32
32
< li ng-if ="resourceGroupVersion | canI : 'update' ">
33
- < a ng-href ="{{petSet | editYamlURL}} " role ="button "> Edit YAML</ a >
33
+ < a ng-href ="{{statefulSet | editYamlURL}} " role ="button "> Edit YAML</ a >
34
34
</ li >
35
35
< li ng-if ="resourceGroupVersion | canI : 'delete' ">
36
- <!-- TODO: Warn about replicas? deleting petsets doesn't delete the pods -->
36
+ <!-- TODO: Warn about replicas? deleting statefulSets doesn't delete the pods -->
37
37
<!-- TODO: hpa-list attrib? figure out autoscaling -->
38
38
< delete-link
39
- kind ="PetSet "
39
+ kind ="statefulSet "
40
40
group ="apps "
41
- resource-name ="{{petSet .metadata.name}} "
42
- project-name ="{{petSet .metadata.namespace}} "
43
- replicas ="petSet .status.replicas "
41
+ resource-name ="{{statefulSet .metadata.name}} "
42
+ project-name ="{{statefulSet .metadata.namespace}} "
43
+ replicas ="statefulSet .status.replicas "
44
44
alerts ="alerts ">
45
45
</ delete-link >
46
46
</ li >
47
47
</ ul >
48
48
</ div >
49
49
</ h1 >
50
50
< labels
51
- labels ="petSet .metadata.labels "
51
+ labels ="statefulSet .metadata.labels "
52
52
clickable ="true "
53
- kind ="petsets "
54
- project-name ="{{petSet .metadata.namespace}} "
53
+ kind ="statefulSets "
54
+ project-name ="{{statefulSet .metadata.namespace}} "
55
55
limit ="3 "> </ labels >
56
56
</ div >
57
57
</ div >
71
71
< dt > Status:</ dt >
72
72
< dd >
73
73
<!-- the deploymentStatus filter seems to work fine here -->
74
- < status-icon status ="petSet | deploymentStatus "> </ status-icon >
75
- {{petSet | deploymentStatus}}
74
+ < status-icon status ="statefulSet | deploymentStatus "> </ status-icon >
75
+ {{statefulSet | deploymentStatus}}
76
76
</ dd >
77
- < dt ng-if-start ="petSet | annotation:'deploymentStatusReason' "> Status Reason:</ dt >
78
- < dd ng-if-end > {{petSet | annotation:'deploymentStatusReason'}}</ dd >
77
+ < dt ng-if-start ="statefulSet | annotation:'deploymentStatusReason' "> Status Reason:</ dt >
78
+ < dd ng-if-end > {{statefulSet | annotation:'deploymentStatusReason'}}</ dd >
79
79
< dt > Replicas:</ dt >
80
80
< dd >
81
81
<!-- Enable scaling if this is a plain replication controller or it's the active deployment,
82
82
as long as it doesn't have an HPA. -->
83
83
<!-- TODO: replicaSets have a donut to the right -->
84
- < replicas status ="petSet .status.replicas "
85
- spec ="petSet .spec.replicas "
84
+ < replicas status ="statefulSet .status.replicas "
85
+ spec ="statefulSet .spec.replicas "
86
86
disable-scaling ="!isScalable() "
87
87
scale-fn ="scale(replicas) "
88
- deployment ="petSet ">
88
+ deployment ="statefulSet ">
89
89
</ replicas >
90
90
<!-- Do we have autoscalers for these?
91
91
<span ng-if="autoscalers.length">(autoscaled)</span>
94
94
</ dl >
95
95
< h3 > Template</ h3 >
96
96
< pod-template
97
- pod-template ="petSet .spec.template "
97
+ pod-template ="statefulSet .spec.template "
98
98
detailed ="true ">
99
99
</ pod-template >
100
100
101
+ < h3 > Storage</ h3 >
102
+ < volumes
103
+ volumes ="statefulSet.spec.template.spec.volumes "
104
+ namespace ="projectName "
105
+ can-remove ="false "> </ volumes >
106
+
101
107
< h3 > Pods</ h3 >
102
- < pods-table pods ="podsForPetSet "> </ pods-table >
108
+ < pods-table
109
+ pods ="podsForStatefulSet "> </ pods-table >
103
110
104
- < annotations annotations ="petSet.metadata.annotations "> </ annotations >
111
+ < annotations
112
+ annotations ="statefulSet.metadata.annotations "> </ annotations >
105
113
106
114
</ div >
107
115
</ uib-tab >
108
116
109
- < uib-tab active ="selectedTab.environment " ng-if ="petSet ">
117
+ < uib-tab active ="selectedTab.environment " ng-if ="statefulSet ">
110
118
< uib-tab-heading > Environment</ uib-tab-heading >
111
119
< div class ="resource-environment ">
112
- < ng-form name ="forms.petSetEnvVars ">
113
- < div ng-repeat ="container in petSet .spec.template.spec.containers ">
120
+ < ng-form name ="forms.statefulSetEnvVars ">
121
+ < div ng-repeat ="container in statefulSet .spec.template.spec.containers ">
114
122
< h3 > Container {{container.name}} Environment Variables</ h3 >
115
123
< p >
116
- Environment variables for PetSets are readonly.
124
+ Environment variables for statefulSets are readonly.
117
125
< span ng-if ="!(container.env.length) ">
118
126
There are no environment variables for this container.
119
127
</ span >
@@ -134,28 +142,31 @@ <h3>Container {{container.name}} Environment Variables</h3>
134
142
</ div >
135
143
</ uib-tab >
136
144
137
- <!-- TODO: impl these tabs
145
+
138
146
< uib-tab active ="selectedTab.metrics ">
139
147
< uib-tab-heading > Metrics</ uib-tab-heading >
140
148
< div class ="resource-metrics ">
141
- Metrics
149
+ < deployment-metrics
150
+ ng-if ="selectedTab.metrics && podsForStatefulSet "
151
+ pods ="podsForStatefulSet "
152
+ containers ="statefulSet.spec.template.spec.containers "
153
+ alerts ="alerts ">
154
+ </ deployment-metrics >
142
155
</ div >
143
156
</ uib-tab >
144
157
145
- <uib-tab active="selectedTab.logs">
146
- <uib-tab-heading>Logs</uib-tab-heading>
147
- <div class="resource-logs">
148
- Logs
149
- </div>
150
- </uib-tab>
151
158
152
159
< uib-tab active ="selectedTab.events ">
153
160
< uib-tab-heading > Events</ uib-tab-heading >
154
161
< div class ="resource-events ">
155
- Events
162
+ < events
163
+ resource-kind ="PetSet "
164
+ resource-name ="{{statefulSet.metadata.name}} "
165
+ project-context ="projectContext "
166
+ ng-if ="selectedTab.events "> </ events >
156
167
</ div >
157
168
</ uib-tab >
158
- -->
169
+
159
170
160
171
</ uib-tabset >
161
172
</ div >
0 commit comments