Skip to content

Commit

Permalink
Merge branch 'main' into feat/refactor-operator-introduction
Browse files Browse the repository at this point in the history
  • Loading branch information
maxwolfs committed Jan 25, 2024
2 parents 84d34e3 + 54443dd commit df59a6c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions populateStds.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ filenames.forEach((filename) => {
id: filename.substring(0, filename.length - 3),
adrId: components[1],
version: components[2],
status: {},
state: {},
}
// now calculate the properties for the columns (plus stable0 as a helper)
obj.status.draft = obj.stabilized_at === undefined
obj.status.stable0 = !obj.status.draft && obj.stabilized_at <= today
obj.status.deprecated = obj.obsoleted_at !== undefined && obj.obsoleted_at < today
obj.status.stable = !obj.status.draft && !obj.status.stable0 && !obj.status.deprecated
obj.status.effective = obj.status.stable0 && !obj.status.deprecated
obj.state.draft = obj.stabilized_at === undefined
obj.state.stable0 = !obj.state.draft && obj.stabilized_at <= today
obj.state.deprecated = obj.obsoleted_at !== undefined && obj.obsoleted_at < today
obj.state.stable = !obj.state.draft && !obj.state.stable0 && !obj.state.deprecated
obj.state.effective = obj.state.stable0 && !obj.state.deprecated
var track = obj.track
if (track === undefined) return
if (tracks[track] === undefined) tracks[track] = {}
Expand Down Expand Up @@ -105,7 +105,7 @@ ${headerLegend}
Object.entries(trackEntry[1]).forEach((standardEntry) => {
var versions = standardEntry[1].versions
var ref = versions[versions.length - 1]
var effectiveVersions = versions.filter((v) => v.status.effective)
var effectiveVersions = versions.filter((v) => v.state.effective)
if (effectiveVersions.length) {
ref = effectiveVersions[effectiveVersions.length - 1]
}
Expand All @@ -131,7 +131,7 @@ ${headerLegend}
slines.push('| -------- | ----- | ------- | ---------- | --------- |')
var link = `[scs-${adrId}](/standards/${track.toLowerCase()}/scs-${adrId})`
var versionList = ['draft', 'stable', 'effective', 'deprecated'].map(
(column) => mkLinkList(versions.filter((v) => v.status[column])) || '-'
(column) => mkLinkList(versions.filter((v) => v.state[column])) || '-'
).join(' | ')
lines.push(`| ${link} | ${track} | ${ref.title} | ${versionList} |`)
tlines.push(`| ${link} | ${ref.title} | ${versionList} |`)
Expand All @@ -142,7 +142,7 @@ ${headerLegend}
id: obj.id,
}
standardItem.items.push(versionItem)
slines.push(`| [scs-${adrId}-${obj.version}](/standards/${obj.id}) | ${obj.type} | ${obj.status || obj.state} | ${obj.stabilized_at || '-'} | ${obj.obsoleted_at || '-'} |`)
slines.push(`| [scs-${adrId}-${obj.version}](/standards/${obj.id}) | ${obj.type} | ${obj.status} | ${obj.stabilized_at || '-'} | ${obj.obsoleted_at || '-'} |`)
})
slines.push('') // file should end with a single newline character
fs.writeFileSync(`${trackPath}/scs-${adrId}.md`, slines.join('\n'), 'utf8')
Expand Down
2 changes: 1 addition & 1 deletion standards/certification/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ SCS certificates come with various scopes. See [Scopes and Versions](scopes-vers

## Becoming certified

In order for a cloud service offering to obtain a certificate, it has to conform to all standards of the respective scope, which will be tested at regular intervals, and the results of these tests will be made available publicly. For more details on how to become certified, please consult the corresponding [document](https://github.com/SovereignCloudStack/standards/blob/issue/337/Standards/scs-0004-v1-achieving-certification.md).
In order for a cloud service offering to obtain a certificate, it has to conform to all standards of the respective scope, which will be tested at regular intervals, and the results of these tests will be made available publicly. For more details on how to become certified, please consult the corresponding [document](/standards/scs-0004-v1-achieving-certification).

## Compliant cloud environments

Expand Down

0 comments on commit df59a6c

Please sign in to comment.