feat: Use --dry-run=server to make lookup work properly while diff (#501)

Signed-off-by: iiiceoo <iiiceoo@foxmail.com>
This commit is contained in:
iiice_oo
2024-01-23 17:59:47 +08:00
committed by GitHub
parent 9481c9afed
commit e954b7a37c
6 changed files with 162 additions and 738 deletions

View File

@@ -4,8 +4,6 @@ import (
"encoding/json"
"errors"
"fmt"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
v1 "k8s.io/apimachinery/pkg/apis/testapigroup/v1"
"net/http"
"sort"
"strconv"
@@ -24,6 +22,8 @@ import (
"helm.sh/helm/v3/pkg/chartutil"
"helm.sh/helm/v3/pkg/release"
helmtime "helm.sh/helm/v3/pkg/time"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
v1 "k8s.io/apimachinery/pkg/apis/testapigroup/v1"
"k8s.io/utils/strings/slices"
)