mirror of
https://github.com/vmware-tanzu/pinniped.git
synced 2026-02-06 21:11:47 +00:00
Add initial controller boilerplate and example controller
Signed-off-by: Monis Khan <mok@vmware.com>
This commit is contained in:
20
test/integration/examplecontroller/api/api.go
Normal file
20
test/integration/examplecontroller/api/api.go
Normal file
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
Copyright 2020 VMware, Inc.
|
||||
SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
package api
|
||||
|
||||
// Annotation on service.
|
||||
const SecretNameAnnotation = "service.placeholder.io/secret-name"
|
||||
|
||||
// Annotations on secret.
|
||||
const (
|
||||
// ServiceUIDAnnotation is an annotation on a secret that indicates which service created it, by UID
|
||||
ServiceUIDAnnotation = "service.placeholder.io/service-uid"
|
||||
// ServiceNameAnnotation is an annotation on a secret that indicates which service created it, by Name
|
||||
// to allow reverse lookups on services for comparison against UIDs
|
||||
ServiceNameAnnotation = "service.placeholder.io/service-name"
|
||||
)
|
||||
|
||||
const SecretDataKey = "secret-data"
|
||||
Reference in New Issue
Block a user