Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing the master-slave jargon #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Discarding the master-slave words
bopopescu committed Jul 24, 2020
commit 0685567aa505e49f0fa7a791e00b18070b8754b6
Original file line number Diff line number Diff line change
@@ -6072,7 +6072,7 @@
"--enable-ip-alias": "bool",
"--enable-kubernetes-alpha": "bool",
"--enable-legacy-authorization": "bool",
"--enable-master-authorized-networks": "bool",
"--enable-main-authorized-networks": "bool",
"--enable-network-policy": "bool",
"--enable-pod-security-policy": "bool",
"--enable-private-endpoint": "bool",
@@ -6087,8 +6087,8 @@
"--local-ssd-volumes": "value",
"--machine-type": "value",
"--maintenance-window": "value",
"--master-authorized-networks": "value",
"--master-ipv4-cidr": "value",
"--main-authorized-networks": "value",
"--main-ipv4-cidr": "value",
"--max-accelerator": "value",
"--max-cpu": "value",
"--max-memory": "value",
@@ -6190,14 +6190,14 @@
"--enable-basic-auth": "bool",
"--enable-binauthz": "bool",
"--enable-legacy-authorization": "bool",
"--enable-master-authorized-networks": "bool",
"--enable-main-authorized-networks": "bool",
"--enable-network-policy": "bool",
"--enable-pod-security-policy": "bool",
"--generate-password": "bool",
"--istio-config": "value",
"--logging-service": "value",
"--maintenance-window": "value",
"--master-authorized-networks": "value",
"--main-authorized-networks": "value",
"--max-accelerator": "value",
"--max-cpu": "value",
"--max-memory": "value",
@@ -6230,7 +6230,7 @@
"--cluster-version": "value",
"--concurrent-node-count": "value",
"--image-type": "value",
"--master": "bool",
"--main": "bool",
"--node-pool": "value",
"--region": "value",
"--security-profile": "value",
@@ -11670,18 +11670,18 @@
"WED"
],
"--maintenance-window-hour": "value",
"--master-ca-certificate-path": "value",
"--master-dump-file-path": "value",
"--master-instance-name": "value",
"--master-password": "value",
"--master-username": "value",
"--main-ca-certificate-path": "value",
"--main-dump-file-path": "value",
"--main-instance-name": "value",
"--main-password": "value",
"--main-username": "value",
"--memory": "value",
"--network": "value",
"--pricing-plan": [
"PACKAGE",
"PER_USE"
],
"--prompt-for-master-password": "bool",
"--prompt-for-main-password": "bool",
"--region": "value",
"--replica-type": [
"FAILOVER",
@@ -18505,7 +18505,7 @@
"--enable-ip-alias": "bool",
"--enable-kubernetes-alpha": "bool",
"--enable-legacy-authorization": "bool",
"--enable-master-authorized-networks": "bool",
"--enable-main-authorized-networks": "bool",
"--enable-network-policy": "bool",
"--enable-pod-security-policy": "bool",
"--enable-private-endpoint": "bool",
@@ -18519,8 +18519,8 @@
"--local-ssd-count": "value",
"--machine-type": "value",
"--maintenance-window": "value",
"--master-authorized-networks": "value",
"--master-ipv4-cidr": "value",
"--main-authorized-networks": "value",
"--main-ipv4-cidr": "value",
"--max-accelerator": "value",
"--max-cpu": "value",
"--max-memory": "value",
@@ -18617,14 +18617,14 @@
"--enable-basic-auth": "bool",
"--enable-binauthz": "bool",
"--enable-legacy-authorization": "bool",
"--enable-master-authorized-networks": "bool",
"--enable-main-authorized-networks": "bool",
"--enable-network-policy": "bool",
"--enable-pod-security-policy": "bool",
"--generate-password": "bool",
"--istio-config": "value",
"--logging-service": "value",
"--maintenance-window": "value",
"--master-authorized-networks": "value",
"--main-authorized-networks": "value",
"--max-accelerator": "value",
"--max-cpu": "value",
"--max-memory": "value",
@@ -18654,7 +18654,7 @@
"--async": "bool",
"--cluster-version": "value",
"--image-type": "value",
"--master": "bool",
"--main": "bool",
"--node-pool": "value",
"--region": "value",
"--zone": "value"
@@ -19020,18 +19020,18 @@
"--initialization-action-timeout": "value",
"--initialization-actions": "value",
"--labels": "value",
"--master-accelerator": "value",
"--master-boot-disk-size": "value",
"--master-boot-disk-type": "value",
"--master-machine-type": "value",
"--master-min-cpu-platform": "value",
"--main-accelerator": "value",
"--main-boot-disk-size": "value",
"--main-boot-disk-type": "value",
"--main-machine-type": "value",
"--main-min-cpu-platform": "value",
"--max-age": "value",
"--max-idle": "value",
"--metadata": "value",
"--network": "value",
"--no-address": "bool",
"--num-master-local-ssds": "value",
"--num-masters": "value",
"--num-main-local-ssds": "value",
"--num-mains": "value",
"--num-preemptible-workers": "value",
"--num-worker-local-ssds": "value",
"--num-workers": "value",
@@ -19600,18 +19600,18 @@
"--initialization-action-timeout": "value",
"--initialization-actions": "value",
"--labels": "value",
"--master-accelerator": "value",
"--master-boot-disk-size": "value",
"--master-boot-disk-type": "value",
"--master-machine-type": "value",
"--master-min-cpu-platform": "value",
"--main-accelerator": "value",
"--main-boot-disk-size": "value",
"--main-boot-disk-type": "value",
"--main-machine-type": "value",
"--main-min-cpu-platform": "value",
"--max-age": "value",
"--max-idle": "value",
"--metadata": "value",
"--network": "value",
"--no-address": "bool",
"--num-master-local-ssds": "value",
"--num-masters": "value",
"--num-main-local-ssds": "value",
"--num-mains": "value",
"--num-preemptible-workers": "value",
"--num-worker-local-ssds": "value",
"--num-workers": "value",
@@ -24186,18 +24186,18 @@
"WED"
],
"--maintenance-window-hour": "value",
"--master-ca-certificate-path": "value",
"--master-dump-file-path": "value",
"--master-instance-name": "value",
"--master-password": "value",
"--master-username": "value",
"--main-ca-certificate-path": "value",
"--main-dump-file-path": "value",
"--main-instance-name": "value",
"--main-password": "value",
"--main-username": "value",
"--memory": "value",
"--network": "value",
"--pricing-plan": [
"PACKAGE",
"PER_USE"
],
"--prompt-for-master-password": "bool",
"--prompt-for-main-password": "bool",
"--region": "value",
"--replica-type": [
"FAILOVER",
@@ -28858,7 +28858,7 @@
"--enable-ip-alias": "bool",
"--enable-kubernetes-alpha": "bool",
"--enable-legacy-authorization": "bool",
"--enable-master-authorized-networks": "bool",
"--enable-main-authorized-networks": "bool",
"--enable-network-policy": "bool",
"--enable-private-endpoint": "bool",
"--enable-private-nodes": "bool",
@@ -28868,8 +28868,8 @@
"--local-ssd-count": "value",
"--machine-type": "value",
"--maintenance-window": "value",
"--master-authorized-networks": "value",
"--master-ipv4-cidr": "value",
"--main-authorized-networks": "value",
"--main-ipv4-cidr": "value",
"--max-nodes": "value",
"--max-nodes-per-pool": "value",
"--metadata": "value",
@@ -28949,12 +28949,12 @@
"--enable-autoscaling": "bool",
"--enable-basic-auth": "bool",
"--enable-legacy-authorization": "bool",
"--enable-master-authorized-networks": "bool",
"--enable-main-authorized-networks": "bool",
"--enable-network-policy": "bool",
"--generate-password": "bool",
"--logging-service": "value",
"--maintenance-window": "value",
"--master-authorized-networks": "value",
"--main-authorized-networks": "value",
"--max-nodes": "value",
"--min-nodes": "value",
"--monitoring-service": "value",
@@ -28978,7 +28978,7 @@
"--async": "bool",
"--cluster-version": "value",
"--image-type": "value",
"--master": "bool",
"--main": "bool",
"--node-pool": "value",
"--region": "value",
"--zone": "value"
@@ -29252,14 +29252,14 @@
"--initialization-action-timeout": "value",
"--initialization-actions": "value",
"--labels": "value",
"--master-boot-disk-size": "value",
"--master-boot-disk-type": "value",
"--master-machine-type": "value",
"--main-boot-disk-size": "value",
"--main-boot-disk-type": "value",
"--main-machine-type": "value",
"--metadata": "value",
"--network": "value",
"--no-address": "bool",
"--num-master-local-ssds": "value",
"--num-masters": "value",
"--num-main-local-ssds": "value",
"--num-mains": "value",
"--num-preemptible-workers": "value",
"--num-worker-local-ssds": "value",
"--num-workers": "value",
@@ -29789,14 +29789,14 @@
"--initialization-action-timeout": "value",
"--initialization-actions": "value",
"--labels": "value",
"--master-boot-disk-size": "value",
"--master-boot-disk-type": "value",
"--master-machine-type": "value",
"--main-boot-disk-size": "value",
"--main-boot-disk-type": "value",
"--main-machine-type": "value",
"--metadata": "value",
"--network": "value",
"--no-address": "bool",
"--num-master-local-ssds": "value",
"--num-masters": "value",
"--num-main-local-ssds": "value",
"--num-mains": "value",
"--num-preemptible-workers": "value",
"--num-worker-local-ssds": "value",
"--num-workers": "value",
@@ -33378,7 +33378,7 @@
"WED"
],
"--maintenance-window-hour": "value",
"--master-instance-name": "value",
"--main-instance-name": "value",
"--memory": "value",
"--pricing-plan": [
"PACKAGE",
Original file line number Diff line number Diff line change
@@ -64,7 +64,7 @@ class InvalidRepositoryError(exceptions.Error):
"""Attempted to fetch or clone from a repository missing something basic.

This gets raised if we try to fetch or clone from a repo that is either
missing a HEAD or missing both a "latest" tag and a master branch.
missing a HEAD or missing both a "latest" tag and a main branch.
"""


@@ -149,7 +149,7 @@ def _PullTags(local_repo, client_wrapper, target_dir):

Returns:
(str, dulwich.objects.Commit) The tag that was actually pulled (we try to
get "latest" but fall back to "master") and the commit object
get "latest" but fall back to "main") and the commit object
associated with it.

Raises:
@@ -166,7 +166,7 @@ def _PullTags(local_repo, client_wrapper, target_dir):
# Try to get the "latest" tag (latest released version)
revision = None
tag = None
for tag in (b'refs/tags/latest', b'refs/heads/master'):
for tag in (b'refs/tags/latest', b'refs/heads/main'):
try:
log.debug('looking up ref %s', tag)
revision = local_repo[tag]
@@ -175,7 +175,7 @@ def _PullTags(local_repo, client_wrapper, target_dir):
log.warning('Unable to checkout branch %s', tag)

else:
raise AssertionError('No "refs/heads/master" tag found in repository.')
raise AssertionError('No "refs/heads/main" tag found in repository.')

return tag, revision

@@ -260,7 +260,7 @@ def InstallRuntimeDef(url, target_dir):
directory. At this time, the runtime definition url must be the URL of a
git repository and we identify the tree to checkout based on 1) the presence
of a "latest" tag ("refs/tags/latest") 2) if there is no "latest" tag, the
head of the "master" branch ("refs/heads/master").
head of the "main" branch ("refs/heads/main").

Args:
url: (str) A URL identifying a git repository. The HTTP, TCP and local
Loading