Skip to content

Commit 1f90199

Browse files
authored
Merge pull request #50054 from dhellmann/microshift-poc
USHIFT-267: stubs for MicroShift product documentation
2 parents 658292b + 4589961 commit 1f90199

27 files changed

+312
-3
lines changed

.travis.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,17 @@ jobs:
3838
- pip3 install aura.tar.gz
3939
script:
4040
- python3 build.py --distro openshift-rosa --product "Red Hat OpenShift Service on AWS" --version 4 --no-upstream-fetch && python3 makeBuild.py
41+
- # stage name not required, will continue to use `build`
42+
if: branch IN (main, enterprise-4.12)
43+
name: "Build microshift distro"
44+
before_install:
45+
- gem install asciidoctor
46+
- gem install asciidoctor-diagram
47+
install:
48+
- pip3 install pyyaml
49+
- pip3 install aura.tar.gz
50+
script:
51+
- python3 build.py --distro microshift --product "MicroShift" --version 4 --no-upstream-fetch && python3 makeBuild.py
4152
- stage: check-with-vale
4253
if: type IN (pull_request)
4354
name: "Run Vale against PR asciidoc files"
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// common attributes
2+
:toc:
3+
:toc-title:
4+
:experimental:
5+
:imagesdir: images
6+
:OCP: OpenShift Container Platform
7+
:op-system-first: Red Hat Enterprise Linux for Edge (RHEL for Edge)
8+
:op-system: RHEL for Edge

_topic_maps/_topic_map_ms.yml

Lines changed: 149 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,149 @@
1+
# This configuration file dictates the organization of the topic groups and
2+
# topics on the main page of the doc site for this branch. Each record
3+
# consists of the following:
4+
#
5+
# --- <= Record delimiter
6+
# Name: Origin of the Species <= Display name of topic group
7+
# Dir: origin_of_the_species <= Directory name of topic group
8+
# Topics:
9+
# - Name: The Majestic Marmoset <= Topic name
10+
# File: the_majestic_marmoset <= Topic file under group dir +/-
11+
# - Name: The Curious Crocodile <= Topic 2 name
12+
# File: the_curious_crocodile <= Topic 2 file
13+
# - Name: The Numerous Nematodes <= Sub-topic group name
14+
# Dir: the_numerous_nematodes <= Sub-topic group dir
15+
# Topics:
16+
# - Name: The Wily Worm <= Sub-topic name
17+
# File: the_wily_worm <= Sub-topic file under <group dir>/<subtopic dir>
18+
# - Name: The Acrobatic Ascarid <= Sub-topic 2 name
19+
# File: the_acrobatic_ascarid <= Sub-topic 2 file under <group dir>/<subtopic dir>
20+
#
21+
# The ordering of the records in this document determines the ordering of the
22+
# topic groups and topics on the main page.
23+
24+
---
25+
Name: About
26+
Dir: welcome
27+
Distros: microshift
28+
Topics:
29+
- Name: Welcome
30+
File: index
31+
- Name: Legal notice
32+
File: legal-notice
33+
---
34+
Name: Introduction to MicroShift
35+
Dir: microshift_architecture
36+
Distros: microshift
37+
Topics:
38+
- Name: Understanding MicroShift
39+
File: microshift-understanding
40+
- Name: MicroShift APIs
41+
File: microshift-apis
42+
---
43+
# Name: Release notes
44+
# Dir: release_notes
45+
# Distros: microshift
46+
# Topics:
47+
# - Name: MicroShift 4.12 release notes
48+
# File: microshift-4-12-release-notes
49+
# ---
50+
Name: Installing
51+
Dir: microshift_install
52+
Distros: microshift
53+
Topics:
54+
- Name: Installing MicroShift from RPM
55+
File: microshift-install-rpm
56+
- Name: Installing MicroShift in a RHEL for Edge Image
57+
File: microshift-install-rhel-for-edge
58+
---
59+
Name: API reference
60+
Dir: rest_api
61+
Distros: microshift
62+
Topics:
63+
- Name: Network APIs
64+
Dir: network_apis
65+
Topics:
66+
# FIXME: need to incorporate the supported k8s APIs
67+
- Name: 'Route [route.openshift.io/v1]'
68+
File: route-route-openshift-io-v1
69+
- Name: Security APIs
70+
Dir: security_apis
71+
Topics:
72+
- Name: 'SecurityContextConstraints [security.openshift.io/v1]'
73+
File: securitycontextconstraints-security-openshift-io-v1
74+
---
75+
Name: CLI tools
76+
Dir: cli_reference
77+
Distros: microshift
78+
Topics:
79+
- Name: CLI tools overview
80+
File: index
81+
- Name: OpenShift CLI (oc)
82+
Dir: openshift_cli
83+
Topics:
84+
- Name: Getting started with the OpenShift CLI
85+
File: getting-started-cli
86+
- Name: Configuring the OpenShift CLI
87+
File: configuring-cli
88+
- Name: Managing CLI profiles
89+
File: managing-cli-profiles
90+
- Name: Extending the OpenShift CLI with plug-ins
91+
File: extending-cli-plugins
92+
# FIXME: auto-generated content in the next file includes commands
93+
# not supported on MicroShift
94+
- Name: OpenShift CLI developer command reference
95+
File: developer-cli-commands
96+
# FIXME: Review the commands we expect to support in this file
97+
# - Name: OpenShift CLI administrator command reference
98+
# File: administrator-cli-commands
99+
# Distros: openshift-enterprise,openshift-origin
100+
- Name: Usage of oc and kubectl commands
101+
File: usage-oc-kubectl
102+
# ---
103+
# Name: Storage
104+
# Dir: storage
105+
# Distros: microshift
106+
# Topics:
107+
# - Name: Persistent storage
108+
# Dir: persistent_storage
109+
# Topics:
110+
# - Name: Persistent storage using ODF-LVM
111+
# File: microshift-persistent-storage-odf-lvm
112+
# ---
113+
# Name: Networking
114+
# Dir: networking
115+
# Distros: microshift
116+
# Topics:
117+
# - Name: Understanding the Ingress Operator
118+
# File: ingress-operator
119+
# - Name: Configuring a cluster-wide proxy during installation
120+
# File: configuring-cluster-wide-proxy
121+
# - Name: CIDR range definitions
122+
# File: cidr-range-definitions
123+
# - Name: Network policy
124+
# Dir: network_policy
125+
# Topics:
126+
# - Name: About network policy
127+
# File: about-network-policy
128+
# - Name: Creating a network policy
129+
# File: creating-network-policy
130+
# - Name: Viewing a network policy
131+
# File: viewing-network-policy
132+
# - Name: Deleting a network policy
133+
# File: deleting-network-policy
134+
# - Name: Configuring multitenant isolation with network policy
135+
# File: multitenant-network-policy
136+
# ---
137+
# Name: Updating clusters
138+
# Dir: updating
139+
# Distros: microshift
140+
# Topics:
141+
# - Name: Updating MicroShift Clusters
142+
# File: TBD
143+
---
144+
Name: Troubleshooting
145+
Dir: microshift_support
146+
Distros: microshift
147+
Topics:
148+
- Name: Checking the MicroShift Version
149+
File: microshift-version

