Skip to content

Commit e4b20f0

Browse files
committed
feat: add library module
1 parent 5c1ad21 commit e4b20f0

File tree

13 files changed

+1585
-2
lines changed

13 files changed

+1585
-2
lines changed

Taskfile.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ includes:
66
flatten: true
77
excludes: [] # put task names in here which are overwritten in this file
88
vars:
9-
NESTED_MODULES: api
9+
NESTED_MODULES: 'api lib'
1010
API_DIRS: '{{.ROOT_DIR}}/api/...'
1111
MANIFEST_OUT: '{{.ROOT_DIR}}/api/crds/manifests'
12-
CODE_DIRS: '{{.ROOT_DIR}}/cmd/... {{.ROOT_DIR}}/internal/... {{.ROOT_DIR}}/api/...'
12+
CODE_DIRS: '{{.ROOT_DIR}}/cmd/... {{.ROOT_DIR}}/internal/... {{.ROOT_DIR}}/api/... {{.ROOT_DIR}}/lib/...'
1313
COMPONENTS: 'openmcp-operator'
1414
REPO_URL: 'https://github.com/openmcp-project/openmcp-operator'
1515
GENERATE_DOCS_INDEX: "true"

api/constants/constants.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,12 @@ const (
1313
OperationAnnotationValueIgnore = "ignore"
1414
// OperationAnnotationValueReconcile is used to trigger a reconcile on the resource.
1515
OperationAnnotationValueReconcile = "reconcile"
16+
17+
// ManagedByLabel is used to indicate which controller manages the resource.
18+
ManagedByLabel = OpenMCPGroupName + "/managed-by"
19+
20+
// OnboardingNameLabel is used to store the name on the onboarding cluster of a resource.
21+
OnboardingNameLabel = OpenMCPGroupName + "/onboarding-name"
22+
// OnboardingNamespaceLabel is used to store the namespace on the onboarding cluster of a resource.
23+
OnboardingNamespaceLabel = OpenMCPGroupName + "/onboarding-namespace"
1624
)

lib/clusteraccess/clusteraccess.go

Lines changed: 730 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)