diff --git a/Makefile b/Makefile index 1710d11..42d4c8e 100644 --- a/Makefile +++ b/Makefile @@ -46,7 +46,7 @@ ifeq ($(VERSION), "") LATEST_TAG=$(shell git describe --tags --abbrev=8) ifeq ($(LATEST_TAG),) # Forked repo may not sync tags from upstream, so give it a default tag to make CI happy. - VERSION="v0.1.13" + VERSION="v0.1.14" else VERSION=$(LATEST_TAG) endif diff --git a/charts/karmada-operator/Chart.yaml b/charts/karmada-operator/Chart.yaml index 5029389..33b5aef 100644 --- a/charts/karmada-operator/Chart.yaml +++ b/charts/karmada-operator/Chart.yaml @@ -15,13 +15,13 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.1.13 +version: 0.1.14 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: "v0.1.13" +appVersion: "v0.1.14" sources: - "https://github.com/DaoCloud/karmada-operator" diff --git a/charts/karmada-operator/values.yaml b/charts/karmada-operator/values.yaml index 3f43bdf..8fa5e92 100644 --- a/charts/karmada-operator/values.yaml +++ b/charts/karmada-operator/values.yaml @@ -48,7 +48,7 @@ operator: image: registry: release.daocloud.io repository: karmada/karmada-operator - tag: "v0.1.13" + tag: "v0.1.14" ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## diff --git a/pkg/installer/helm/install.go b/pkg/installer/helm/install.go index 7677002..e70d231 100644 --- a/pkg/installer/helm/install.go +++ b/pkg/installer/helm/install.go @@ -464,6 +464,14 @@ func CreateSecretForExternalKubeconfig(client clientset.Interface, data []byte, ObjectMeta: metav1.ObjectMeta{ GenerateName: fmt.Sprintf("%s-kubeconfig-", kmd.Name), Namespace: kmd.Namespace, + OwnerReferences: []metav1.OwnerReference{ + { + APIVersion: installv1alpha1.GroupVersion.String(), + Kind: "KarmadaDeployment", + Name: kmd.Name, + UID: kmd.UID, + }, + }, }, Data: map[string][]byte{ "kubeconfig": data,