@soft-stech/external-secrets
TypeScript icon, indicating that this package has built-in type declarations

0.4.1 • Public • Published

@kubernetes-models/external-secrets

External secrets models.

Installation

Install with npm.

npm install @kubernetes-models/external-secrets

Usage

import { ExternalSecret } from "@kubernetes-models/external-secrets/external-secrets.io/v1beta1/ExternalSecret";

// Create a new ExternalSecret
const secret = new ExternalSecret({
  metadata: {
    name: "example"
  },
  spec: {
    refreshInterval: "1h",
    secretStoreRef: {
      name: "secret-store-sample",
      kind: "SecretStore"
    },
    target: {
      name: "secret-to-be-created",
      creationPolicy: "Owner"
    },
    data: [
      {
        secretKey: "secret-key-to-be-managed",
        remoteRef: {
          key: "provider-key",
          version: "provider-key-version",
          property: "provider-key-property"
        }
      }
    ],
    dataFrom: [
      {
        extract: { key: "remote-key-in-the-provider" }
      }
    ]
  }
});

// Validate against JSON schema
secret.validate();

License

MIT

Package Sidebar

Install

npm i @soft-stech/external-secrets

Weekly Downloads

1

Version

0.4.1

License

MIT

Unpacked Size

1.4 MB

Total Files

63

Last publish

Collaborators

  • nulled06
  • cogors
  • maxgorovenko