Skip to content

Commit

Permalink
Merge pull request #141 from gianlucam76/admin-label
Browse files Browse the repository at this point in the history
Move AdminLabel to libsveltos
  • Loading branch information
gianlucam76 authored Mar 24, 2023
2 parents bd95caa + 6ad17c2 commit 10995b3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions api/v1alpha1/common_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ import (
corev1 "k8s.io/api/core/v1"
)

const (
// AdminLabel can be set on various Sveltos resources (ClusterProfile/EventSource/...)
// to indicate which admin is creating it.
// AdminLabel used along with RoleRequest is Sveltos solution for multi tenancy.
AdminLabel = "projectsveltos.io/admin-name"
)

// ReferencedResourceKind is a string representation of allowed kind of resources
// that can be referenced in a ClusterProfile
type ReferencedResourceKind string
Expand Down

0 comments on commit 10995b3

Please sign in to comment.