<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/gitlab/gitlab-ce.git/app/services/clusters/gcp, branch docs-pages-force-https</title>
<subtitle>gitlab.com: gitlab-org/gitlab-ce.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/'/>
<entry>
<title>Merge branch '60617-enable-project-cluster-jit' into 'master'</title>
<updated>2019-06-24T05:16:31+00:00</updated>
<author>
<name>Thong Kuah</name>
<email>tkuah@gitlab.com</email>
</author>
<published>2019-06-24T05:16:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=d9f4a919458721bd9ffae4d4e69bf17d18bd3be8'/>
<id>d9f4a919458721bd9ffae4d4e69bf17d18bd3be8</id>
<content type='text'>
Enable JIT Kubernetes resource creation for project level clusters

See merge request gitlab-org/gitlab-ce!29515</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Enable JIT Kubernetes resource creation for project level clusters

See merge request gitlab-org/gitlab-ce!29515</pre>
</div>
</content>
</entry>
<entry>
<title>Retry fetching Kubernetes Secret token</title>
<updated>2019-06-21T06:36:34+00:00</updated>
<author>
<name>Dylan Griffith</name>
<email>dyl.griffith@gmail.com</email>
</author>
<published>2019-06-21T05:13:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=4855667dad5d1ff61725bebf0683f0491bffc87c'/>
<id>4855667dad5d1ff61725bebf0683f0491bffc87c</id>
<content type='text'>
Since Kubernetes is creating the Secret and token asynchronously it is
necessary that we implement some delay or retrying logic to avoid a race
condition where we fetch a Secret before the token is even set. There
does not appear to be any way for us to force it to be set with any
synchronous API call so retrying seems to be the only option.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Since Kubernetes is creating the Secret and token asynchronously it is
necessary that we implement some delay or retrying logic to avoid a race
condition where we fetch a Secret before the token is even set. There
does not appear to be any way for us to force it to be set with any
synchronous API call so retrying seems to be the only option.
</pre>
</div>
</content>
</entry>
<entry>
<title>Enable project-level JIT resource creation</title>
<updated>2019-06-18T02:43:52+00:00</updated>
<author>
<name>Tiger</name>
<email>twatson@gitlab.com</email>
</author>
<published>2019-06-11T23:44:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=74702f0e0e05bc346338fbd11b596fcbedfbaea6'/>
<id>74702f0e0e05bc346338fbd11b596fcbedfbaea6</id>
<content type='text'>
Previously this behaviour was only available to group
and instance-level clusters, as some project clusters
relied on Kubernetes credentials being passed through
to the runner instead of having their resources managed
by GitLab (which is not available when using JIT). These
clusters have been migrated to unmanaged, so resources
can be created on demand for the remaining managed clusters.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously this behaviour was only available to group
and instance-level clusters, as some project clusters
relied on Kubernetes credentials being passed through
to the runner instead of having their resources managed
by GitLab (which is not available when using JIT). These
clusters have been migrated to unmanaged, so resources
can be created on demand for the remaining managed clusters.
</pre>
</div>
</content>
</entry>
<entry>
<title>Rename `ClusterPlatformConfigureWorker`</title>
<updated>2018-12-21T13:17:13+00:00</updated>
<author>
<name>George Tsiolis</name>
<email>tsiolis.g@gmail.com</email>
</author>
<published>2018-12-21T13:17:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=ac5fe450ff2af92a7b9d26b6ff51e3bba03afb95'/>
<id>ac5fe450ff2af92a7b9d26b6ff51e3bba03afb95</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add externalized strings for clusters error messages</title>
<updated>2018-12-17T13:45:02+00:00</updated>
<author>
<name>George Tsiolis</name>
<email>tsiolis.g@gmail.com</email>
</author>
<published>2018-12-11T21:21:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=4fc73988a07950ae854908373f7bd02d7a445bed'/>
<id>4fc73988a07950ae854908373f7bd02d7a445bed</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Minor refactor to GCP service classes</title>
<updated>2018-12-10T23:11:01+00:00</updated>
<author>
<name>Mayra Cabrera</name>
<email>mcabrera@gitlab.com</email>
</author>
<published>2018-12-10T22:52:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=45ebdf82154aa27c4004c65e782e35eccb60dc02'/>
<id>45ebdf82154aa27c4004c65e782e35eccb60dc02</id>
<content type='text'>
- Split logger call for readibility
- Reduce code duplication by adding new method
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- Split logger call for readibility
- Reduce code duplication by adding new method
</pre>
</div>
</content>
</entry>
<entry>
<title>Add more structured JSON logging to Kubernetes classes</title>
<updated>2018-12-10T15:20:07+00:00</updated>
<author>
<name>Dylan Griffith</name>
<email>dyl.griffith@gmail.com</email>
</author>
<published>2018-12-10T15:20:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=8d3e96acfb8d378bbc83be079ae2df159a080c63'/>
<id>8d3e96acfb8d378bbc83be079ae2df159a080c63</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Rename to CreateOrUpdateServiceAccountService</title>
<updated>2018-12-04T21:22:22+00:00</updated>
<author>
<name>Thong Kuah</name>
<email>tkuah@gitlab.com</email>
</author>
<published>2018-12-04T20:09:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=c0c75c80008a3aab832860fd8e12dfe88f1e7fde'/>
<id>c0c75c80008a3aab832860fd8e12dfe88f1e7fde</id>
<content type='text'>
This reflects how we now create or update
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reflects how we now create or update
</pre>
</div>
</content>
</entry>
<entry>
<title>Modify service so that it can be re-run</title>
<updated>2018-12-04T02:46:46+00:00</updated>
<author>
<name>Thong Kuah</name>
<email>tkuah@gitlab.com</email>
</author>
<published>2018-11-28T10:31:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=dc1827209147de977b229269a0e52b1a348ed804'/>
<id>dc1827209147de977b229269a0e52b1a348ed804</id>
<content type='text'>
If the service fails mid-point, then we should be able to re-run this
service. So, detect presence of any previously created Kubernetes
resource and update or create accordingly.

Fix specs accordingly. In the case of finalize_creation_service_spec.rb,
I decided to stub out the async worker rather than maintaining
individual stubs for various kubeclient calls for that worker.

Also add test cases for group clusters
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If the service fails mid-point, then we should be able to re-run this
service. So, detect presence of any previously created Kubernetes
resource and update or create accordingly.

Fix specs accordingly. In the case of finalize_creation_service_spec.rb,
I decided to stub out the async worker rather than maintaining
individual stubs for various kubeclient calls for that worker.

Also add test cases for group clusters
</pre>
</div>
</content>
</entry>
<entry>
<title>Call ClusterPlatformConfigureWorker to re-use code</title>
<updated>2018-12-04T02:46:11+00:00</updated>
<author>
<name>Thong Kuah</name>
<email>tkuah@gitlab.com</email>
</author>
<published>2018-11-15T02:28:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=28b0b9c144a0869e218728d1d056607d1a7a7a8a'/>
<id>28b0b9c144a0869e218728d1d056607d1a7a7a8a</id>
<content type='text'>
We remove configure_project_service_account and replace
ClusterPlatformConfigureWorker as they perform exactly the same piece of
work. This also makes GKE cluster creation to be the same as Adding
existing cluster - they both now use another worker to execute
CreateOrUpdateNamespaceService.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We remove configure_project_service_account and replace
ClusterPlatformConfigureWorker as they perform exactly the same piece of
work. This also makes GKE cluster creation to be the same as Adding
existing cluster - they both now use another worker to execute
CreateOrUpdateNamespaceService.
</pre>
</div>
</content>
</entry>
</feed>
