Merge pull request #252 from replicatedhq/fix-statefulset-status

Fix statefulset status
This commit is contained in:
Marc Campbell
2020-09-03 14:00:16 -07:00
committed by GitHub
4 changed files with 4 additions and 4 deletions

View File

@@ -24,7 +24,7 @@ func analyzeDeploymentStatus(analyzer *troubleshootv1beta2.DeploymentStatus, get
var status *appsv1.DeploymentStatus
for _, deployment := range deployments {
if deployment.Name == analyzer.Name {
status = &deployment.Status
status = deployment.Status.DeepCopy()
}
}

View File

@@ -24,7 +24,7 @@ func analyzeStatefulsetStatus(analyzer *troubleshootv1beta2.StatefulsetStatus, g
var status *appsv1.StatefulSetStatus
for _, statefulset := range statefulsets {
if statefulset.Name == analyzer.Name {
status = &statefulset.Status
status = statefulset.Status.DeepCopy()
}
}

View File

@@ -16,7 +16,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
// Code generated by controller-gen. DO NOT EDIT.
// autogenerated by controller-gen object, do not modify manually
package v1beta1

View File

@@ -16,7 +16,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
// Code generated by controller-gen. DO NOT EDIT.
// autogenerated by controller-gen object, do not modify manually
package v1beta2