Repository navigation
Expand file tree
/
Copy pathfaq.html
More file actions
251 lines (243 loc) · 21.9 KB
/
Copy pathfaq.html
File metadata and controls
251 lines (243 loc) · 21.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>FAQ | Runtime Conditions</title>
<meta name="description" content="Frequently asked questions about Runtime Conditions profiles, extensions, profilers, and adoption." />
<link rel="canonical" href="https://runtimeconditions.io/faq.html" />
<meta property="og:type" content="website" />
<meta property="og:title" content="FAQ | Runtime Conditions" />
<meta property="og:description" content="Frequently asked questions about Runtime Conditions profiles, extensions, profilers, and adoption." />
<meta property="og:url" content="https://runtimeconditions.io/faq.html" />
<meta property="og:site_name" content="Runtime Conditions" />
<meta property="og:image" content="https://runtimeconditions.io/assets/social-card.jpg" />
<meta property="og:image:type" content="image/jpeg" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:image:alt" content="Runtime Conditions logo: declare what your app needs to run." />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="FAQ | Runtime Conditions" />
<meta name="twitter:description" content="Frequently asked questions about Runtime Conditions profiles, extensions, profilers, and adoption." />
<meta name="twitter:image" content="https://runtimeconditions.io/assets/social-card.jpg" />
<meta name="twitter:image:alt" content="Runtime Conditions logo: declare what your app needs to run." />
<link rel="icon" type="image/svg+xml" href="assets/runtime-conditions-icon.svg" />
<link rel="icon" type="image/png" sizes="32x32" href="assets/icon-32.png" />
<link rel="apple-touch-icon" href="assets/apple-touch-icon.png" />
<link rel="stylesheet" href="assets/styles.css" />
<script src="assets/theme.js"></script>
</head>
<body>
<header class="site-header">
<div class="header-inner">
<a class="brand" href="index.html"><img class="brand-logo" src="assets/runtime-conditions-logo.svg" width="165" height="56" alt="Runtime Conditions"></a>
<nav class="top-links" aria-label="Top links">
<a href="https://github.com/runtimeconditions/spec/blob/main/docs/sixth-draft.md" data-tip="Read the latest draft of the specification" target="_blank" rel="noopener noreferrer"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><path d="M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z"/><path d="M14 3v5h5"/><path d="M9 13h6"/><path d="M9 17h6"/></svg><span>Current Draft</span></a>
<a href="https://github.com/runtimeconditions/rc-demos/blob/main/README.md" data-tip="Run Runtime Conditions end to end on your own machine" target="_blank" rel="noopener noreferrer"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><circle cx="12" cy="12" r="10"/><polygon points="10 8 16 12 10 16 10 8"/></svg><span>Run Demo</span></a>
<a href="reference.html" data-tip="See where each part of this guide comes from in the source repositories"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><path d="M3 6l6-3 6 3 6-3v15l-6 3-6-3-6 3z"/><path d="M9 3v15"/><path d="M15 6v15"/></svg><span>Source Map</span></a>
<a href="https://extensions.runtimeconditions.io/" data-tip="Browse every extension and its Go, Python, TypeScript and Java packages" target="_blank" rel="noopener noreferrer"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><path d="M21 8l-9-5-9 5 9 5 9-5z"/><path d="M3 8v8l9 5 9-5V8"/><path d="M12 13v8"/></svg><span>Registry</span></a>
<a class="social-link social-github" href="https://github.com/runtimeconditions" data-tip="Browse the Runtime Conditions repositories on GitHub" target="_blank" rel="noopener noreferrer"><svg class="nav-icon" viewBox="0 0 24 24" width="18" height="18" fill="currentColor" aria-hidden="true" focusable="false"><path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"/></svg><span class="visually-hidden">GitHub</span></a>
<a class="social-link social-slack" href="https://cloud-native.slack.com/archives/C0C0R4M65FZ" data-tip="Join the conversation on the CNCF Slack" target="_blank" rel="noopener noreferrer"><svg class="nav-icon" viewBox="0 0 24 24" width="18" height="18" fill="currentColor" aria-hidden="true" focusable="false"><path class="slack-red" d="M5.042 15.165a2.528 2.528 0 0 1-2.52 2.523A2.528 2.528 0 0 1 0 15.165a2.527 2.527 0 0 1 2.522-2.52h2.52v2.52zM6.313 15.165a2.527 2.527 0 0 1 2.521-2.52 2.527 2.527 0 0 1 2.521 2.52v6.313A2.528 2.528 0 0 1 8.834 24a2.528 2.528 0 0 1-2.521-2.522v-6.313z"/><path class="slack-blue" d="M8.834 5.042a2.528 2.528 0 0 1-2.521-2.52A2.528 2.528 0 0 1 8.834 0a2.528 2.528 0 0 1 2.521 2.522v2.52H8.834zM8.834 6.313a2.528 2.528 0 0 1 2.521 2.521 2.528 2.528 0 0 1-2.521 2.521H2.522A2.528 2.528 0 0 1 0 8.834a2.528 2.528 0 0 1 2.522-2.521h6.312z"/><path class="slack-green" d="M18.956 8.834a2.528 2.528 0 0 1 2.522-2.521A2.528 2.528 0 0 1 24 8.834a2.528 2.528 0 0 1-2.522 2.521h-2.522V8.834zM17.688 8.834a2.528 2.528 0 0 1-2.523 2.521 2.527 2.527 0 0 1-2.52-2.521V2.522A2.527 2.527 0 0 1 15.165 0a2.528 2.528 0 0 1 2.523 2.522v6.312z"/><path class="slack-yellow" d="M15.165 18.956a2.528 2.528 0 0 1 2.523 2.522A2.528 2.528 0 0 1 15.165 24a2.527 2.527 0 0 1-2.52-2.522v-2.522h2.52zM15.165 17.688a2.527 2.527 0 0 1-2.52-2.523 2.526 2.526 0 0 1 2.52-2.52h6.313A2.527 2.527 0 0 1 24 15.165a2.528 2.528 0 0 1-2.522 2.523h-6.313z"/></svg><span class="visually-hidden">Slack</span></a>
</nav>
</div>
</header>
<div class="guide-layout">
<aside class="sidebar" aria-label="Guide chapters">
<p class="sidebar-title">Reader Guide</p>
<ol class="chapter-list">
<li><a href="index.html"><span class="num">00</span><span>Start here</span></a></li>
<li><a href="concepts.html"><span class="num">01</span><span>Core concepts</span></a></li>
<li><a href="spec.html"><span class="num">02</span><span>Profile shape</span></a></li>
<li><a href="developers.html"><span class="num">03</span><span>Code to profile</span></a></li>
<li><a href="extensions.html"><span class="num">04</span><span>Extensions</span></a></li>
<li><a href="cli.html"><span class="num">05</span><span>rc CLI</span></a></li>
<li><a href="platform.html"><span class="num">06</span><span>Adapters</span></a></li>
<li><a href="demo.html"><span class="num">07</span><span>Run the demo</span></a></li>
<li><a href="reference.html"><span class="num">08</span><span>Reference</span></a></li>
<li><a aria-current="page" href="faq.html"><span class="num">09</span><span>FAQ</span></a></li>
</ol>
</aside>
<main class="content">
<p class="chapter-label">Chapter 9</p>
<h1 class="page-title">Frequently asked questions.</h1>
<p class="intro">
Questions that come up as soon as people see a profile. Select a question to see its answer.
</p>
<div class="faq-list">
<details class="faq-item" id="compose">
<summary><h2>How is this different from Docker Compose?</h2></summary>
<div class="faq-body">
<p class="short">A <code>compose.yaml</code> says how an app is run today. A profile says what the app needs, so a platform team can decide how to provide it.</p>
<div class="table-wrap">
<table>
<thead><tr><th></th><th><code>compose.yaml</code></th><th>Runtime Conditions Profile</th></tr></thead>
<tbody>
<tr><td><strong>What it describes</strong></td><td>One chosen setup</td><td>The need behind it</td></tr>
<tr><td><strong>Example</strong></td><td><code>postgres:16</code> on port 5432</td><td>"needs a relational database"</td></tr>
<tr><td><strong>Another team's API, which has no image</strong></td><td>A mock, and readers must guess what it stands for</td><td>Declared as an API, with the operations the app calls</td></tr>
<tr><td><strong>Who can change the real thing</strong></td><td>The developer rewrites the file</td><td>The platform team, without touching the app</td></tr>
<tr><td><strong>Can you get one from the other?</strong></td><td>No. The intent was never written down</td><td>Yes. A <code>compose.yaml</code> could be generated from a profile</td></tr>
</tbody>
</table>
</div>
</div>
</details>
<details class="faq-item" id="configmap">
<summary><h2>How is this different from a Kubernetes ConfigMap?</h2></summary>
<div class="faq-body">
<p class="short">A ConfigMap holds the values a workload reads at runtime, for one namespace in one cluster. A profile holds no values: it says what the workload needs and which names it reads them from. The two work at different steps, so a platform can read the profile, provide what it asks for, and then write the ConfigMap that carries the values.</p>
<div class="table-wrap">
<table>
<thead><tr><th></th><th>ConfigMap</th><th>Runtime Conditions Profile</th></tr></thead>
<tbody>
<tr><td><strong>What it holds</strong></td><td>Concrete values, such as <code>REDIS_URL: redis://cache.prod:6379</code></td><td>The need and the names, such as a <code>cache</code> Condition with engine <code>redis</code>, read from <code>REDIS_URL</code>. No values</td></tr>
<tr><td><strong>Who writes it</strong></td><td>The platform or ops team, by hand or with Helm or Kustomize, once per environment</td><td>A profiler, from declarations in the workload's code</td></tr>
<tr><td><strong>Scope</strong></td><td>One namespace in one cluster. Dev, test and production each need their own</td><td>One file per workload version, the same in every environment, and not tied to Kubernetes</td></tr>
<tr><td><strong>Does it say what is needed?</strong></td><td>No. A key maps to a string. Nothing says the value must point to Redis, which version, or which API operations the app calls</td><td>Yes. The Condition kind, interface type, engine, API operations, and alternative ways to pass the values (<code>REDIS_URL</code>, or <code>REDIS_HOST</code> and <code>REDIS_PORT</code>)</td></tr>
<tr><td><strong>Secrets</strong></td><td>Not meant for them. Passwords and tokens go in a separate Secret</td><td>Nothing to hide, because it holds no values</td></tr>
<tr><td><strong>When something is missing</strong></td><td>The pod starts anyway, and the app fails when it reads an empty or wrong variable</td><td>The profile is checked before deployment, and a missing Condition is reported with a reason</td></tr>
</tbody>
</table>
</div>
<p class="short">Here is how the two fit together. The profile declares the cache and the variable it is read from:</p>
<div class="example">
<div class="example-title"><span>In the profile: the need</span></div>
<pre><code>conditions:
- name: request-cache
kind: cache
interface:
type: key_value
engine: redis
configuration:
env:
- property: url
name: REDIS_URL</code></pre>
</div>
<p class="short">The platform reads it, creates or finds a Redis cache in that environment, and writes the value under the name the profile asked for:</p>
<div class="example">
<div class="example-title"><span>Written by the platform: the value</span></div>
<pre><code>apiVersion: v1
kind: ConfigMap
metadata:
name: request-logger-http
data:
REDIS_URL: redis://cache.prod:6379</code></pre>
</div>
<div class="note">
<p>A ConfigMap can be an output of a profile, but it cannot replace one: the values only make sense once someone knows what the workload needs. That knowledge is what the profile writes down.</p>
</div>
</div>
</details>
<details class="faq-item" id="own-catalog">
<summary><h2>Can a company write its own catalog of extensions?</h2></summary>
<div class="faq-body">
<p class="short">
Yes. An extension is a YAML document with its own id, so a company can define its own, as the <a href="https://github.com/runtimeconditions/spec/tree/main/examples/extensions/aws-object-store" target="_blank" rel="noopener noreferrer">AWS Object Store</a> example does. Our first-party extensions are one catalog among others, in the <a href="https://github.com/runtimeconditions/extensions/tree/main/catalog" target="_blank" rel="noopener noreferrer">extensions repository</a>.
</p>
<ol class="step-list">
<li><span class="step-num">1</span><div><strong>Write an extension.</strong><span>A YAML definition of the kinds, interface types, fields, and allowed values your company needs, with JSON Schema to check them.</span></div></li>
<li><span class="step-num">2</span><div><strong>Build on the existing ones.</strong><span>Depend on an extension that already owns a word instead of defining it again. An extension owns only what it introduces.</span></div></li>
<li><span class="step-num">3</span><div><strong>Generate bindings.</strong><span><code>rc bindings generate</code> turns the extension into packages for Go, Python, TypeScript, and Java.</span></div></li>
<li><span class="step-num">4</span><div><strong>Publish it.</strong><span>Put the packages in your registries and the definition at its id. A profile lists the id, and tools find the definition there, or in a local catalog directory.</span></div></li>
</ol>
<p class="short">
The rules for writing one are in the <a href="https://github.com/runtimeconditions/spec/blob/main/docs/guides/extension-authoring.md" target="_blank" rel="noopener noreferrer">extension authoring guide</a>, and <a href="extensions.html">Extensions</a> shows what an extension owns.
</p>
</div>
</details>
</div>
<nav class="page-nav" aria-label="Page navigation">
<a class="page-nav-prev" href="reference.html"><small>Previous</small><span>Reference</span></a>
<a class="page-nav-next" href="index.html"><small>Back to</small><span>Start here</span></a>
</nav>
</main>
</div>
<footer class="footer">
<div class="footer-inner">
<div class="footer-brand">
<a class="footer-logo" href="index.html"><img src="assets/runtime-conditions-logo.svg" width="141" height="48" alt="Runtime Conditions"></a>
<p>A machine-readable way for developers to declare what an app needs to run, so the platform can provide it.</p>
<div class="footer-social">
<a class="social-link social-github" href="https://github.com/runtimeconditions" aria-label="Runtime Conditions on GitHub" target="_blank" rel="noopener noreferrer"><svg class="nav-icon" viewBox="0 0 24 24" width="20" height="20" fill="currentColor" aria-hidden="true" focusable="false"><path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"/></svg></a>
<a class="social-link social-slack" href="https://cloud-native.slack.com/archives/C0C0R4M65FZ" aria-label="Runtime Conditions on the CNCF Slack" target="_blank" rel="noopener noreferrer"><svg class="nav-icon" viewBox="0 0 24 24" width="20" height="20" fill="currentColor" aria-hidden="true" focusable="false"><path class="slack-red" d="M5.042 15.165a2.528 2.528 0 0 1-2.52 2.523A2.528 2.528 0 0 1 0 15.165a2.527 2.527 0 0 1 2.522-2.52h2.52v2.52zM6.313 15.165a2.527 2.527 0 0 1 2.521-2.52 2.527 2.527 0 0 1 2.521 2.52v6.313A2.528 2.528 0 0 1 8.834 24a2.528 2.528 0 0 1-2.521-2.522v-6.313z"/><path class="slack-blue" d="M8.834 5.042a2.528 2.528 0 0 1-2.521-2.52A2.528 2.528 0 0 1 8.834 0a2.528 2.528 0 0 1 2.521 2.522v2.52H8.834zM8.834 6.313a2.528 2.528 0 0 1 2.521 2.521 2.528 2.528 0 0 1-2.521 2.521H2.522A2.528 2.528 0 0 1 0 8.834a2.528 2.528 0 0 1 2.522-2.521h6.312z"/><path class="slack-green" d="M18.956 8.834a2.528 2.528 0 0 1 2.522-2.521A2.528 2.528 0 0 1 24 8.834a2.528 2.528 0 0 1-2.522 2.521h-2.522V8.834zM17.688 8.834a2.528 2.528 0 0 1-2.523 2.521 2.527 2.527 0 0 1-2.52-2.521V2.522A2.527 2.527 0 0 1 15.165 0a2.528 2.528 0 0 1 2.523 2.522v6.312z"/><path class="slack-yellow" d="M15.165 18.956a2.528 2.528 0 0 1 2.523 2.522A2.528 2.528 0 0 1 15.165 24a2.527 2.527 0 0 1-2.52-2.522v-2.522h2.52zM15.165 17.688a2.527 2.527 0 0 1-2.52-2.523 2.526 2.526 0 0 1 2.52-2.52h6.313A2.527 2.527 0 0 1 24 15.165a2.528 2.528 0 0 1-2.522 2.523h-6.313z"/></svg></a>
</div>
</div>
<nav class="footer-col" aria-label="Guide">
<h2>Guide</h2>
<ul>
<li><a href="index.html">Start here</a></li>
<li><a href="concepts.html">Core concepts</a></li>
<li><a href="spec.html">Profile shape</a></li>
<li><a href="developers.html">Code to profile</a></li>
<li><a href="cli.html">rc CLI</a></li>
<li><a href="faq.html">FAQ</a></li>
</ul>
</nav>
<nav class="footer-col" aria-label="Project">
<h2>Project</h2>
<ul>
<li><a href="https://github.com/runtimeconditions/spec/blob/main/docs/sixth-draft.md" target="_blank" rel="noopener noreferrer">Current draft</a></li>
<li><a href="https://extensions.runtimeconditions.io/" target="_blank" rel="noopener noreferrer">Extension registry</a></li>
<li><a href="https://github.com/runtimeconditions/rc-demos/blob/main/README.md" target="_blank" rel="noopener noreferrer">Run the demo</a></li>
<li><a href="reference.html">Source map</a></li>
</ul>
</nav>
<nav class="footer-col" aria-label="Community">
<h2>Community</h2>
<ul>
<li><a href="https://github.com/runtimeconditions" target="_blank" rel="noopener noreferrer">GitHub</a></li>
<li><a href="https://cloud-native.slack.com/archives/C0C0R4M65FZ" target="_blank" rel="noopener noreferrer">CNCF Slack</a></li>
<li><a href="https://github.com/runtimeconditions/runtimeconditions.github.io/issues" target="_blank" rel="noopener noreferrer">Improve this guide</a></li>
</ul>
</nav>
</div>
<div class="footer-bottom">
<span>© 2026 Runtime Conditions contributors.</span>
<span>Runtime Conditions is seeking adoption by an established parent project.</span>
</div>
</footer>
<script src="assets/syntax.js" defer></script>
<script>
// Open the question a link points to, such as faq.html#own-catalog.
const openFromHash = () => {
const target = location.hash && document.getElementById(location.hash.slice(1));
if (target instanceof HTMLDetailsElement) {
target.open = true;
target.scrollIntoView();
}
};
openFromHash();
window.addEventListener("hashchange", openFromHash);
// Slide each answer open and closed instead of jumping.
const reduceMotion = window.matchMedia("(prefers-reduced-motion: reduce)");
for (const item of document.querySelectorAll(".faq-item")) {
const summary = item.querySelector("summary");
const body = item.querySelector(".faq-body");
let running = null;
summary.addEventListener("click", (event) => {
if (reduceMotion.matches || !body.animate) return;
event.preventDefault();
if (running) running.cancel();
const opening = !item.open;
if (opening) item.open = true;
const full = body.scrollHeight;
const start = running ? body.offsetHeight : opening ? 0 : full;
const end = opening ? full : 0;
body.style.overflow = "hidden";
running = body.animate(
[
{ height: `${start}px`, opacity: opening ? 0 : 1 },
{ height: `${end}px`, opacity: opening ? 1 : 0 },
],
{ duration: opening ? 350 : 280, easing: "cubic-bezier(0.4, 0, 0.2, 1)" },
);
running.onfinish = () => {
if (!opening) item.open = false;
body.style.overflow = "";
running = null;
};
});
}
</script>
</body>
</html>