Skip to content

Commit

Permalink
change troubleshoot.io to troubleshoot.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Craig O'Donnell committed Oct 31, 2023
1 parent aa429aa commit e84973f
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion pkg/kotsadm/types/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const ExcludeValue = "true"
const BackupLabel = "kots.io/backup"
const BackupLabelValue = "velero"

const TroubleshootKey = "troubleshoot.io/kind"
const TroubleshootKey = "troubleshoot.sh/kind"
const TroubleshootValue = "support-bundle"

const DefaultSupportBundleSpecKey = "default"
Expand Down
6 changes: 3 additions & 3 deletions pkg/kotsadm/types/constants_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func Test_getTroubleshootLabels(t *testing.T) {
},
},
expectLabels: map[string]string{
"troubleshoot.io/kind": "support-bundle",
"troubleshoot.sh/kind": "support-bundle",
"foo": "foo",
},
},
Expand Down Expand Up @@ -97,7 +97,7 @@ func Test_mergeLabels(t *testing.T) {
expectLabels: map[string]string{
"kots.io/kotsadm": "true",
"kots.io/backup": "velero",
"troubleshoot.io/kind": "support-bundle",
"troubleshoot.sh/kind": "support-bundle",
},
},
{
Expand All @@ -111,7 +111,7 @@ func Test_mergeLabels(t *testing.T) {
"bar": "bar",
"kots.io/kotsadm": "true",
"kots.io/backup": "velero",
"troubleshoot.io/kind": "support-bundle",
"troubleshoot.sh/kind": "support-bundle",
},
},
}
Expand Down
10 changes: 5 additions & 5 deletions pkg/supportbundle/spec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ func Test_findSupportBundleSecrets(t *testing.T) {
Namespace: "kotsadm",
Labels: map[string]string{
"foo": "bar",
"troubleshoot.io/kind": "support-bundle",
"troubleshoot.sh/kind": "support-bundle",
},
},
Data: map[string][]byte{
Expand All @@ -677,7 +677,7 @@ func Test_findSupportBundleSecrets(t *testing.T) {
Namespace: "another",
Labels: map[string]string{
"foo": "bar",
"troubleshoot.io/kind": "support-bundle",
"troubleshoot.sh/kind": "support-bundle",
},
},
Data: map[string]string{
Expand All @@ -690,7 +690,7 @@ func Test_findSupportBundleSecrets(t *testing.T) {
Namespace: "kotsadm",
Labels: map[string]string{
"foo": "bar",
"troubleshoot.io/kind": "support-bundle",
"troubleshoot.sh/kind": "support-bundle",
},
},
Data: map[string][]byte{
Expand All @@ -708,7 +708,7 @@ func Test_findSupportBundleSecrets(t *testing.T) {
Name: "kotsadm-my-app-supportbundle",
Namespace: "kotsadm",
Labels: map[string]string{
"troubleshoot.io/kind": "support-bundle",
"troubleshoot.sh/kind": "support-bundle",
},
},
Data: map[string][]byte{
Expand All @@ -720,7 +720,7 @@ func Test_findSupportBundleSecrets(t *testing.T) {
Name: "cluster-wide-supportbundle",
Namespace: "default",
Labels: map[string]string{
"troubleshoot.io/kind": "support-bundle",
"troubleshoot.sh/kind": "support-bundle",
},
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ metadata:
app.kubernetes.io/instance: release-name
app.kubernetes.io/version: "1.27.0"
app.kubernetes.io/managed-by: Helm
troubleshoot.io/kind: preflight
troubleshoot.sh/kind: preflight
annotations:
"helm.sh/hook": pre-install, pre-upgrade
"helm.sh/hook-weight": "-6"
Expand Down Expand Up @@ -221,7 +221,7 @@ metadata:
app.kubernetes.io/instance: release-name
app.kubernetes.io/version: "1.27.0"
app.kubernetes.io/managed-by: Helm
troubleshoot.io/kind: preflight
troubleshoot.sh/kind: preflight
annotations:
"helm.sh/hook": pre-install, pre-upgrade
"helm.sh/hook-weight": "-6"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ metadata:
app.kubernetes.io/instance: release-name
app.kubernetes.io/version: "1.27.0"
app.kubernetes.io/managed-by: Helm
troubleshoot.io/kind: preflight
troubleshoot.sh/kind: preflight
annotations:
"helm.sh/hook": pre-install, pre-upgrade
"helm.sh/hook-weight": "-6"
Expand Down

0 comments on commit e84973f

Please sign in to comment.