Skip to content

Commit

Permalink
Deploying to gh-pages from @ 0cfe758 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
midnightercz committed May 17, 2024
1 parent a33965c commit 91a0d61
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions _modules/pubtools/_quay/operator_pusher.html
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ <h1>Source code for pubtools._quay.operator_pusher</h1><div class="highlight"><p

<div class="viewcode-block" id="OperatorPusher.get_existing_index_images"><a class="viewcode-back" href="../../../operator_pusher.html#pubtools._quay.operator_pusher.OperatorPusher.get_existing_index_images">[docs]</a> <span class="k">def</span> <span class="nf">get_existing_index_images</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">quay_client</span><span class="p">:</span> <span class="n">QuayClient</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="n">List</span><span class="p">[</span><span class="n">Tuple</span><span class="p">[</span><span class="nb">str</span><span class="p">,</span> <span class="nb">str</span><span class="p">,</span> <span class="nb">str</span><span class="p">]]:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Return existing index images for push items.</span>
<span class="sd"> Return existing index images for non-fbc push items.</span>

<span class="sd"> Args:</span>
<span class="sd"> quay_client (QuayClient): quay_client_instance</span>
Expand All @@ -490,7 +490,11 @@ <h1>Source code for pubtools._quay.operator_pusher</h1><div class="highlight"><p
<span class="n">current_index_images</span> <span class="o">=</span> <span class="p">[]</span>

<span class="n">manifest_list</span><span class="p">:</span> <span class="n">Any</span> <span class="o">=</span> <span class="p">{}</span>
<span class="k">for</span> <span class="n">version</span> <span class="ow">in</span> <span class="nb">sorted</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">version_items_mapping</span><span class="o">.</span><span class="n">keys</span><span class="p">()):</span>
<span class="k">for</span> <span class="n">version</span><span class="p">,</span> <span class="n">items</span> <span class="ow">in</span> <span class="nb">sorted</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">version_items_mapping</span><span class="o">.</span><span class="n">items</span><span class="p">()):</span>
<span class="n">items_opted_in</span><span class="p">,</span> <span class="n">failed_items</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_get_fbc_opted_in_items</span><span class="p">()</span>
<span class="k">if</span> <span class="ow">not</span> <span class="bp">self</span><span class="o">.</span><span class="n">_get_non_fbc_items_for_version</span><span class="p">(</span><span class="n">items</span><span class="p">,</span> <span class="n">version</span><span class="p">,</span> <span class="n">items_opted_in</span><span class="p">):</span>
<span class="k">continue</span>

<span class="n">image_ref</span> <span class="o">=</span> <span class="s2">&quot;</span><span class="si">{0}</span><span class="s2">:</span><span class="si">{1}</span><span class="s2">&quot;</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="n">index_image_repo</span><span class="p">,</span> <span class="n">version</span><span class="p">)</span>
<span class="k">try</span><span class="p">:</span>
<span class="n">manifest_list</span> <span class="o">=</span> <span class="n">quay_client</span><span class="o">.</span><span class="n">get_manifest</span><span class="p">(</span>
Expand Down
2 changes: 1 addition & 1 deletion operator_pusher.html
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ <h1>Operator Pusher<a class="headerlink" href="#operator-pusher" title="Permalin
<dl class="py method">
<dt class="sig sig-object py" id="pubtools._quay.operator_pusher.OperatorPusher.get_existing_index_images">
<span class="sig-name descname"><span class="pre">get_existing_index_images</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">quay_client</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference internal" href="quay_client.html#pubtools._quay.quay_client.QuayClient" title="pubtools._quay.quay_client.QuayClient"><span class="pre">QuayClient</span></a></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><span class="pre">List</span><span class="p"><span class="pre">[</span></span><span class="pre">Tuple</span><span class="p"><span class="pre">[</span></span><span class="pre">str</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">str</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">str</span><span class="p"><span class="pre">]</span></span><span class="p"><span class="pre">]</span></span></span></span><a class="reference internal" href="_modules/pubtools/_quay/operator_pusher.html#OperatorPusher.get_existing_index_images"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#pubtools._quay.operator_pusher.OperatorPusher.get_existing_index_images" title="Permalink to this definition"></a></dt>
<dd><p>Return existing index images for push items.</p>
<dd><p>Return existing index images for non-fbc push items.</p>
<dl class="simple">
<dt>Args:</dt><dd><p>quay_client (QuayClient): quay_client_instance</p>
</dd>
Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

0 comments on commit 91a0d61

Please sign in to comment.