-
Notifications
You must be signed in to change notification settings - Fork 1
Secret
Gregory Nickonov edited this page Mar 4, 2019
·
1 revision
R.secret :frontend do
# Specify Secret type
type :dockerconfigjson
# Define keys and values
set '.dockerconfigjson': "..."
end
Sunstone property | Kubernetes property | Type |
---|---|---|
metadata | metadata | Kubernetes Object Metadata |
type | type | String |
Sets an individual value or group of values:
R.secret :database do
set DB_PASSWORD: 'secret'
end
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