Skip to content

Commit 3847ced

Browse files
authored
Merge branch 'main' into rholling-SCS-docs
2 parents 7d48452 + 64e2a1b commit 3847ced

File tree

9 files changed

+300
-171
lines changed

9 files changed

+300
-171
lines changed

community/central-services/plusserver-gx-scs.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Spec:
3030
- k8s: v1.25.3 - KinD
3131
- workload cluster:
3232
- 6 instances:
33-
- 3 control-planes: SCS-2V:4:20
33+
- 3 control-planes: SCS-2V-4-20s
3434
- 3 workers: SCS-8V:16:100
3535
- image: ubuntu-capi-image-v1.28.7
3636
- k8s: v1.28.7
@@ -55,14 +55,14 @@ Utilization:
5555

5656
Spec:
5757

58-
- version: v6.0.0 - R5
58+
- version: v7.0.0 - R6
5959
- management cluster:
6060
- 1 instance: SCS-2V:4:20
61-
- image: Ubuntu 22.04 (20231211)
61+
- image: Ubuntu 22.04 (20240125)
6262
- k8s: v1.27.3 - KinD
6363
- workload cluster:
6464
- 6 instances:
65-
- 3 control-planes: SCS-2V:4:20
65+
- 3 control-planes: SCS-2V-4-20s
6666
- 3 workers: SCS-8V:16:100
67-
- image: ubuntu-capi-image-v1.27.5
68-
- k8s: v1.27.5
67+
- image: ubuntu-capi-image-v1.28.7
68+
- k8s: v1.28.7

docs.package.json

Lines changed: 48 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
"target": "docs/03-container/components",
4242
"label": "container-registry"
4343
},
44-
4544
{
4645
"repo": "SovereignCloudStack/status-page-openapi",
4746
"source": "docs",
@@ -60,6 +59,12 @@
6059
"target": "docs/04-operating-scs/components",
6160
"label": "status-page-deployment"
6261
},
62+
{
63+
"repo": "SovereignCloudStack/status-page-web",
64+
"source": "docs",
65+
"target": "docs/04-operating-scs/components",
66+
"label": "status-page-web"
67+
},
6368
{
6469
"repo": "SovereignCloudStack/k8s-observability",
6570
"source": "docs",
@@ -72,6 +77,17 @@
7277
"target": "docs/04-operating-scs/01-guides",
7378
"label": "openstack-health-monitor"
7479
},
80+
{
81+
"repo": "SovereignCloudStack/scs-health-monitor",
82+
"source": [
83+
"docs/overview.md",
84+
"docs/Workflow.md",
85+
"docs/Testflow.md",
86+
"docs/ObservabilityStack/SetupObservabilityStack.md"
87+
],
88+
"target": "docs/04-operating-scs/components",
89+
"label": "scs-health-monitor"
90+
},
7591
{
7692
"repo": "SovereignCloudStack/central-api",
7793
"source": "docs/*.md",
@@ -82,6 +98,36 @@
8298
"repo": "SovereignCloudStack/security-infra-scan-pipeline",
8399
"source": "docs/*.md",
84100
"target": "docs/04-operating-scs/components",
85-
"label": "automated-pentesting"
101+
"label": "automated-pentesting-iaas"
102+
},
103+
{
104+
"repo": "SovereignCloudStack/security-infra-scan-pipeline",
105+
"source": "docs/images/*.png",
106+
"target": "docs/04-operating-scs/components",
107+
"label": "automated-pentesting-iaas/images"
108+
},
109+
{
110+
"repo": "SovereignCloudStack/security-k8s-scan-pipeline",
111+
"source": "docs/*.md",
112+
"target": "docs/04-operating-scs/components",
113+
"label": "automated-pentesting-kaas"
114+
},
115+
{
116+
"repo": "SovereignCloudStack/csctl",
117+
"source": "docs/*.md",
118+
"target": "docs/03-container/components/cluster-stacks/components",
119+
"label": "csctl"
120+
},
121+
{
122+
"repo": "SovereignCloudStack/cluster-stacks",
123+
"source": "docs/*",
124+
"target": "docs/03-container/components/cluster-stacks/components",
125+
"label": "cluster-stacks"
126+
},
127+
{
128+
"repo": "SovereignCloudStack/cluster-stack-operator",
129+
"source": ["docs/*"],
130+
"target": "docs/03-container/components/cluster-stacks/components",
131+
"label": "cluster-stack-operator"
86132
}
87133
]

package-lock.json

Lines changed: 12 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

populateCerts.js

