Skip to content

Commit

Permalink
Merge pull request #83 from wansir/master
Browse files Browse the repository at this point in the history
add kubesphere.io/managed label
  • Loading branch information
wansir authored Mar 2, 2024
2 parents 83222e3 + 2bb9467 commit 89a3e5a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/extension/type.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,9 @@ type ApplicationClass struct {
}

const (
kubeSphereSystem = "kubesphere-system"
configMapDataKey = "chart.tgz"
kubeSphereSystem = "kubesphere-system"
configMapDataKey = "chart.tgz"
kubeSphereManaged = "kubesphere.io/managed"
)

func (ext *Extension) ToKubernetesResources() []runtimeclient.Object {
Expand All @@ -186,6 +187,7 @@ func (ext *Extension) ToKubernetesResources() []runtimeclient.Object {
Name: ext.Metadata.Name,
Labels: map[string]string{
corev1alpha1.CategoryLabel: ext.Metadata.Category,
kubeSphereManaged: "true",
},
},
Spec: corev1alpha1.ExtensionSpec{
Expand Down

0 comments on commit 89a3e5a

Please sign in to comment.