mirror of
https://github.com/storytold/irsa-manager.git
synced 2026-10-09 00:09:43 +00:00
manifest if
This commit is contained in:
@@ -0,0 +1,12 @@
|
|||||||
|
package manifests
|
||||||
|
|
||||||
|
import (
|
||||||
|
"context"
|
||||||
|
|
||||||
|
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
|
||||||
|
)
|
||||||
|
|
||||||
|
type Handler interface {
|
||||||
|
Apply(ctx context.Context, obj *unstructured.Unstructured) error
|
||||||
|
Delete(ctx context.Context, obj *unstructured.Unstructured) error
|
||||||
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
package manifests
|
||||||
@@ -1 +1,3 @@
|
|||||||
package manifests
|
package manifests
|
||||||
|
|
||||||
|
// TODO: get keys from oidc, and create secret struct
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
package manifests
|
||||||
|
|
||||||
|
import "context"
|
||||||
|
|
||||||
|
type Manifest interface {
|
||||||
|
Apply(ctx context.Context, handler Handler) error
|
||||||
|
Delete(ctx context.Context, handler Handler) error
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user