MCPcopy Create free account
hub / github.com/cozystack/cozystack / isSourceSecret

Function isSourceSecret

internal/cozyvaluesreplicator/cozyvaluesreplicator.go:163–168  ·  view source on GitHub ↗
(obj client.Object, r *SecretReplicatorReconciler)

Source from the content-addressed store, hash-verified

161}
162
163func isSourceSecret(obj client.Object, r *SecretReplicatorReconciler) bool {
164 if obj == nil {
165 return false
166 }
167 return obj.GetNamespace() == r.SourceNamespace && obj.GetName() == r.SecretName
168}
169
170func (r *SecretReplicatorReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
171 logger := log.FromContext(ctx)

Callers 1

SetupWithManagerMethod · 0.85

Calls 2

GetNamespaceMethod · 0.65
GetNameMethod · 0.65

Tested by

no test coverage detected