Skip to content

Latest commit

 

History

History
48 lines (37 loc) · 1.11 KB

Apply.md

File metadata and controls

48 lines (37 loc) · 1.11 KB

Kubectl Apply

kubectl apply command wrapper with ability to use templetized files as sources.

ID: com.fireblink.fbl.plugins.k8s.kubectl.apply

Aliases:

  • fbl.plugins.k8s.kubectl.apply
  • k8s.kubectl.apply
  • kubectl.apply

Usage

kubectl.apply:
  # [optional] List of files and globs to find resource files.
  # Note: at least one of `paths` or `inline` is required, both can be presented at same time
  paths:
    - some/path/to/resource.yml
    - some/dir/**/* # Note: matching will only process files with extension: `.json`, '.yml` and `.yaml`

  # [optional] List of resource defined inline.
  inline:
    - kind: ConfigMap
      version: v1
      metadata:
        name: some.name
        namespace: nondefault
      data:
        key: value

  # [optional] Labels for resource to match.
  labels:
    key: value

  # [optional] K8s namespace.
  # Default value: default
  namespace: nondefault

  # [optional] Enable verbose output.
  debug: true

  # [optional] Extra arguments to append to the command.
  # Refer to `kubectl apply --help` for all available options.
  extra:
    - dry-run