cli_reference/index.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@ A user performs a range of operations while working on {product-title} such as t
1010

1111
* Managing clusters
1212
* Building, deploying, and managing applications
13+
ifndef::microshift[]
1314
* Managing deployment processes
1415
* Developing Operators
1516
* Creating and maintaining Operator catalogs
17+
endif::[]
1618
1719
{product-title} offers a set of command-line interface (CLI) tools that simplify these tasks by enabling users to perform various administration and development operations from the terminal.
1820
These tools expose simple commands to manage the applications, as well as interact with each component of the system.
@@ -24,10 +26,12 @@ The following set of CLI tools are available in {product-title}:
2426

2527
* xref:../cli_reference/openshift_cli/getting-started-cli.adoc#cli-getting-started[OpenShift CLI (oc)]: This is the most commonly used CLI tool by {product-title} users. It helps both cluster administrators and developers to perform end-to-end operations across {product-title} using the terminal. Unlike the web console, it allows the user to work directly with the project source code using command scripts.
2628

29+
ifndef::microshift[]
2730
* xref:../cli_reference/kn-cli-tools.adoc#kn-cli-tools[Knative CLI (kn)]: The Knative (`kn`) CLI tool provides simple and intuitive terminal commands that can be used to interact with OpenShift Serverless components, such as Knative Serving and Eventing.
2831

2932
* xref:../cli_reference/tkn_cli/installing-tkn.adoc#installing-tkn[Pipelines CLI (tkn)]: OpenShift Pipelines is a continuous integration and continuous delivery (CI/CD) solution in {product-title}, which internally uses Tekton. The `tkn` CLI tool provides simple and intuitive commands to interact with OpenShift Pipelines using the terminal.
3033

