chore: move all secrets to a single namespace and consolidate dups

This commit is contained in:
2025-09-21 17:52:31 +05:00
parent 109c94832a
commit 9dea58bda6
2 changed files with 14 additions and 41 deletions

View File

@@ -5,13 +5,14 @@ import { KubernetesProvider } from "@cdktf/provider-kubernetes/lib/provider";
type OnePasswordSecret = {
id?: string;
namespace?: string;
name: string;
namespace: string;
itemPath: string;
};
type OnePasswordOptions = {
provider: KubernetesProvider;
namespace: string;
};
export class OnePassword extends Construct {
@@ -32,7 +33,7 @@ export class OnePassword extends Construct {
kind: "OnePasswordItem",
metadata: {
name: secret.name,
namespace: secret.namespace,
namespace: secret.namespace ?? options.namespace,
annotations: {
"operator.1password.io/auto-restart": "true",
},