Skip to content

Commit 9467984

Browse files
committed
split org and project actors
1 parent 1bd293a commit 9467984

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

README.md

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -107,18 +107,12 @@ through [this tutorial](https://cloud.google.com/appengine/docs/standard/python3
107107
* Copy `config.yaml.original` to `config.yaml`.
108108
* Optionally configure by editing the configuration files ([See more documentation below](#configuration).)
109109
* Run `./deploy.sh <PROJECT_ID> `.
110-
* The above is the default. There are also command-line options, to be put at the end of the command line after the project id.
111-
* Org and project
112-
* Use `-o -p` to deploy org elements and also project elements. If you omit both, then the default behavior is to deploy both, as if `-o -p` were given.
113-
* Use `-o` to deploy only org elements like roles and log sinks. You might want to do this if you have different people controlling the org and the project.
114-
* Once org elements are set up, only `-p` is needed, to deploy the Iris app to App Engine
115-
* Cloud Scheduler
116-
* To use *only* Cloud Scheduler cron (i.e., without labeling resources on-creation), also use `-c`.
117-
* To *not at all* use Cloud Scheduler, delete schedule in `cron.yaml`.
110+
* The above is the default. There are also command-line options, to be put at the end of the command line after the project id. Run `deploy.sh -h` for documentation.
118111
* When you redeploy different versions of Iris code on top of old ones:
119112
* If new plugins were added or some removed, the log sink *will* be updated to reflect this.
120-
* If the parameters for subscriptions or topics were changed in a new version of the Iris code, the subscriptions or
121-
topics will *not* be updated. You would have to delete them first.
113+
* If the parameters for subscriptions or topics were changed in a new version of the Iris code, the subscriptions or topics will *not* be updated. You would have to delete them first.
114+
* If you are changing to or from Cloud-Scheduler-only with or without `-c`, be sure to run both org and project deployments.
115+
* See `deploy.sh` for configuring Iris to add labels only with Cloud Scheduler and not on-creation, or without the Scheduler at all, or with both Scheduler and on-creation. The latter is the default.
122116

123117
### Configuration
124118

deploy.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,12 @@ while getopts 'cpo' opt; do
6363
The project to which Iris 3 will be deployed
6464
Options, to be given at end of line, after project ID.
6565
If neither -p nor -o is given, this is treated as the default, -p -o (i.e., do both):
66-
-c: Use only Cloud Scheduler cron to add labels; do not add labels on resource creation.
6766
-p: Deploy Iris (to the project given by the arg)
6867
-o: Set up org-level elements like Log Sink
68+
-c: Use only Cloud Scheduler cron to add labels; do not add labels on resource creation.
69+
If you are changing to be Cloud-Scheduler-only with -c or not Cloud_Scheduler-only
70+
without -c, be sure to run both org and project deployments.
71+
(To *not at all* use Cloud Scheduler, delete the schedule in `cron.yaml`.)
6972
Environment variable:
7073
GAEVERSION (Optional) sets the Google App Engine Version.
7174
EOF

scripts/_deploy-org.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ gcloud organizations add-iam-policy-binding "$ORGID" \
3636

3737
if [[ "$CRON_ONLY" == "true" ]]; then
3838
echo >&2 "CRON_ONLY set to true."
39+
3940
gcloud logging sinks delete -q --organization="$ORGID" "$LOG_SINK" || true
4041
else
4142
# Create PubSub topic for receiving logs about new GCP objects

0 commit comments

Comments
 (0)