Skip to content

Commit 5a82ce9

Browse files
author
kcp-ci-bot
committed
Deployed 79d71f2 to main with MkDocs 1.5.3 and mike 2.1.3
1 parent 5806a5d commit 5a82ce9

File tree

5 files changed

+113
-102
lines changed

5 files changed

+113
-102
lines changed

main/contributing/guides/publishing-a-new-kcp-release/index.html

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3853,20 +3853,22 @@ <h3 id="create-the-tag">Create the Tag<a class="headerlink" href="#create-the-ta
38533853
</div>
38543854
<ol>
38553855
<li><code>git fetch</code> from the main kcp repository (kcp-dev/kcp) to ensure you have the latest commits</li>
3856-
<li>Tag the main module</li>
3857-
<li>If your git remote for kcp-dev/kcp is named something other than <code>upstream</code>, change <code>REF</code> accordingly</li>
38583856
<li>
3859-
<p>If you are creating a release from a release branch, change <code>main</code> in <code>REF</code> accordingly, or you can
3860-
make <code>REF</code> a commit hash.</p>
3857+
<p>Tag the main module</p>
3858+
<ol>
3859+
<li>If your git remote for kcp-dev/kcp is named something other than <code>upstream</code>, change <code>REF</code> accordingly</li>
3860+
<li>If you are creating a release from a release branch, change <code>main</code> in <code>REF</code> accordingly, or you can
3861+
make <code>REF</code> a commit hash.</li>
3862+
</ol>
38613863
<div class="highlight"><pre><span></span><code><a id="__codelineno-0-1" name="__codelineno-0-1" href="#__codelineno-0-1"></a><span class="nv">REF</span><span class="o">=</span>upstream/main
3862-
<a id="__codelineno-0-2" name="__codelineno-0-2" href="#__codelineno-0-2"></a><span class="nv">TAG</span><span class="o">=</span>v1.2.3
3864+
<a id="__codelineno-0-2" name="__codelineno-0-2" href="#__codelineno-0-2"></a><span class="nv">TAG</span><span class="o">=</span>&lt;tag&gt;<span class="w"> </span><span class="c1"># e.g. v1.2.3</span>
38633865
<a id="__codelineno-0-3" name="__codelineno-0-3" href="#__codelineno-0-3"></a>git<span class="w"> </span>tag<span class="w"> </span>--sign<span class="w"> </span>--message<span class="w"> </span><span class="s2">&quot;</span><span class="nv">$TAG</span><span class="s2">&quot;</span><span class="w"> </span><span class="s2">&quot;</span><span class="nv">$TAG</span><span class="s2">&quot;</span><span class="w"> </span><span class="s2">&quot;</span><span class="nv">$REF</span><span class="s2">&quot;</span>
38643866
</code></pre></div>
38653867
</li>
38663868
</ol>
38673869
<h3 id="push-the-tag">Push the Tag<a class="headerlink" href="#push-the-tag" title="Permanent link">&para;</a></h3>
38683870
<div class="highlight"><pre><span></span><code><a id="__codelineno-1-1" name="__codelineno-1-1" href="#__codelineno-1-1"></a><span class="nv">REMOTE</span><span class="o">=</span>upstream
3869-
<a id="__codelineno-1-2" name="__codelineno-1-2" href="#__codelineno-1-2"></a><span class="nv">TAG</span><span class="o">=</span>v1.2.3
3871+
<a id="__codelineno-1-2" name="__codelineno-1-2" href="#__codelineno-1-2"></a><span class="nv">TAG</span><span class="o">=</span>&lt;tag&gt;<span class="w"> </span><span class="c1"># e.g. v1.2.3</span>
38703872
<a id="__codelineno-1-3" name="__codelineno-1-3" href="#__codelineno-1-3"></a>git<span class="w"> </span>push<span class="w"> </span><span class="s2">&quot;</span><span class="nv">$REMOTE</span><span class="s2">&quot;</span><span class="w"> </span><span class="s2">&quot;</span><span class="nv">$TAG</span><span class="s2">&quot;</span>
38713873
</code></pre></div>
38723874
<h2 id="if-its-a-new-minor-version">If it's a New Minor Version<a class="headerlink" href="#if-its-a-new-minor-version" title="Permanent link">&para;</a></h2>
@@ -3877,7 +3879,7 @@ <h3 id="create-a-release-branch">Create a Release Branch<a class="headerlink" hr
38773879
<p>Set <code>REMOTE</code>, <code>REF</code>, and <code>VERSION</code> as appropriate.</p>
38783880
<div class="highlight"><pre><span></span><code><a id="__codelineno-2-1" name="__codelineno-2-1" href="#__codelineno-2-1"></a><span class="nv">REMOTE</span><span class="o">=</span>upstream
38793881
<a id="__codelineno-2-2" name="__codelineno-2-2" href="#__codelineno-2-2"></a><span class="nv">REF</span><span class="o">=</span><span class="s2">&quot;</span><span class="nv">$REMOTE</span><span class="s2">/main&quot;</span>
3880-
<a id="__codelineno-2-3" name="__codelineno-2-3" href="#__codelineno-2-3"></a><span class="nv">VERSION</span><span class="o">=</span><span class="m">1</span>.2
3882+
<a id="__codelineno-2-3" name="__codelineno-2-3" href="#__codelineno-2-3"></a><span class="nv">VERSION</span><span class="o">=</span>&lt;version&gt;<span class="w"> </span><span class="c1"># e.g. 1.2</span>
38813883
<a id="__codelineno-2-4" name="__codelineno-2-4" href="#__codelineno-2-4"></a>git<span class="w"> </span>checkout<span class="w"> </span>-b<span class="w"> </span><span class="s2">&quot;release-</span><span class="nv">$VERSION</span><span class="s2">&quot;</span><span class="w"> </span><span class="s2">&quot;</span><span class="nv">$REF</span><span class="s2">&quot;</span>
38823884
<a id="__codelineno-2-5" name="__codelineno-2-5" href="#__codelineno-2-5"></a>git<span class="w"> </span>push<span class="w"> </span><span class="s2">&quot;</span><span class="nv">$REMOTE</span><span class="s2">&quot;</span><span class="w"> </span><span class="s2">&quot;release-</span><span class="nv">$VERSION</span><span class="s2">&quot;</span>
38833885
</code></pre></div>
@@ -3926,7 +3928,7 @@ <h2 id="trigger-documentation-deployment">Trigger Documentation Deployment<a cla
39263928
<p>Documentation for the respective release branch needs to be triggered manually after the release branch has been pushed.</p>
39273929
<ol>
39283930
<li>Navigate to the <a href="https://github.com/kcp-dev/kcp/actions/workflows/docs-gen-and-push.yaml">Generate and push docs</a> GitHub Action.</li>
3929-
<li>Hit the "Run forkflow" button, run workflow against <code>release-$VERSION</code>.</li>
3931+
<li>Hit the "Run workflow" button, run workflow against <code>release-$VERSION</code>.</li>
39303932
<li>Make sure the triggered workflow ran and deployed a new version of the documentation to <a href="https://docs.kcp.io">docs.kcp.io</a>.</li>
39313933
</ol>
39323934
<h2 id="notify">Notify<a class="headerlink" href="#notify" title="Permanent link">&para;</a></h2>

