Skip to content

Commit 412a68d

Browse files
committed
Remove trailing whitespaces
1 parent 78097f9 commit 412a68d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+173
-173
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use the latest and greatest features, current guidelines and best practices,
1212
and to refresh command syntax, output, changed prerequisites, as needed.
1313

1414
|Name | Description | Notable Features Used | Complexity Level|
15-
------------- | ------------- | ------------ | ------------ |
15+
------------- | ------------- | ------------ | ------------ |
1616
|[Guestbook](guestbook/) | PHP app with Redis | Deployment, Service | Beginner |
1717
|[WordPress](mysql-wordpress-pd/) | WordPress with MySQL | Deployment, Persistent Volume with Claim | Beginner|
1818
|[Cassandra](cassandra/) | Cloud Native Cassandra | Daemon Set, Stateful Set, Replication Controller | Intermediate

cassandra/cassandra-statefulset.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ spec:
4343
lifecycle:
4444
preStop:
4545
exec:
46-
command:
46+
command:
4747
- /bin/sh
4848
- -c
4949
- nodetool drain

cassandra/image/files/build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ else
5656
fi
5757

5858
mv /kubernetes-cassandra.jar /usr/local/apache-cassandra-${CASSANDRA_VERSION}/lib
59-
mv /cassandra-seed.so /etc/cassandra/
59+
mv /cassandra-seed.so /etc/cassandra/
6060
mv /cassandra-seed.h /usr/local/lib/include
6161

6262
apt-get -y purge localepurge

cassandra/image/files/cassandra.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ counter_cache_save_period: 7200
306306
saved_caches_directory: /cassandra_data/saved_caches
307307

308308
# commitlog_sync may be either "periodic" or "batch."
309-
#
309+
#
310310
# When in batch mode, Cassandra won't ack writes until the commit log
311311
# has been fsynced to disk. It will wait
312312
# commitlog_sync_batch_window_in_ms milliseconds between fsyncs.
@@ -980,9 +980,9 @@ transparent_data_encryption_options:
980980
key_alias: testing:1
981981
# CBC IV length for AES needs to be 16 bytes (which is also the default size)
982982
# iv_length: 16
983-
key_provider:
983+
key_provider:
984984
- class_name: org.apache.cassandra.security.JKSKeyProvider
985-
parameters:
985+
parameters:
986986
- keystore: conf/.keystore
987987
keystore_password: cassandra
988988
store_type: JCEKS

cassandra/java/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<plugins>
2323
<plugin>
2424
<artifactId>maven-compiler-plugin</artifactId>
25-
<version>3.5.1</version>
25+
<version>3.5.1</version>
2626
<configuration>
2727
<source>1.8</source>
2828
<target>1.8</target>