3134
* xref:../cli_reference/opm/cli-opm-install.adoc#cli-opm-install[opm CLI]: The `opm` CLI tool helps the Operator developers and cluster administrators to create and maintain the catalogs of Operators from the terminal.
3235

3336
* xref:../cli_reference/osdk/cli-osdk-install.adoc#cli-osdk-install[Operator SDK]: The Operator SDK, a component of the Operator Framework, provides a CLI tool that Operator developers can use to build, test, and deploy an Operator from the terminal. It simplifies the process of building Kubernetes-native applications, which can require deep, application-specific operational knowledge.
37+
endif::microshift[]

cli_reference/openshift_cli/getting-started-cli.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ You can install the OpenShift CLI (`oc`) either by downloading the binary or by
1717
// Installing the CLI by downloading the binary
1818
include::modules/cli-installing-cli.adoc[leveloffset=+2]
1919

20+
ifndef::microshift[]
2021
// Installing the CLI by using the web console
2122
include::modules/cli-installing-cli-web-console.adoc[leveloffset=+2]
2223

@@ -28,6 +29,7 @@ include::modules/cli-installing-cli-web-console-windows.adoc[leveloffset=+3]
2829

2930
// Installing the CLI on macOS by using the web console
3031
include::modules/cli-installing-cli-web-console-macos.adoc[leveloffset=+3]
32+
endif::microshift[]
3133

3234
ifndef::openshift-origin[]
3335
// Installing the CLI by using an RPM

cli_reference/openshift_cli/managing-cli-profiles.adoc

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,14 @@ include::_attributes/common-attributes.adoc[]
66

77
toc::[]
88

9-
A CLI configuration file allows you to configure different profiles, or contexts, for use with the xref:../../cli_reference/index.adoc#cli-tools-overview[CLI tools overview]. A context consists of xref:../../authentication/understanding-authentication.adoc#understanding-authentication[user authentication] and {product-title} server information associated with a _nickname_.
9+
A CLI configuration file allows you to configure different profiles, or contexts, for use with the xref:../../cli_reference/index.adoc#cli-tools-overview[CLI tools overview]. A context consists of
10+
ifndef::microshift[]
11+
xref:../../authentication/understanding-authentication.adoc#understanding-authentication[user authentication]
12+
endif::[]
13+
ifdef::microshift[]
14+
user authentication
15+
endif::[]
16+
and {product-title} server information associated with a _nickname_.
1017

1118
include::modules/about-cli-profiles-switch.adoc[leveloffset=+1]
1219

cli_reference/openshift_cli/usage-oc-kubectl.adoc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ Resources such as `DeploymentConfig`, `BuildConfig`, `Route`, `ImageStream`, and
1616
+
1717
* **Authentication**
1818
+
19-
The `oc` binary offers a built-in `login` command that allows authentication and enables you to work with {product-title} projects, which map Kubernetes namespaces to authenticated users. See xref:../../authentication/understanding-authentication.adoc#understanding-authentication[Understanding authentication] for more information.
19+
The `oc` binary offers a built-in `login` command that allows authentication and enables you to work with {product-title} projects, which map Kubernetes namespaces to authenticated users.
20+
ifndef::microshift[]
21+
See xref:../../authentication/understanding-authentication.adoc#understanding-authentication[Understanding authentication] for more information.
22+
endif::[]
2023
+
2124
* **Additional commands**
2225
+

microshift_architecture/attributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../_attributes/

microshift_architecture/images

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../images/
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
:_content-type: ASSEMBLY
2+
[id="microshift-apis"]
3+
= MicroShift APIs
4+
include::_attributes/attributes-microshift.adoc[]
5+
:context: microshift-apis
6+
toc::[]
7+
8+
In addition to the standard Kubernetes APIs, {product-title} includes a subset of the APIs supported by {OCP}.
9+
10+
[cols="1,1",options="header"]
11+
|===
12+
^| API ^| API group
13+
| xref:../rest_api/network_apis/route-route-openshift-io-v1.adoc#route-route-openshift-io-v1[Route]
14+
| route.openshift.io/v1
15+
| xref:../rest_api/security_apis/securitycontextconstraints-security-openshift-io-v1.adoc#securitycontextconstraints-security-openshift-io-v1[SecurityContextConstraints]
16+
| security.openshift.io/v1
17+
|===

0 commit comments

Comments
 (0)