Skip to content

Commit

Permalink
Merge pull request #846 from replicatedhq/divolgin/fixes
Browse files Browse the repository at this point in the history
merging patch fixes
  • Loading branch information
divolgin committed Jul 24, 2020
2 parents c8664c6 + afea37a commit bf9f118
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions kotsadm/api/src/troubleshoot/troubleshoot_store.ts
Expand Up @@ -144,6 +144,7 @@ export class TroubleshootStore {
}

public async listSupportBundles(appOrWatchId: string): Promise<SupportBundle[]> {
// DANGER ZONE: changing sort order here afftects what support bundle is shown in the analysis view.
const q = `select id from supportbundle where watch_id = $1 order by created_at desc`;
const v = [appOrWatchId];
const result = await this.pool.query(q, v);
Expand Down
Expand Up @@ -63,7 +63,7 @@ class GenerateSupportBundle extends React.Component {

if (listSupportBundles?.listSupportBundles.length > totalBundles) {
listSupportBundles.stopPolling();
const bundle = listSupportBundles.listSupportBundles[listSupportBundles.listSupportBundles.length - 1];
const bundle = listSupportBundles.listSupportBundles[0]; // safe. there's at least 1 element in this array.
history.push(`/app/${watch.slug}/troubleshoot/analyze/${bundle.id}`);
}
}
Expand Down
2 changes: 0 additions & 2 deletions pkg/docker/registry/registry.go
Expand Up @@ -9,7 +9,6 @@ import (

"github.com/pkg/errors"
kotsv1beta1 "github.com/replicatedhq/kots/kotskinds/apis/kots/v1beta1"
"github.com/replicatedhq/kots/pkg/kotsadm/types"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
Expand Down Expand Up @@ -91,7 +90,6 @@ func PullSecretForRegistries(registries []string, username, password string, nam
ObjectMeta: metav1.ObjectMeta{
Name: "kotsadm-replicated-registry",
Namespace: namespace,
Labels: types.GetKotsadmLabels(),
},
Type: corev1.SecretTypeDockerConfigJson,
Data: map[string][]byte{
Expand Down
1 change: 1 addition & 0 deletions pkg/kotsadm/kotsadm_version.go
Expand Up @@ -76,6 +76,7 @@ func kotsadmPullSecret(namespace string, options types.KotsadmOptions) *corev1.S
}

secret.ObjectMeta.Name = types.PrivateKotsadmRegistrySecret
secret.ObjectMeta.Labels = types.GetKotsadmLabels()

return secret
}

0 comments on commit bf9f118

Please sign in to comment.