Skip to content

Commit

Permalink
Merge pull request #113 from chaunceyjiang/owner
Browse files Browse the repository at this point in the history
add ownerReference for secret
  • Loading branch information
calvin0327 authored Mar 24, 2023
2 parents f6c2e55 + ca9ca17 commit 8eae1f2
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions charts/karmada-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion charts/karmada-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
##
Expand Down
8 changes: 8 additions & 0 deletions pkg/installer/helm/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 8eae1f2

Please sign in to comment.