main/contributing/monorepo/index.html

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3726,8 +3726,10 @@ <h1 id="monorepo-structure">Monorepo Structure<a class="headerlink" href="#monor
37263726
<p>At the moment, the following libraries are part of the monorepo:</p>
37273727
<ul>
37283728
<li><a href="https://github.com/kcp-dev/apimachinery">kcp-dev/apimachinery</a></li>
3729+
<li><a href="https://github.com/kcp-dev/cli">kcp-dev/cli</a></li>
37293730
<li><a href="https://github.com/kcp-dev/client-go">kcp-dev/client-go</a></li>
37303731
<li><a href="https://github.com/kcp-dev/code-generator">kcp-dev/code-generator</a></li>
3732+
<li><a href="https://github.com/kcp-dev/sdk">kcp-dev/sdk</a></li>
37313733
</ul>
37323734
<h2 id="terminology">Terminology<a class="headerlink" href="#terminology" title="Permanent link">&para;</a></h2>
37333735
<ul>
@@ -3745,7 +3747,8 @@ <h2 id="high-level-overview">High Level Overview<a class="headerlink" href="#hig
37453747
<p>The source code for staging repositories is located on the special path in the monorepo which is
37463748
<a href="https://github.com/kcp-dev/kcp/tree/main/staging/src/github.com/kcp-dev"><code>./staging/src/github.com/kcp-dev</code></a>.
37473749
Every subdirectory on that path corresponds to a single staging repository.
3748-
The code in the staging/ directory is authoritative, i.e. the only copy of the code. You can directly modify such code.</p>
3750+
The code in the <code>staging/</code> directory is authoritative, i.e. the only copy of the code. You can directly modify such
3751+
code.</p>
37493752
<p>In order to preserve standalone Go modules for each staging repository, the source code from staging repositories
37503753
is mirrored to standalone (aka published) repositories. The mirroring is an automatic process happening every
37513754
several hours.</p>
@@ -3760,7 +3763,7 @@ <h2 id="handling-tags">Handling Tags<a class="headerlink" href="#handling-tags"
37603763
version v2 will be v2.29.0.</p>
37613764
<p>Concretely:</p>
37623765
<ul>
3763-
<li>kcp-dev/client-go has the Go module major version at v0, so tags will be v0.x.y</li>
3766+
<li>kcp-dev/cli, kcp-dev/client-go, and kcp-dev/sdk have the Go module major version at v0, so tags will be v0.x.y</li>
37643767
<li>kcp-dev/apimachinery has the Go module major version at v2, so tags will be v2.x.y</li>
37653768
<li>kcp-dev/code-generator has the Go module major version at v3, so tags will be v3.x.y</li>
37663769
</ul>
@@ -3774,6 +3777,7 @@ <h2 id="implementation">Implementation<a class="headerlink" href="#implementatio
37743777
<ul>
37753778
<li>Add support for running publishing-bot on ARM64</li>
37763779
<li>Add image building process compatible with kcp</li>
3780+
<li>Add support for non-v0 and non-v1 Go modules</li>
37773781
<li>Add support for customizing tags mirroring</li>
37783782
<li>Add kcp-related configuration</li>
37793783
</ul>
@@ -3784,6 +3788,10 @@ <h2 id="implementation">Implementation<a class="headerlink" href="#implementatio
37843788
issue being open indicates that the bot is not healthy and at least the last run has failed.</p>
37853789
<p>The kcp configuration for publishing-bot can be found at https://github.com/kcp-dev/publishing-bot/blob/master/configs/kcp-dev</p>
37863790
<p>The mirroring rules are located in the kcp-dev/kcp repoitory and can be found at https://github.com/kcp-dev/kcp/blob/main/staging/publishing/rules.yaml</p>
3791+
<p>The kcp project also has a testing envrionment for publishing-bot called <code>kcp-nightly</code>. There's a dedicated <a href="https://github.com/kcp-nightly">GitHub
3792+
organization</a> and a dedicated instance of publishing-bot running in the
3793+
<code>publishing-bot-nightly</code> namespace in the Prow control plane cluster. The publishing-bot configuration for the
3794+
<code>kcp-nightly</code> environemnt can be found at https://github.com/kcp-dev/publishing-bot/blob/master/configs/kcp-nightly</p>
37873795
<p>At the moment, the bot is configured to run every 4 hours.</p>
37883796
<h2 id="creating-a-new-staging-repository">Creating a New Staging Repository<a class="headerlink" href="#creating-a-new-staging-repository" title="Permanent link">&para;</a></h2>
37893797
<p>Adding a completely new staging repository to the monorepo must follow this process:</p>
@@ -3794,12 +3802,13 @@ <h2 id="creating-a-new-staging-repository">Creating a New Staging Repository<a c
37943802
<a href="https://github.com/kcp-dev/kcp">kcp-dev/kcp</a> repository</li>
37953803
<li>Create a staging repository in <code>staging/src/github.com/kcp-dev</code> with all required files for a repository
37963804
(e.g. LICENSE, OWNERS...)</li>
3797-
<li>Create a new Git repository on GitHub to serve as a published repository with an empty initial commit</li>
3805+
<li>Create a new Git repository on GitHub to serve as a published repository with an <strong>empty</strong> initial commit</li>
37983806
<li>Update the publishing-bot rules to mirror from the new staging repository to the new published repository</li>
37993807
</ul>
38003808
<p>Adding an existing standalone repository to the monorepo is generally discouraged and will be considered on
3801-
a case-by-case basis by Maintainers. This case requires following different steps that will be documented
3802-
in the future.</p>
3809+
a case-by-case basis by Maintainers. This case requires following different steps that are documented as part of the
3810+
monorepo proposal: https://github.com/kcp-dev/enhancements/pull/7</p>
3811+
<!-- TODO(xmudrii): replace the PR link with a link to the document once merged -->
38033812

38043813

38053814

main/search/search_index.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)