Skip to content

Commit f7fd4ef

Browse files
author
David Swan
committed
(IAC-995) - Removal of Inappropriate Terminology
Removal of any offensive or inappropriate terminology from the code base. References towards `node-role.kubernetes.io/master-` and `kubernetes::taint_master` have been left as I am unsure if they can/should be removed.
1 parent fbae230 commit f7fd4ef

File tree

6 files changed

+22
-22
lines changed

6 files changed

+22
-22
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Build Status](https://travis-ci.org/puppetlabs/puppetlabs-kubernetes.svg?branch=master)](https://travis-ci.org/puppetlabs/puppetlabs-kubernetes)
1+
[![Build Status](https://travis-ci.org/puppetlabs/puppetlabs-kubernetes.svg?branch=main)](https://travis-ci.org/puppetlabs/puppetlabs-kubernetes)
22
[![Puppet Forge](https://img.shields.io/puppetforge/v/puppetlabs/kubernetes.svg)](https://forge.puppetlabs.com/puppetlabs/kubernetes)
33
[![Puppet Forge Downloads](http://img.shields.io/puppetforge/dt/puppetlabs/kubernetes.svg)](https://forge.puppetlabs.com/puppetlabs/kubernetes)
44

@@ -26,7 +26,7 @@
2626
src="https://github.com/cncf/artwork/blob/04763c0f5f72b23d6a20bfc9c68c88cee805dbcc/projects/kubernetes/certified-kubernetes/1.13/color/certified-kubernetes-1.13-color.png"
2727
align="right" width="150px" alt="certified kubernetes 1.13">][certified]
2828

29-
[certified]: https://github.com/cncf/k8s-conformance/tree/master/v1.13/puppetlabs-kubernetes
29+
[certified]: https://github.com/cncf/k8s-conformance/tree/main/v1.13/puppetlabs-kubernetes
3030

3131
This module installs and configures [Kubernetes](https://kubernetes.io/) which is an open-source system for automating deployment, scaling, and management of containerized applications. For efficient management and discovery, containers that make up an application are grouped into logical units.
3232

@@ -39,7 +39,7 @@ To bootstrap a Kubernetes cluster in a secure and extensible way, this module us
3939

4040
[Install](https://puppet.com/docs/puppet/5.5/modules_installing.html) this module, [generate the configuration](#generating-the-module-configuration), [add the OS and hostname yaml files to Hiera](#adding-the-`{$OS}.yaml`-and-`{$hostname}.yaml`-files-to-Hiera), and [configure your node](#configuring-your-node).
4141

42-
Included in this module is [Kubetool](https://github.com/puppetlabs/puppetlabs-kubernetes/blob/master/tooling/kube_tool.rb), a configuration tool that auto-generates the Hiera security parameters, the discovery token hash, and other configurations for your Kubernetes cluster. To simplify installation and use, the tool is available as a Docker image.
42+
Included in this module is [Kubetool](https://github.com/puppetlabs/puppetlabs-kubernetes/blob/main/tooling/kube_tool.rb), a configuration tool that auto-generates the Hiera security parameters, the discovery token hash, and other configurations for your Kubernetes cluster. To simplify installation and use, the tool is available as a Docker image.
4343

4444
### Generating the module configuration
4545

@@ -58,7 +58,7 @@ docker run --rm -v $(pwd):/mnt --env-file env puppet/kubetool:{$module_version}
5858
The `docker run` command above includes an `env` file which is included in the root folder of this repo.
5959

6060
```
61-
docker run --rm -v $(pwd):/mnt -e OS=ubuntu -e VERSION=1.10.2 -e CONTAINER_RUNTIME=docker -e CNI_PROVIDER=cilium -e CNI_PROVIDER_VERSION=1.4.3 -e ETCD_INITIAL_CLUSTER=kube-master:172.17.10.101,kube-replica-master-01:172.17.10.210,kube-replica-master-02:172.17.10.220 -e ETCD_IP="%{networking.ip}" -e KUBE_API_ADVERTISE_ADDRESS="%{networking.ip}" -e INSTALL_DASHBOARD=true puppet/kubetool:{$module-version}
61+
docker run --rm -v $(pwd):/mnt -e OS=ubuntu -e VERSION=1.10.2 -e CONTAINER_RUNTIME=docker -e CNI_PROVIDER=cilium -e CNI_PROVIDER_VERSION=1.4.3 -e ETCD_INITIAL_CLUSTER=kube-control-plane:172.17.10.101,kube-replica-control-plane-01:172.17.10.210,kube-replica-control-plane-02:172.17.10.220 -e ETCD_IP="%{networking.ip}" -e KUBE_API_ADVERTISE_ADDRESS="%{networking.ip}" -e INSTALL_DASHBOARD=true puppet/kubetool:{$module-version}
6262
```
6363

6464
The above parameters are:
@@ -475,7 +475,7 @@ Defaults to `undef`.
475475

476476
Informs etcd on how many nodes are in the cluster.
477477

478-
A Hiera example is `kubernetes::etcd_initial_cluster: kube-master:172.17.10.101,kube-replica-master-01:172.17.10.210,kube-replica-master-02:172.17.10.220`.
478+
A Hiera example is `kubernetes::etcd_initial_cluster: kube-control-plane:172.17.10.101,kube-replica-control-plane-01:172.17.10.210,kube-replica-control-plane-02:172.17.10.220`.
479479

480480
Defaults to `undef`.
481481

@@ -616,7 +616,7 @@ Defaults to `{}`.
616616

617617
#### `kubelet_extra_arguments`
618618

619-
A string array to be appended to kubeletExtraArgs in the Kubelet's nodeRegistration configuration. It is applied to both masters and nodes. Use this for critical Kubelet settings such as `pod-infra-container-image` which may be problematic to configure via kubelet_extra_config and DynamicKubeletConfig.
619+
A string array to be appended to kubeletExtraArgs in the Kubelet's nodeRegistration configuration. It is applied to both control-planes and nodes. Use this for critical Kubelet settings such as `pod-infra-container-image` which may be problematic to configure via kubelet_extra_config and DynamicKubeletConfig.
620620

621621
Defaults to `[]`.
622622

@@ -710,7 +710,7 @@ Defaults to `undef`.
710710

711711
#### `schedule_on_controller`
712712

713-
Specifies whether to remove the master role and allow pod scheduling on controllers.
713+
Specifies whether to remove the control plane role and allow pod scheduling on controllers.
714714

715715
Valid values are `true`, `false`.
716716

@@ -754,7 +754,7 @@ Docker is the supported container runtime for this module.
754754

755755
## Development
756756

757-
If you would like to contribute to this module, please follow the rules in the [CONTRIBUTING.md](https://github.com/puppetlabs/puppetlabs-kubernetes/blob/master/CONTRIBUTING.md). For more information, see our [module contribution guide.](https://puppet.com/docs/puppet/latest/contributing.html)
757+
If you would like to contribute to this module, please follow the rules in the [CONTRIBUTING.md](https://github.com/puppetlabs/puppetlabs-kubernetes/blob/main/CONTRIBUTING.md). For more information, see our [module contribution guide.](https://puppet.com/docs/puppet/latest/contributing.html)
758758

759759
To run the acceptance tests you can use Puppet Litmus with the Vagrant provider by using the following commands:
760760
```
@@ -791,4 +791,4 @@ As currently Litmus does not allow memory size and cpu size parameters for the V
791791

792792
## Examples
793793

794-
In the examples folder you will find a [bash script](https://github.com/puppetlabs/puppetlabs-kubernetes/blob/master/examples/task_examples.sh) containg a few sample Puppet Bolt commands for the usage of the tasks. The example script is intended to be used with a Kubernetes API that requires the token authentication header, but the token parameter is optional by default.
794+
In the examples folder you will find a [bash script](https://github.com/puppetlabs/puppetlabs-kubernetes/blob/main/examples/task_examples.sh) containg a few sample Puppet Bolt commands for the usage of the tasks. The example script is intended to be used with a Kubernetes API that requires the token authentication header, but the token parameter is optional by default.

REFERENCE.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,7 @@ the files if they do not exist.
734734

735735
[*etcd_initial_cluster*]
736736
This will tell etcd how many nodes will be in the cluster and is passed as a string.
737-
An example with hiera would be kubernetes::etcd_initial_cluster: etcd-kube-master=http://172.17.10.101:2380,etcd-kube-replica-master-01=http://172.17.10.210:2380,etcd-kube-replica-master-02=http://172.17.10.220:2380
737+
An example with hiera would be kubernetes::etcd_initial_cluster: etcd-kube-control-plane=http://172.17.10.101:2380,etcd-kube-replica-control-plane-01=http://172.17.10.210:2380,etcd-kube-replica-control-plane-02=http://172.17.10.220:2380
738738
Defaults to undef
739739

740740
[*etcd_initial_cluster_state*]
@@ -870,7 +870,7 @@ the files if they do not exist.
870870
Defaults to v1.10.1
871871

872872
[*schedule_on_controller*]
873-
A flag to remove the master role and allow pod scheduling on controllers
873+
A flag to remove the control plane role and allow pod scheduling on controllers
874874
Defaults to true
875875

876876
[*service_cidr*]
@@ -905,7 +905,7 @@ the files if they do not exist.
905905
Defaults to {}
906906

907907
[*kubelet_extra_arguments*]
908-
A string array to be appended to kubeletExtraArgs in the Kubelet's nodeRegistration configuration applied to both masters and nodes.
908+
A string array to be appended to kubeletExtraArgs in the Kubelet's nodeRegistration configuration applied to both control planes and nodes.
909909
Use this for critical Kubelet settings such as `pod-infra-container-image` which may be problematic to configure via kubelet_extra_config
910910
Defaults to []
911911

@@ -28316,7 +28316,7 @@ preferredVersion is the version preferred by the API server, which probably is t
2831628316

2831728317
Data type: `Optional[String[1]]`
2831828318

28319-
a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
28319+
a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the control plane will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
2832028320

2832128321
### `swagger_k8s_get_apiextensions_api_group`
2832228322

manifests/init.pp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@
167167
#
168168
# [*etcd_initial_cluster*]
169169
# This will tell etcd how many nodes will be in the cluster and is passed as a string.
170-
# An example with hiera would be kubernetes::etcd_initial_cluster: etcd-kube-master=http://172.17.10.101:2380,etcd-kube-replica-master-01=http://172.17.10.210:2380,etcd-kube-replica-master-02=http://172.17.10.220:2380
170+
# An example with hiera would be kubernetes::etcd_initial_cluster: etcd-kube-control-plane=http://172.17.10.101:2380,etcd-kube-replica-control-plane-01=http://172.17.10.210:2380,etcd-kube-replica-control-plane-02=http://172.17.10.220:2380
171171
# Defaults to undef
172172
#
173173
# [*etcd_initial_cluster_state*]
@@ -303,7 +303,7 @@
303303
# Defaults to v1.10.1
304304
#
305305
# [*schedule_on_controller*]
306-
# A flag to remove the master role and allow pod scheduling on controllers
306+
# A flag to remove the control plane role and allow pod scheduling on controllers
307307
# Defaults to true
308308
#
309309
# [*service_cidr*]
@@ -338,7 +338,7 @@
338338
# Defaults to {}
339339
#
340340
# [*kubelet_extra_arguments*]
341-
# A string array to be appended to kubeletExtraArgs in the Kubelet's nodeRegistration configuration applied to both masters and nodes.
341+
# A string array to be appended to kubeletExtraArgs in the Kubelet's nodeRegistration configuration applied to both control planes and nodes.
342342
# Use this for critical Kubelet settings such as `pod-infra-container-image` which may be problematic to configure via kubelet_extra_config
343343
# Defaults to []
344344
#

spec/defines/kubeadm_init_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
let(:params) do
2424
{
2525
'config' => '/etc/kubernetes/config.yaml',
26-
'node_name' => 'kube-master',
26+
'node_name' => 'kube-control-plane',
2727
'path' => [ '/bin','/usr/bin','/sbin'],
2828
'env' => [ 'KUBECONFIG=/etc/kubernetes/admin.conf'],
2929
}
@@ -37,7 +37,7 @@
3737
let(:params) do
3838
{
3939
'config' => '/etc/kubernetes/config.yaml',
40-
'node_name' => 'kube-master',
40+
'node_name' => 'kube-control-plane',
4141
'path' => [ '/bin','/usr/bin','/sbin'],
4242
'dry_run' => true,
4343
'env' => [ 'KUBECONFIG=/etc/kubernetes/admin.conf'],
@@ -52,7 +52,7 @@
5252
let(:params) do
5353
{
5454
'config' => '/etc/kubernetes/config.yaml',
55-
'node_name' => 'kube-master',
55+
'node_name' => 'kube-control-plane',
5656
'path' => [ '/bin','/usr/bin','/sbin'],
5757
'ignore_preflight_errors' => ['foo', 'bar'],
5858
'env' => [ 'KUBECONFIG=/etc/kubernetes/admin.conf'],

spec/spec_helper_acceptance_local.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ def create_remote_file(name, full_name, file_content)
3939
run_shell('puppet module install puppetlabs-docker')
4040

4141
hosts_file = <<-EOS
42-
127.0.0.1 localhost #{vmhostname} kubernetes kube-master
42+
127.0.0.1 localhost #{vmhostname} kubernetes kube-control-plane
4343
#{vmipaddr} #{vmhostname}
4444
#{vmipaddr} kubernetes
45-
#{vmipaddr} kube-master
45+
#{vmipaddr} kube-control-plane
4646
EOS
4747

4848
nginx = <<-EOS

tasks/swagger_k8s_get_api_versions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
,
5151

5252
"serveraddressbyclientcidrs":{
53-
"description": "a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.",
53+
"description": "a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the control plane will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.",
5454
"type": "Optional[String[1]]"
5555
}
5656

0 commit comments

Comments
 (0)