Socket
Socket
Sign inDemoInstall

github.com/GoogleContainerTools/kpt-functions-catalog/functions/go/apply-replacements

Package Overview
Dependencies
24
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    github.com/GoogleContainerTools/kpt-functions-catalog/functions/go/apply-replacements


Version published

Readme

Source

apply-replacements

Overview

Use the kustomize replacements feature as a KRM function.

FunctionConfig

We use a ApplyReplacements object to configure the apply-replacements function.

apiVersion: fn.kpt.dev/v1alpha1
kind: ApplyReplacements
metadata:
  name: replacements-fn-config
replacements:
  # your replacements here

The syntax for replacements is described in the kustomize replacements docs. For example, you can have a functionConfig such as:

apiVersion: fn.kpt.dev/v1alpha1
kind: ApplyReplacements
metadata:
  name: replacements-fn-config
replacements:
- source:
    kind: Deployment
    fieldPath: metadata.name
  targets:
  - select: 
      name: my-resource

FAQs

Last updated on 07 May 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc