Skip to content

Commit

Permalink
Update Constants
Browse files Browse the repository at this point in the history
Remove over-engineering and make things shorter and more easy to grok.
  • Loading branch information
spjmurray committed Jun 4, 2024
1 parent b8520a1 commit 24eaca6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 17 deletions.
4 changes: 2 additions & 2 deletions charts/core/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: A Helm chart for deploying Unikorn Core

type: application

version: v0.1.38
appVersion: v0.1.38
version: v0.1.39
appVersion: v0.1.39

icon: https://assets.unikorn-cloud.org/images/logos/dark-on-light/icon.svg
22 changes: 7 additions & 15 deletions pkg/constants/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const (
// you have to select based on project and CP name, because of name reuse, but
// this raises the problem that selecting a project's namespace will match multiple
// so this provides a concrete type associated with each resource.
KindLabel = "unikorn.unikorn-cloud.org/kind"
KindLabel = "unikorn-cloud.org/kind"

// KindLabelValueOrganization is used to denote a resource belongs to this type.
KindLabelValueOrganization = "organization"
Expand All @@ -64,33 +64,26 @@ const (

// ProjectLabel is a label applied to namespaces to indicate it is under
// control of this tool. Useful for label selection.
ProjectLabel = "unikorn.unikorn-cloud.org/project"

// ClusterManagerLabel is a label applied to resources to indicate is belongs
// to a specific cluster manager.
ClusterManagerLabel = "unikorn.unikorn-cloud.org/clustermanager"
ProjectLabel = "unikorn-cloud.org/project"

// KubernetesClusterLabel is applied to resources to indicate it belongs
// to a specific cluster.
KubernetesClusterLabel = "unikorn.unikorn-cloud.org/cluster"
KubernetesClusterLabel = "unikorn-cloud.org/cluster"

// ApplicationLabel is applied to ArgoCD applications to differentiate
// between them.
ApplicationLabel = "unikorn.unikorn-cloud.org/application"
ApplicationLabel = "unikorn-cloud.org/application"

// ApplicationIDLabel is used to lookup applications based on their ID.
ApplicationIDLabel = "unikorn.unikorn-cloud.org/application-id"

// IngressEndpointAnnotation helps us find the ingress IP address.
IngressEndpointAnnotation = "unikorn.unikorn-cloud.org/ingress-endpoint"
ApplicationIDLabel = "unikorn-cloud.org/application-id"

// ConfigurationHashAnnotation is used where application owners refuse to
// poll configuration updates and we (and all other users) are forced into
// manually restarting services based on a Deployment/DaemonSet changing.
ConfigurationHashAnnotation = "unikorn.unikorn-cloud.org/config-hash"
ConfigurationHashAnnotation = "unikorn-cloud.org/config-hash"

// RegionAnnotation tells you what region something lives in.
RegionAnnotation = "region.unikorn-cloud.org/name"
RegionAnnotation = "unikorn-cloud.org/region"

// Finalizer is applied to resources that need to be deleted manually
// and do other complex logic.
Expand All @@ -112,7 +105,6 @@ const (
func LabelPriorities() []string {
return []string{
KubernetesClusterLabel,
ClusterManagerLabel,
ProjectLabel,
OrganizationLabel,
}
Expand Down

0 comments on commit 24eaca6

Please sign in to comment.