cassandra/java/src/main/java/io/k8s/cassandra/KubernetesSeedProvider.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@ public class KubernetesSeedProvider implements SeedProvider {
4949

5050
/**
5151
* Create new seed provider
52-
*
52+
*
5353
* @param params
5454
*/
5555
public KubernetesSeedProvider(Map<String, String> params) {
5656
}
5757

5858
/**
5959
* Call Kubernetes API to collect a list of seed providers
60-
*
60+
*
6161
* @return list of seed providers
6262
*/
6363
public List<InetAddress> getSeeds() {

cassandra/java/src/test/resources/cassandra.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ data_file_directories:
3535
- target/cassandra/data
3636
disk_access_mode: mmap
3737
seed_provider:
38-
- class_name: io.k8s.cassandra.KubernetesSeedProvider
38+
- class_name: io.k8s.cassandra.KubernetesSeedProvider
3939
parameters:
4040
- seeds: "8.4.4.4,8.8.8.8"
4141
endpoint_snitch: org.apache.cassandra.locator.SimpleSnitch

guestbook-go/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Use the `examples/guestbook-go/redis-master-controller.json` file to create a [r
5959

6060
```console
6161
me@workstation$ gcloud compute ssh --zone us-central1-b kubernetes-node-bz1p
62-
62+
6363
me@kubernetes-node-3:~$ sudo docker ps
6464
CONTAINER ID IMAGE COMMAND CREATED STATUS
6565
d5c458dabe50 redis "/entrypoint.sh redis" 5 minutes ago Up 5 minutes
@@ -195,7 +195,7 @@ This is a simple Go `net/http` ([negroni](https://github.com/codegangsta/negroni
195195
redis-master-xx4uv 1/1 Running 0 23m
196196
redis-slave-b6wj4 1/1 Running 0 6m
197197
redis-slave-iai40 1/1 Running 0 6m
198-
...
198+
...
199199
```
200200

201201
Result: You see a single Redis master, two Redis slaves, and three guestbook pods.

guestbook/frontend-service.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ metadata:
77
tier: frontend
88
spec:
99
# comment or delete the following line if you want to use a LoadBalancer
10-
type: NodePort
10+
type: NodePort
1111
# if your cluster supports it, uncomment the following to automatically create
1212
# an external load-balanced IP for the frontend service.
1313
# type: LoadBalancer

staging/cockroachdb/demo.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function kill() {
3232
# Create database on second node (idempotently for convenience).
3333
cat <<EOF | sql 1
3434
CREATE DATABASE IF NOT EXISTS foo;
35-
CREATE TABLE IF NOT EXISTS foo.bar (k STRING PRIMARY KEY, v STRING);
35+
CREATE TABLE IF NOT EXISTS foo.bar (k STRING PRIMARY KEY, v STRING);
3636
UPSERT INTO foo.bar VALUES ('Kuber', 'netes'), ('Cockroach', 'DB');
3737
EOF
3838

staging/javaee/mysql-pod.yaml

+9-9
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,23 @@ metadata:
66
name: mysql-pod
77
context: docker-k8s-lab
88
spec:
9-
containers:
10-
-
9+
containers:
10+
-
1111
name: mysql
1212
image: mysql:latest
13-
env:
14-
-
13+
env:
14+
-
1515
name: "MYSQL_USER"
1616
value: "mysql"
17-
-
17+
-
1818
name: "MYSQL_PASSWORD"
1919
value: "mysql"
20-
-
20+
-
2121
name: "MYSQL_DATABASE"
2222
value: "sample"
23-
-
23+
-
2424
name: "MYSQL_ROOT_PASSWORD"
2525
value: "supersecret"
26-
ports:
27-
-
26+
ports:
27+
-
2828
containerPort: 3306

staging/javaee/mysql-service.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
apiVersion: v1
22
kind: Service
3-
metadata:
3+
metadata:
44
name: mysql-service
5-
labels:
5+
labels:
66
name: mysql-pod
77
context: docker-k8s-lab
8-
spec:
8+
spec:
99
ports:
1010
# the port that this service should serve on
1111
- port: 3306
1212
# label keys and values that must match in order to receive traffic for this service
13-
selector:
13+
selector:
1414
name: mysql-pod
1515
context: docker-k8s-lab

staging/javaweb-tomcat-sidecar/javaweb-2.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ spec:
1919
name: app-volume
2020
ports:
2121
- containerPort: 8080
22-
hostPort: 8001
22+
hostPort: 8001
2323
volumes:
2424
- name: app-volume
2525
emptyDir: {}

staging/openshift-origin/create.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export PUBLIC_OPENSHIFT_IP=""
8282
echo "===> Waiting for public IP to be set for the OpenShift Service."
8383
echo "Mistakes in service setup can cause this to loop infinitely if an"
8484
echo "external IP is never set. Ensure that the OpenShift service"
85-
echo "is set to use an external load balancer. This process may take"
85+
echo "is set to use an external load balancer. This process may take"
8686
echo "a few minutes. Errors can be found in the log file found at:"
8787
echo ${OPENSHIFT_EXAMPLE}/openshift-startup.log
8888
echo "" > ${OPENSHIFT_EXAMPLE}/openshift-startup.log

staging/persistent-volume-provisioning/quobyte/example-pod.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ spec:
1313
spec:
1414
containers:
1515
- name: server
16-
image: nginx
16+
image: nginx
1717
volumeMounts:
1818
- mountPath: /var/lib/www/html
1919
name: quobytepvc

staging/persistent-volume-provisioning/rbd/ceph-secret-user.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v1
22
kind: Secret
33
metadata:
44
name: ceph-secret-user
5-
type: "kubernetes.io/rbd"
5+
type: "kubernetes.io/rbd"
66
data:
77
#Please note this value is base64 encoded.
88
key: QVFBTWdYaFZ3QkNlRGhBQTlubFBhRnlmVVNhdEdENGRyRldEdlE9PQ==

staging/podsecuritypolicy/rbac/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ In order to create a pod, either the creating user or the service account
127127
specified by the pod must be authorized to use a `PodSecurityPolicy` object
128128
that allows the pod, within the pod's namespace.
129129

130-
That authorization is determined by the ability to perform the `use` verb
130+
That authorization is determined by the ability to perform the `use` verb
131131
on a particular `podsecuritypolicies` resource, at the scope of the pod's namespace.
132132
The `use` verb is a special verb that grants access to use a policy while not permitting any
133133
other access.

staging/selenium/selenium-hub-deployment.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: apps/v1
22
kind: Deployment
33
metadata:
4-
name: selenium-hub
4+
name: selenium-hub
55
labels:
66
app: selenium-hub
77
spec:
@@ -18,7 +18,7 @@ spec:
1818
- name: selenium-hub
1919
image: selenium/hub:3.11
2020
ports:
21-
- containerPort: 4444
21+
- containerPort: 4444
2222
resources:
2323
limits:
2424
memory: "1000Mi"

staging/selenium/selenium-hub-svc.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ metadata:
66
app: selenium-hub
77
spec:
88
ports:
9-
- port: 4444
10-
targetPort: 4444
9+
- port: 4444
10+
targetPort: 4444
1111
name: port0
1212
selector:
1313
app: selenium-hub

staging/selenium/selenium-node-chrome-deployment.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: apps/v1
22
kind: Deployment
33
metadata:
4-
name: selenium-node-chrome
4+
name: selenium-node-chrome
55
labels:
66
app: selenium-node-chrome
77
spec:
@@ -18,11 +18,11 @@ spec:
1818
- name: selenium-node-chrome
1919
image: selenium/node-chrome-debug:3.11
2020
ports:
21-
- containerPort: 5900
21+
- containerPort: 5900
2222
env:
23-
- name: HUB_PORT_4444_TCP_ADDR
23+
- name: HUB_PORT_4444_TCP_ADDR
2424
value: "selenium-hub"
25-
- name: HUB_PORT_4444_TCP_PORT
25+
- name: HUB_PORT_4444_TCP_PORT
2626
value: "4444"
2727
resources:
2828
limits:

staging/selenium/selenium-node-firefox-deployment.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: apps/v1
22
kind: Deployment
33
metadata:
4-
name: selenium-node-firefox
4+
name: selenium-node-firefox
55
labels:
66
app: selenium-node-firefox
77
spec:
@@ -14,22 +14,22 @@ spec:
1414
labels:
1515
app: selenium-node-firefox
1616
spec:
17-
volumes:
17+
volumes:
1818
- name: dshm
1919
emptyDir:
2020
medium: Memory
2121
containers:
2222
- name: selenium-node-firefox
2323
image: selenium/node-firefox-debug:3.11
2424
ports:
25-
- containerPort: 5900
25+
- containerPort: 5900
2626
volumeMounts:
2727
- mountPath: /dev/shm
2828
name: dshm
2929
env:
30-
- name: HUB_PORT_4444_TCP_ADDR
30+
- name: HUB_PORT_4444_TCP_ADDR
3131
value: "selenium-hub"
32-
- name: HUB_PORT_4444_TCP_PORT
32+
- name: HUB_PORT_4444_TCP_PORT
3333
value: "4444"
3434
resources:
3535
limits:

staging/storage/hazelcast/README.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ metadata:
4343
labels:
4444
name: hazelcast
4545
name: hazelcast
46-
spec:
46+
spec:
4747
ports:
4848
- port: 5701
4949
selector:
@@ -74,27 +74,27 @@ Deployments will "adopt" existing pods that match their selector query, so let's
7474
```yaml
7575
apiVersion: "apps/v1" # for k8s versions before 1.9.0 use apps/v1beta2 and before 1.8.0 use extensions/v1beta1
7676
kind: Deployment
77-
metadata:
77+
metadata:
7878
name: hazelcast
79-
labels:
79+
labels:
8080
name: hazelcast
8181
spec:
8282
selector:
8383
matchLabels:
8484
name: hazelcast
85-
template:
86-
metadata:
87-
labels:
85+
template:
86+
metadata:
87+
labels:
8888
name: hazelcast
89-
spec:
90-
containers:
89+
spec:
90+
containers:
9191
- name: hazelcast
9292
image: quay.io/pires/hazelcast-kubernetes:0.8.0
9393
imagePullPolicy: Always
9494
env:
9595
- name: "DNS_DOMAIN"
9696
value: "cluster.local"
97-
ports:
97+
ports:
9898
- name: hazelcast
9999
containerPort: 5701
100100
```
@@ -187,7 +187,7 @@ kubectl logs -f hazelcast-4195412960-0tl3w
187187
2017-03-15 09:42:47.253 INFO 7 --- [cached.thread-3] c.hazelcast.nio.tcp.InitConnectionTask : [172.17.0.6]:5701 [someGroup] [3.8] Connecting to /172.17.0.2:5701, timeout: 0, bind-any: true
188188
2017-03-15 09:42:47.262 INFO 7 --- [cached.thread-3] c.h.nio.tcp.TcpIpConnectionManager : [172.17.0.6]:5701 [someGroup] [3.8] Established socket connection between /172.17.0.6:58073 and /172.17.0.2:5701
189189
2017-03-15 09:42:54.260 INFO 7 --- [ration.thread-0] com.hazelcast.system : [172.17.0.6]:5701 [someGroup] [3.8] Cluster version set to 3.8
190-
2017-03-15 09:42:54.262 INFO 7 --- [ration.thread-0] c.h.internal.cluster.ClusterService : [172.17.0.6]:5701 [someGroup] [3.8]
190+
2017-03-15 09:42:54.262 INFO 7 --- [ration.thread-0] c.h.internal.cluster.ClusterService : [172.17.0.6]:5701 [someGroup] [3.8]
191191
192192
Members [2] {
193193
Member [172.17.0.2]:5701 - 170f6924-7888-442a-9875-ad4d25659a8a
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
apiVersion: apps/v1 # for k8s versions before 1.9.0 use apps/v1beta2 and before 1.8.0 use extensions/v1beta1
22
kind: Deployment
3-
metadata:
3+
metadata:
44
name: hazelcast
5-
labels:
5+
labels:
66
name: hazelcast
7-
spec:
7+
spec:
88
selector:
99
matchLabels:
1010
name: hazelcast
11-
template:
12-
metadata:
13-
labels:
11+
template:
12+
metadata:
13+
labels:
1414
name: hazelcast
15-
spec:
16-
containers:
15+
spec:
16+
containers:
1717
- name: hazelcast
1818
image: quay.io/pires/hazelcast-kubernetes:3.8_1
1919
imagePullPolicy: Always
@@ -24,6 +24,6 @@ spec:
2424
valueFrom:
2525
fieldRef:
2626
fieldPath: metadata.namespace
27-
ports:
27+
ports:
2828
- name: hazelcast
2929
containerPort: 5701

0 commit comments

Comments
 (0)