Skip to content

Commit 09cbd19

Browse files
committed
Apply 7 suggestion(s) to 2 file(s)
1 parent 8f7b3ff commit 09cbd19

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

api/v1alpha1/drupalsite_types.go

+7-7
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,18 @@ const (
3131

3232
// DrupalSiteSpec defines the desired state of DrupalSite
3333
type DrupalSiteSpec struct {
34-
// Publish toggles the site's visibility to the world, ie whether any inbound traffic is allowed. The default value is "true".
34+
// Publish toggles the site's visibility to the world, ie whether any inbound traffic is allowed. The default value is "true". Set to false if you want to quickly cut all access to the site.
3535
// +kubebuilder:default=true
3636
// +optional
3737
Publish bool `json:"publish"`
3838

39-
// MainSite specifies if the site is production site or not. The default value is "true".
39+
// MainSite specifies that this DrupalSite is the "live" website of this project, meaning that every other DrupalSite in the project is a testing environment
4040
// +kubebuilder:default=true
4141
// +optional
4242
MainSite bool `json:"mainSite"`
4343

4444
// SiteURL is the URL where the site should be made available.
45-
// Defaults to <envName>-<projectname>.<defaultDomain>, where <defaultDomain> is configured per cluster (typically `web.cern.ch`)
45+
// Defaults to <name>-<projectname>.<defaultDomain>, where <defaultDomain> is typically `web.cern.ch`
4646
// +kubebuilder:validation:Pattern=`[(http(s)?):\/\/(www\.)?a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)`
4747
// +optional
4848
SiteURL string `json:"siteUrl,omitempty"`
@@ -52,7 +52,7 @@ type DrupalSiteSpec struct {
5252
// +kubebuilder:validation:Required
5353
Version `json:"version"`
5454

55-
// Configuration refers to the configuration fields of the DrupalSite like ExtraConfigurationRepo, QoSClass, DatabaseClass, CloneFrom, DiskSize, WebDAVPassword
55+
// Configuration of the DrupalSite for specific needs. A typical default value is given for every setting, so usually these won't need to change.
5656
// +optional
5757
Configuration `json:"configuration"`
5858
}
@@ -72,7 +72,7 @@ type Version struct {
7272
ReleaseSpec string `json:"releaseSpec"`
7373
}
7474

75-
// Configuration refers to the configuration fields of the DrupalSite like ExtraConfigurationRepo, QoSClass, DatabaseClass, CloneFrom, DiskSize, WebDAVPassword
75+
// Configuration of the DrupalSite for specific needs. A typical default value is given for every setting, so usually these won't need to change.
7676
type Configuration struct {
7777
// ExtraConfigurationRepo injects the composer project and other supported configuration from the given git repo to the site,
7878
// by building an image specific to this site from the generic CERN one.
@@ -98,8 +98,8 @@ type Configuration struct {
9898
// +optional
9999
CloneFrom `json:"cloneFrom,omitempty"`
100100

101-
// DiskSize is the max size of the site's files directory. The default value is "1500Mi".
102-
// +kubebuilder:default="1500Mi"
101+
// DiskSize is the max size of the site's files directory. The default value is "2000Mi".
102+
// +kubebuilder:default="2000Mi"
103103
// +optional
104104
DiskSize string `json:"diskSize"`
105105

docs/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ split into `DatabaseClasses` that define QoS.
2929
Drupal distributions are defined for each website by injecting extra composer dependencies (Drupal modules)
3030
on top of a standard [CERN Drupal distribution](https://gitlab.cern.ch/drupal/paas/cern-drupal-distribution),
3131
using the [composer merge plugin](https://github.com/wikimedia/composer-merge-plugin) (replacing existing modules is disabled).
32-
The extra configuration is picked from a gitlab repo provided by the user: `DrupalSite.extraConfigsRepo`.
32+
The extra configuration is picked from a gitlab repo provided by the user: `DrupalSite.configuration.extraConfigsRepo`.
3333
A source-to-image build then creates the final "sitebuilder" image.
3434

3535
DrupalSites have an associated environment, a concept similar to git branches.

0 commit comments

Comments
 (0)