Repository navigation
Expand file tree
/
Copy pathconcepts.html
More file actions
177 lines (170 loc) · 20 KB
/
Copy pathconcepts.html
File metadata and controls
177 lines (170 loc) · 20 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Core Concepts | Runtime Conditions</title>
<meta name="description" content="Core concepts behind Runtime Conditions: profiles, conditions, extensions, and where they fit." />
<link rel="canonical" href="https://runtimeconditions.io/concepts.html" />
<meta property="og:type" content="website" />
<meta property="og:title" content="Core Concepts | Runtime Conditions" />
<meta property="og:description" content="Core concepts behind Runtime Conditions: profiles, conditions, extensions, and where they fit." />
<meta property="og:url" content="https://runtimeconditions.io/concepts.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="Core Concepts | Runtime Conditions" />
<meta name="twitter:description" content="Core concepts behind Runtime Conditions: profiles, conditions, extensions, and where they fit." />
<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 aria-current="page" 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 href="faq.html"><span class="num">09</span><span>FAQ</span></a></li>
</ol>
</aside>
<main class="content">
<p class="chapter-label">Chapter 1</p>
<h1 class="page-title">The core ideas</h1>
<p class="intro">
Five words and one rule are all you need to read the rest of this guide.
</p>
<section class="section">
<h2>The five words</h2>
<div class="table-wrap">
<table>
<thead><tr><th>Word</th><th>Meaning</th><th>Example</th></tr></thead>
<tbody>
<tr><td><strong><a href="https://github.com/runtimeconditions/spec/blob/main/docs/sixth-draft.md#3-profile-document" target="_blank" rel="noopener noreferrer">Profile</a></strong></td><td>One app's list of what it needs to run.</td><td>The request logger's profile, <code>request-logger-http</code></td></tr>
<tr><td><strong><a href="https://github.com/runtimeconditions/spec/blob/main/docs/sixth-draft.md#4-condition-model" target="_blank" rel="noopener noreferrer">Condition</a></strong></td><td>One thing the app needs, such as an API or a cache.</td><td><code>todos-api</code>, <code>request-cache</code></td></tr>
<tr><td><strong><a href="https://github.com/runtimeconditions/spec/blob/main/docs/sixth-draft.md#5-extensions" target="_blank" rel="noopener noreferrer">Extension</a></strong></td><td>Defines the words a profile can use, and checks them.</td><td><a href="https://github.com/runtimeconditions/extensions/tree/main/catalog/rc/common-integrations" target="_blank" rel="noopener noreferrer">Common Integrations</a>, <a href="https://github.com/runtimeconditions/extensions/tree/main/catalog/rc/env-configuration" target="_blank" rel="noopener noreferrer">Env Configuration</a>, <a href="https://github.com/runtimeconditions/spec/tree/main/examples/extensions/aws-object-store" target="_blank" rel="noopener noreferrer">AWS Object Store</a></td></tr>
<tr><td><strong><a href="https://github.com/runtimeconditions/spec/blob/main/docs/guides/generator-discovery-workflow.md" target="_blank" rel="noopener noreferrer">Profiler</a></strong></td><td>Reads your code and writes the profile.</td><td>The <a href="https://github.com/runtimeconditions/go-rc-profiler" target="_blank" rel="noopener noreferrer">Go</a>, <a href="https://github.com/runtimeconditions/java-rc-profiler" target="_blank" rel="noopener noreferrer">Java</a>, <a href="https://github.com/runtimeconditions/python-rc-profiler" target="_blank" rel="noopener noreferrer">Python</a>, and <a href="https://github.com/runtimeconditions/ts-rc-profiler" target="_blank" rel="noopener noreferrer">TypeScript</a> profilers, run by <a href="https://github.com/runtimeconditions/rc-cli" target="_blank" rel="noopener noreferrer"><code>rc-cli</code></a></td></tr>
<tr><td><strong><a href="https://github.com/runtimeconditions/rc-demos/tree/main/kratix/promises" target="_blank" rel="noopener noreferrer">Adapter</a></strong></td><td>Turns a profile into requests for one platform.</td><td>The Kratix <a href="https://github.com/runtimeconditions/rc-demos/blob/main/kratix/manifests/promises/application-release.yaml" target="_blank" rel="noopener noreferrer"><code>ApplicationRelease</code></a> Promise in the demo</td></tr>
</tbody>
</table>
</div>
</section>
<section class="section">
<h2>Who does what</h2>
<p class="short">Five roles, and what each one does. They match the conformance classes of the <a href="https://github.com/runtimeconditions/spec/blob/main/docs/sixth-draft.md#9-conformance" target="_blank" rel="noopener noreferrer">specification</a>.</p>
<div class="table-wrap">
<table>
<thead><tr><th>Role</th><th>What they do</th><th>Example</th></tr></thead>
<tbody>
<tr><td><strong><a href="https://github.com/runtimeconditions/spec/blob/main/docs/sixth-draft.md#92-extension-conformance" target="_blank" rel="noopener noreferrer">Extension author</a></strong></td><td>Defines the words a profile can use</td><td><a href="https://github.com/runtimeconditions/extensions/tree/main/catalog/rc/common-integrations" target="_blank" rel="noopener noreferrer">Common Integrations</a></td></tr>
<tr><td><strong>Developer</strong></td><td>Declares what the app needs</td><td>A few lines in the app's own code</td></tr>
<tr><td><strong><a href="https://github.com/runtimeconditions/spec/blob/main/docs/sixth-draft.md#93-generator-conformance" target="_blank" rel="noopener noreferrer">Profiler</a></strong></td><td>Reads the code and writes the profile</td><td><a href="https://github.com/runtimeconditions/rc-cli" target="_blank" rel="noopener noreferrer"><code>rc profile generate</code></a></td></tr>
<tr><td><strong><a href="https://github.com/runtimeconditions/spec/blob/main/docs/sixth-draft.md#94-validator-conformance" target="_blank" rel="noopener noreferrer">Validator</a></strong></td><td>Checks a profile against the core and its extensions</td><td><a href="https://github.com/runtimeconditions/rc-cli" target="_blank" rel="noopener noreferrer"><code>rc profile validate</code></a></td></tr>
<tr><td><strong><a href="https://github.com/runtimeconditions/spec/blob/main/docs/sixth-draft.md#95-adapter-conformance" target="_blank" rel="noopener noreferrer">Platform team</a></strong></td><td>Decides how to provide each need, through an adapter</td><td>The Kratix <a href="https://github.com/runtimeconditions/rc-demos/tree/main/kratix/promises" target="_blank" rel="noopener noreferrer">Promises</a> in the demo</td></tr>
</tbody>
</table>
</div>
</section>
<section class="section">
<h2>Demand and fulfillment</h2>
<p class="short">
A profile is demand: what the app needs. Fulfillment is the platform's job: how to provide it. Tools like Radius, Crossplane, and Kratix start from a need that is already known, and a profile is where that need is written down.
</p>
<p class="chain" aria-label="Where a profile sits among the tools around it"><span>Developer</span><i>→</i><span class="on">Runtime Conditions Profile</span><i>→</i><span>Radius, Crossplane, Kratix…</span></p>
<div class="table-wrap">
<table>
<thead><tr><th></th><th>The profile (demand)</th><th>The platform (fulfillment)</th></tr></thead>
<tbody>
<tr><td><strong>Says</strong></td><td>What the app needs</td><td>How to provide it</td></tr>
<tr><td><strong>Example</strong></td><td>"A Redis cache, read through <code>REDIS_URL</code>"</td><td>A Redis Promise in Kratix, or a managed Redis in the cloud</td></tr>
<tr><td><strong>Written by</strong></td><td>The developer</td><td>The platform team</td></tr>
<tr><td><strong>Changes when</strong></td><td>The app needs something new</td><td>The platform changes how it provides things</td></tr>
</tbody>
</table>
</div>
<p class="short">
An adapter connects the two for one platform. <a href="platform.html">Chapter 6</a> follows one through the demo.
</p>
</section>
<nav class="page-nav" aria-label="Page navigation">
<a class="page-nav-prev" href="index.html"><small>Previous</small><span>Start here</span></a>
<a class="page-nav-next" href="spec.html"><small>Next</small><span>Profile shape</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>
</body>
</html>