Skip to content
Gregory Nickonov edited this page Mar 4, 2019 · 1 revision

Quick Start

R.secret :frontend do
  # Specify Secret type
  type :dockerconfigjson

  # Define keys and values
  set '.dockerconfigjson': "..."
end

Secret

Kubernetes Documentation

Sunstone property Kubernetes property Type
metadata metadata Kubernetes Object Metadata
type type String

set

Sets an individual value or group of values:

R.secret :database do
  set DB_PASSWORD: 'secret'
end

file

Imports the content of one or more files into the Secret. file method receives a Hash, where keys are the respective keys of the Secret, and values are the paths to the files to be imported. Paths can be constants or results of method calls to automate import:

R.secret :backend do
  file secretdata: File.join(V.env.kind, 'secretdata.json')
end
Clone this wiki locally