diff --git a/config/samples/troubleshoot_v1beta2_collector.yaml b/config/samples/troubleshoot_v1beta2_collector.yaml index 7f2de496..b3b8e008 100644 --- a/config/samples/troubleshoot_v1beta2_collector.yaml +++ b/config/samples/troubleshoot_v1beta2_collector.yaml @@ -15,7 +15,7 @@ spec: # - name=nginx-ingress-microk8s # namespace: default # limits: - # maxAge: 30d + # maxAge: 720h # 30*24 # maxLines: 10000 # - run: # collectorName: ping-google diff --git a/examples/support-bundle/sample-supportbundle.yaml b/examples/support-bundle/sample-supportbundle.yaml index 63d75d09..40dbc67d 100644 --- a/examples/support-bundle/sample-supportbundle.yaml +++ b/examples/support-bundle/sample-supportbundle.yaml @@ -10,7 +10,7 @@ spec: - component=nginx namespace: repl{{ Namespace }} limits: - maxAge: 30d + maxAge: 720h # 30*24 maxLines: 10000 analyzers: - clusterVersion: diff --git a/pkg/analyze/crd.go b/pkg/analyze/crd.go index 45f8e521..e967cb81 100644 --- a/pkg/analyze/crd.go +++ b/pkg/analyze/crd.go @@ -30,8 +30,8 @@ func analyzeCustomResourceDefinition(analyzer *troubleshootv1beta2.CustomResourc IconURI: "https://troubleshoot.sh/images/analyzer-icons/custom-resource-definition.svg?w=13&h=16", } - for _, storageClass := range crds { - if storageClass.Name == analyzer.CustomResourceDefinitionName { + for _, crd := range crds { + if crd.Name == analyzer.CustomResourceDefinitionName { result.IsPass = true for _, outcome := range analyzer.Outcomes { if outcome.Pass != nil { diff --git a/pkg/analyze/image_pull_secret.go b/pkg/analyze/image_pull_secret.go index 264bd78e..2c773ae3 100644 --- a/pkg/analyze/image_pull_secret.go +++ b/pkg/analyze/image_pull_secret.go @@ -61,7 +61,7 @@ func analyzeImagePullSecret(analyzer *troubleshootv1beta2.ImagePullSecret, getCh if result.IsPass { result.Message = fmt.Sprintf("Credentials to pull from: %s found", analyzer.RegistryName) } else { - result.Message = fmt.Sprintf("Credentials to pull from: %s not ound", analyzer.RegistryName) + result.Message = fmt.Sprintf("Credentials to pull from: %s not found", analyzer.RegistryName) } } return &result, nil