<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Reference on Genop</title><link>https://genop-0d6168.gitlab.io/reference/</link><description>Recent content in Reference on Genop</description><generator>Hugo</generator><language>en-us</language><atom:link href="https://genop-0d6168.gitlab.io/reference/index.xml" rel="self" type="application/rss+xml"/><item><title>CLI Reference</title><link>https://genop-0d6168.gitlab.io/reference/cli/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://genop-0d6168.gitlab.io/reference/cli/</guid><description>&lt;h1 id="cli-reference"&gt;CLI Reference&lt;a class="anchor" href="#cli-reference"&gt;#&lt;/a&gt;&lt;/h1&gt;&#10;&lt;p&gt;All commands read &lt;code&gt;.genop.yaml&lt;/code&gt; from the current directory (or the nearest parent that contains one). &lt;code&gt;genop apply&lt;/code&gt; is the sole generator: every &lt;code&gt;genop create&lt;/code&gt; command validates its arguments, updates &lt;code&gt;.genop.yaml&lt;/code&gt;, and finishes by running &lt;code&gt;apply&lt;/code&gt; itself — there is no separate step where you write the topology and remember to apply it, so the file and the generated code never drift apart because a step was skipped.&lt;/p&gt;&#10;&lt;h3 id="genop-apply--regenerate-scaffolding-from-genopyaml"&gt;&lt;code&gt;genop apply&lt;/code&gt; — Regenerate scaffolding from &lt;code&gt;.genop.yaml&lt;/code&gt;&lt;a class="anchor" href="#genop-apply--regenerate-scaffolding-from-genopyaml"&gt;#&lt;/a&gt;&lt;/h3&gt;&#10;&lt;p&gt;Reads the topology and brings the repository back in line with it. This is the command every &lt;code&gt;genop create&lt;/code&gt; subcommand runs internally, and the one to reach for directly when you have hand-edited &lt;code&gt;.genop.yaml&lt;/code&gt; or lost a generated file.&lt;/p&gt;</description></item><item><title>.genop.yaml Reference</title><link>https://genop-0d6168.gitlab.io/reference/topology/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://genop-0d6168.gitlab.io/reference/topology/</guid><description>&lt;!-- Code generated by hack/gen-topology-docs. DO NOT EDIT. --&gt;&#10;&lt;h1 id="genopyaml-reference"&gt;&lt;code&gt;.genop.yaml&lt;/code&gt; reference&lt;a class="anchor" href="#genopyaml-reference"&gt;#&lt;/a&gt;&lt;/h1&gt;&#10;&lt;p&gt;This file is generated from the &lt;code&gt;Topology*&lt;/code&gt; structs in &lt;code&gt;cmd/cli/topology.go&lt;/code&gt;. It lists every field of &lt;code&gt;.genop.yaml&lt;/code&gt;, its type, whether it is required, its default and its meaning. Run &lt;code&gt;make docs&lt;/code&gt; to regenerate it, and &lt;code&gt;docs/genop.schema.json&lt;/code&gt; alongside it, after changing a topology struct.&lt;/p&gt;&#10;&lt;h2 id="projecttopology"&gt;&lt;code&gt;ProjectTopology&lt;/code&gt;&lt;a class="anchor" href="#projecttopology"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;ProjectTopology is the root type representing a genop project topology configuration.&lt;/p&gt;&#10;&lt;table&gt;&#10;&#9;&lt;thead&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Field&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Type&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Required&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Default&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Description&lt;/th&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/thead&gt;&#10;&#9;&lt;tbody&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;code&gt;apiVersion&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;code&gt;string&lt;/code&gt; (const &lt;code&gt;genop.kornercloud.dev/v1&lt;/code&gt;)&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;yes&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;APIVersion is the topology schema version. It must be &amp;ldquo;genop.kornercloud.dev/v1&amp;rdquo;; genop rejects any other value.&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;code&gt;kind&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;code&gt;string&lt;/code&gt; (const &lt;code&gt;ProjectTopology&lt;/code&gt;)&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;yes&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Kind identifies the document type. It must be &amp;ldquo;ProjectTopology&amp;rdquo;.&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;code&gt;spec&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;a href="#topologyspec"&gt;&lt;code&gt;TopologySpec&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;yes&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Spec holds the project topology: the Go module path, optional license configuration and the list of operators.&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;h2 id="topologyspec"&gt;&lt;code&gt;TopologySpec&lt;/code&gt;&lt;a class="anchor" href="#topologyspec"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;TopologySpec contains the specification for a project topology.&lt;/p&gt;</description></item><item><title>Framework Packages</title><link>https://genop-0d6168.gitlab.io/reference/framework-packages/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://genop-0d6168.gitlab.io/reference/framework-packages/</guid><description>&lt;h1 id="framework-packages"&gt;Framework packages&lt;a class="anchor" href="#framework-packages"&gt;#&lt;/a&gt;&lt;/h1&gt;&#10;&lt;p&gt;Utility packages from &lt;code&gt;genop-runtime&lt;/code&gt; and &lt;code&gt;genop-testing&lt;/code&gt;, useful in your own step/hook code&#10;and tests, beyond the &lt;code&gt;operators&lt;/code&gt;/&lt;code&gt;operators/model&lt;/code&gt; API covered elsewhere&#10;in these docs.&lt;/p&gt;&#10;&lt;h2 id="k8s--kubernetes-utilities"&gt;&lt;code&gt;k8s&lt;/code&gt; — Kubernetes utilities&lt;a class="anchor" href="#k8s--kubernetes-utilities"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;h3 id="createorupdate"&gt;&lt;code&gt;CreateOrUpdate&lt;/code&gt;&lt;a class="anchor" href="#createorupdate"&gt;#&lt;/a&gt;&lt;/h3&gt;&#10;&lt;p&gt;Creates a resource if it doesn&amp;rsquo;t exist, or fetches the live object and&#10;applies a set of &lt;code&gt;DiffFunction&lt;/code&gt;s to it — writing it back only if one of&#10;them actually changed something. Nothing is copied by default: pass a&#10;&lt;code&gt;DiffFunction&lt;/code&gt; for every field you want reconciled, including the spec if&#10;you want it kept in sync.&lt;/p&gt;</description></item><item><title>Version Compatibility</title><link>https://genop-0d6168.gitlab.io/reference/compatibility/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://genop-0d6168.gitlab.io/reference/compatibility/</guid><description>&lt;h1 id="version-compatibility"&gt;Version compatibility&lt;a class="anchor" href="#version-compatibility"&gt;#&lt;/a&gt;&lt;/h1&gt;&#10;&lt;p&gt;genop, genop-runtime, and genop-testing are three separate modules.&#10;genop and genop-runtime are released in lockstep on matching version&#10;tags; genop-testing releases independently, pinned to a floor rather than&#10;the newest ecosystem versions so it never force-upgrades consumers.&lt;/p&gt;&#10;&lt;p&gt;This table is hand-maintained, one row added per genop release — it is&#10;the human-readable form of the same fact &lt;code&gt;go.mod&lt;/code&gt; encodes and&#10;&lt;code&gt;test/e2e/utils_test.go&lt;/code&gt; reads at test time.&lt;/p&gt;&#10;&lt;table&gt;&#10;&#9;&lt;thead&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;genop&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;genop-runtime&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;genop-testing&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Notes&lt;/th&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/thead&gt;&#10;&#9;&lt;tbody&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;v0.1.0&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;v0.1.0&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;v0.1.0&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;First public release.&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;p&gt;To add a row for a new release, check what this repo&amp;rsquo;s &lt;code&gt;go.mod&lt;/code&gt; required at&#10;that tag:&lt;/p&gt;</description></item></channel></rss>