Lines changed: 29 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -22,57 +22,40 @@ const sidebarItems = scopes.map((scope) => {
2222
const matrix = {}
2323
const versionsShown = {}
2424
var numOld = 0
25+
var modules = {}
26+
scope.modules.forEach((module) => {
27+
modules[module.id] = module
28+
module.prettyName = module.id.startsWith('scs-') ? `${module.id}: ${module.name}` : module.name
29+
})
30+
scope.timeline.sort((a, b) => b.date.localeCompare(a.date))
31+
const current = scope.timeline.filter((entry) => entry.date <= today)
32+
const lookup = current.length ? current[0].versions : {}
2533
// sort in descending order, so we get the MAX_OLD most recent obsolete versions
2634
scope.versions.sort((a, b) => b.version.localeCompare(a.version));
2735
scope.versions.forEach((version) => {
36+
version.state = lookup[version.version] || 'deprecated'
2837
version.isStable = version.stabilized_at !== undefined && version.stabilized_at <= today
29-
version.isObsolete = version.deprecated_at !== undefined && version.deprecated_at < today
30-
version.isEffective = version.isStable && !version.isObsolete
31-
version.isPreview = version.stabilized_at === undefined || today < version.stabilized_at
32-
if (!version.isEffective && !version.isPreview) {
38+
version.isEffective = version.state == 'effective'
39+
if (['warn', 'effective', 'draft'].indexOf(version.state) == -1) {
3340
numOld += 1
3441
if (numOld > MAX_OLD) return
3542
}
36-
version.state = (
37-
version.stabilized_at === undefined ? 'Draft' :
38-
version.isEffective ? 'Effective' :
39-
version.isObsolete ? 'Deprecated' :
40-
'Stable'
41-
)
42-
if (version.standards === undefined) return
43+
if (version.include === undefined) return
4344
versionsShown[version.version] = version
44-
version.standards.forEach((standard) => {
45-
const components = standard.url.split('/')
46-
const filename = components[components.length - 1]
47-
// first, sensible (but not pretty) defaults
48-
var key = standard.url
49-
var name = standard.name
50-
var ver = '✓'
51-
var url = standard.url
52-
if (filename.startsWith('scs-') && filename.endsWith('.md')) {
53-
// special case for internal standards
54-
const components2 = filename.split('-')
55-
key = `scs-${components2[1]}`
56-
name = `${key}: ${name}`
57-
ver = components2[2]
58-
url = `/standards/${filename.substring(0, filename.length - 3)}`
59-
} else {
60-
// special case mainly for OpenStack Powered Compute, but anything ending in 'vXYZ'
61-
const components2 = name.split(' ')
62-
const v = components2.splice(components2.length - 1)
63-
if (v[0].startsWith('v')) {
64-
key = components2.join(' ')
65-
name = key
66-
ver = v[0]
67-
}
45+
version.include.forEach((include) => {
46+
if (include.ref === undefined) {
47+
include = {ref: include, parameters: {}}
6848
}
69-
if (matrix[key] === undefined) {
70-
matrix[key] = {name, columns: {}}
49+
const module = modules[include.ref]
50+
if (matrix[module.id] === undefined) {
51+
matrix[module.id] = {
52+
name: module.prettyName,
53+
columns: {},
54+
url: module.url,
55+
}
7156
}
72-
matrix[key].columns[version.version] = {
73-
version: ver,
74-
url,
75-
parameters: standard.parameters,
57+
matrix[module.id].columns[version.version] = {
58+
parameters: include.parameters,
7659
}
7760
})
7861
})
@@ -90,14 +73,14 @@ Note that the state _Stable_ is shown here if _stabilized at_ is in the future,
9073
lines.push('| :-- | ' + columns.map(() => ':--').join(' | ') + ' |')
9174
lines.push('| State | ' + columns.map((c) => versionsShown[c].state).join(' | ') + ' |')
9275
lines.push('| Stabilized at | ' + columns.map((c) => versionsShown[c].stabilized_at || '').join(' | ') + ' |')
93-
lines.push('| Deprecated at | ' + columns.map((c) => versionsShown[c].deprecated_at || '').join(' | ') + ' |')
76+
// lines.push('| Deprecated at | ' + columns.map((c) => versionsShown[c].deprecated_at || '').join(' | ') + ' |')
9477
// md doesn't allow intermediate header rows
9578
// lines.push('| :-- | ' + columns.map(() => ':--').join(' | ') + ' |')
96-
lines.push('| **Standards** | ' + columns.map((c) => ' '.repeat(c.length)).join(' | ') + ' |')
79+
lines.push('| **Modules** | ' + columns.map((c) => ' '.repeat(c.length)).join(' | ') + ' |')
9780
// md doesn't allow intermediate header rows
9881
// lines.push('| :-- | ' + columns.map(() => ':--').join(' | ') + ' |')
9982
rows.forEach((row) => {
100-
lines.push(`| ${row.name} | ` + columns.map((c) => row.columns[c]).map((col) => {
83+
lines.push(`| [${row.name}](${row.url}) | ` + columns.map((c) => row.columns[c]).map((col) => {
10184
if (col === undefined) {
10285
// this version of the cert does not include this standard
10386
return ''
@@ -106,9 +89,9 @@ Note that the state _Stable_ is shown here if _stabilized at_ is in the future,
10689
entry[1].startsWith('https://') ? `[${entry[0]}](${entry[1]})` : `${entry[0]}=${entry[1]}`
10790
).join(', ')
10891
if (params.length) {
109-
params = `(${params})`
92+
params = ` (${params})`
11093
}
111-
return `[${col.version}](${col.url}) ${params}`
94+
return `X${params}`
11295
}).join(' | ') + ' |')
11396
})
11497
lines.push('') // file should end with a single newline character

0 commit comments

Comments
 (0)