Skip to content

Commit e40757a

Browse files
committed
nit wrangling
1 parent 0a0d029 commit e40757a

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

Makefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,32 +46,32 @@ framework: CATALOG_OWNERS
4646

4747
# basic target provides an example FBC generation from a `basic` veneer type.
4848
# this example takes a single file as input and generates a well-formed FBC operator contribution as an output
49-
# the 'sanity' target should be used next to validate the output
49+
# the 'validate' target should be used next to validate the output
5050
.PHONY: basic
5151
basic: bin/opm basic-veneer.yaml clean
5252
mkdir -p $(OPERATOR_CATALOG_DIR) && bin/opm alpha render-veneer basic -o yaml basic-veneer.yaml > $(OPERATOR_CATALOG_CONTRIBUTION)
5353

5454

5555
# semver target provides an example FBC generation from a `semver` veneer type.
5656
# this example takes a single file as input and generates a well-formed FBC operator contribution as an output
57-
# the 'sanity' target should be used next to validate the output
57+
# the 'validate' target should be used next to validate the output
5858
.PHONY: semver
5959
semver: bin/opm semver-veneer.yaml clean
6060
mkdir -p $(OPERATOR_CATALOG_DIR) && bin/opm alpha render-veneer semver -o yaml semver-veneer.yaml > $(OPERATOR_CATALOG_CONTRIBUTION)
6161

6262

63-
# sanity target illustrates FBC validation
63+
# validate target illustrates FBC validation
6464
# all FBC must pass opm validation in order to be able to be used in a catalog
65-
.PHONY: sanity
66-
sanity: bin/opm $(OPERATOR_CATALOG_CONTRIBUTION) preverify
65+
.PHONY: validate
66+
validate: bin/opm $(OPERATOR_CATALOG_CONTRIBUTION) preverify
6767
bin/opm validate catalog && echo "catalog validation passed" || echo "catalog validation failed"
6868

6969

7070
# preverify target ensures that the operator name is consistent between the destination directory and the generated catalog
7171
# since the veneer will be modified outside the build process but needs to be consistent with the directory name
7272
.PHONY: preverify
7373
preverify: $(YQ) $(OPERATOR_CATALOG_CONTRIBUTION)
74-
./sanity.sh -n $(OPERATOR_NAME) -f $(OPERATOR_CATALOG_CONTRIBUTION)
74+
./validate.sh -n $(OPERATOR_NAME) -f $(OPERATOR_CATALOG_CONTRIBUTION)
7575

7676

7777
.PHONY: clean

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ Welcome! This repository serves to give a good starting point for those interest
55
## Quickstart
66
1. fork this repository
77
2. adjust destination fields in .github/workflows/ci.yaml as necessary, commit and push changes
8-
3. adjust Makefile $OPERATOR_NAME for your operator's name
8+
3. adjust Makefile `$OPERATOR_NAME` for your operator's name
99
2. decide on an approach: basic veneer, semver veneer, custom veneers, raw FBC, etc. and adjust the 'catalog' target in Makefile to generate your desired FBC
10-
4. run local tests (`make catalog`, `make sanity`, etc.) until happy with the generated FBC.
10+
4. run local tests (`make catalog`, `make validate`, etc.) until happy with the generated FBC
1111
6. add, commit, and push the changes
1212
7. verify that CI passes and opens a PR in the catalog repository
1313

@@ -33,7 +33,7 @@ catalog
3333

3434

3535
### Lifecycle
36-
This repository models a single operator author contributing their FBC to a catalog. This repository comes configured ready with github actions to deliver the FBC to an example [catalog github repository](https://github.com/grokspawn/cool-catalog/). Github actions are preconfigured to generate the FBC from this repository and open a pull request on the catalog repository to merge them. (See that repository for more information about the lifecycle steps after creating the pull request.)
36+
This repository models a single operator author contributing their FBC to a catalog. This repository has pre-configured GitHub actions to deliver the FBC to an example [catalog GitHub repository](https://github.com/grokspawn/cool-catalog/). The actions will generate the FBC from this repository and open a pull request on the catalog repository to merge them. (See that repository for more information about the lifecycle steps after creating the pull request.)
3737

3838

3939
```mermaid
@@ -70,21 +70,22 @@ deactivate CatalogRepo
7070
```
7171

7272
1. Fork and Clone Remote Repository
73-
IMPORTANT! Skip this step, and any changes will be ignored.
73+
IMPORTANT! Any operator-specific changes contributions to the parent repository will be discarded.
7474

7575
2. Update CI Destination
76-
Customize ci.yaml in .github/workflows/ci.yaml to your needs, setting the destination_repo to the URI of your catalog repository.
76+
Customize `.github/workflows/ci.yaml` to your needs, including setting the `destination_repo` to the URI of your catalog repository.
7777

7878
3. Push Changes to Remote
79-
Push the CI changes to the remote branch so they will be ready/able to trigger when you later push catalog contributions
79+
Push the CI changes to the remote branch so they will trigger later when you push catalog contributions.
8080

8181
4. Update 'catalog' target
8282
Locally, update the catalog target in the Makefile to generate your FBC. Example targets are provided in the Makefile (with supporting artifacts) to support to the following scenarios:
8383
1. basic veneer generates FBC
8484
2. semver veneer generates FBC
8585
3. compound veneer generates and post-processes FBC
86+
8687
5. Push Changes to Remote
87-
Once happy with the state of the `catalog` make target and the resulting FBC, push the changes to the remote repository. This will trigger the remote actions to generate a pull request against the destination catalog repository as specified in #2.
88+
Once the `catalog` make target and the resulting FBC are ready, push the changes to the remote repository. This will trigger the remote actions to generate a pull request against the destination catalog repository as specified in #2.
8889

8990

9091

0 commit comments

Comments
 (0)