Skip to content

Commit 2289e00

Browse files
authored
Merge pull request #252 from replicatedhq/fix-statefulset-status
Fix statefulset status
2 parents 7032191 + 949f0f2 commit 2289e00

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

pkg/analyze/deployment_status.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ func analyzeDeploymentStatus(analyzer *troubleshootv1beta2.DeploymentStatus, get
2424
var status *appsv1.DeploymentStatus
2525
for _, deployment := range deployments {
2626
if deployment.Name == analyzer.Name {
27-
status = &deployment.Status
27+
status = deployment.Status.DeepCopy()
2828
}
2929
}
3030

pkg/analyze/statefulset_status.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ func analyzeStatefulsetStatus(analyzer *troubleshootv1beta2.StatefulsetStatus, g
2424
var status *appsv1.StatefulSetStatus
2525
for _, statefulset := range statefulsets {
2626
if statefulset.Name == analyzer.Name {
27-
status = &statefulset.Status
27+
status = statefulset.Status.DeepCopy()
2828
}
2929
}
3030

pkg/apis/troubleshoot/v1beta1/zz_generated.deepcopy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ See the License for the specific language governing permissions and
1616
limitations under the License.
1717
*/
1818

19-
// Code generated by controller-gen. DO NOT EDIT.
19+
// autogenerated by controller-gen object, do not modify manually
2020

2121
package v1beta1
2222

pkg/apis/troubleshoot/v1beta2/zz_generated.deepcopy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ See the License for the specific language governing permissions and
1616
limitations under the License.
1717
*/
1818

19-
// Code generated by controller-gen. DO NOT EDIT.
19+
// autogenerated by controller-gen object, do not modify manually
2020

2121
package v1beta2
2222

0 commit comments

Comments
 (0)