Skip to content

Commit efb99a6

Browse files
committed
Prepare for KubeCon
1 parent c3c64cb commit efb99a6

File tree

7 files changed

+33
-22
lines changed

7 files changed

+33
-22
lines changed

docs/evaluation.md

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,26 @@ To perform a quick test of the webhosting-operator, create some example `Website
2525
$ kubectl apply -k webhosting-operator/config/samples
2626
...
2727

28-
$ kubectl -n project-foo get website,deploy,svc,ing -L shard.alpha.sharding.timebertt.dev/webhosting-operator
29-
NAME THEME PHASE SINCE AGE WEBHOSTING-OPERATOR
30-
website.webhosting.timebertt.dev/homepage exciting Ready 6s 16s webhosting-operator-98ff76b66-tdrtc
31-
website.webhosting.timebertt.dev/official lame Ready 5s 16s webhosting-operator-98ff76b66-tdrtc
32-
33-
NAME READY UP-TO-DATE AVAILABLE AGE WEBHOSTING-OPERATOR
34-
deployment.apps/homepage-98bad4 1/1 1 1 15s webhosting-operator-98ff76b66-tdrtc
35-
deployment.apps/official-10ff22 1/1 1 1 15s webhosting-operator-98ff76b66-tdrtc
36-
37-
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE WEBHOSTING-OPERATOR
38-
service/homepage-98bad4 ClusterIP 100.82.128.107 <none> 8080/TCP 16s webhosting-operator-98ff76b66-tdrtc
39-
service/official-10ff22 ClusterIP 100.82.194.21 <none> 8080/TCP 16s webhosting-operator-98ff76b66-tdrtc
40-
41-
NAME CLASS HOSTS ADDRESS PORTS AGE WEBHOSTING-OPERATOR
42-
ingress.networking.k8s.io/homepage-98bad4 nginx webhosting.timebertt.dev 80, 443 16s webhosting-operator-98ff76b66-tdrtc
43-
ingress.networking.k8s.io/official-10ff22 nginx webhosting.timebertt.dev 80, 443 15s webhosting-operator-98ff76b66-tdrtc
28+
$ kubectl -n project-foo get website,deploy,ing,svc,cm -L shard.alpha.sharding.timebertt.dev/webhosting-operator
29+
NAME THEME PHASE SINCE AGE WEBHOSTING-OPERATOR
30+
website.webhosting.timebertt.dev/kubecon exciting Ready 1s 3s webhosting-operator-5f7854768d-8n59m
31+
website.webhosting.timebertt.dev/library lame Ready 1s 3s webhosting-operator-5f7854768d-j67tj
32+
33+
NAME READY UP-TO-DATE AVAILABLE AGE WEBHOSTING-OPERATOR
34+
deployment.apps/kubecon-b5ed55 1/1 1 1 3s webhosting-operator-5f7854768d-8n59m
35+
deployment.apps/library-185298 1/1 1 1 3s webhosting-operator-5f7854768d-j67tj
36+
37+
NAME CLASS HOSTS ADDRESS PORTS AGE WEBHOSTING-OPERATOR
38+
ingress.networking.k8s.io/kubecon-b5ed55 nginx webhosting.timebertt.dev 80, 443 3s webhosting-operator-5f7854768d-8n59m
39+
ingress.networking.k8s.io/library-185298 nginx webhosting.timebertt.dev 80, 443 3s webhosting-operator-5f7854768d-j67tj
40+
41+
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE WEBHOSTING-OPERATOR
42+
service/kubecon-b5ed55 ClusterIP 100.82.167.176 <none> 8080/TCP 3s webhosting-operator-5f7854768d-8n59m
43+
service/library-185298 ClusterIP 100.82.224.52 <none> 8080/TCP 3s webhosting-operator-5f7854768d-j67tj
44+
45+
NAME DATA AGE WEBHOSTING-OPERATOR
46+
configmap/kubecon-b5ed55 2 3s webhosting-operator-5f7854768d-8n59m
47+
configmap/library-185298 2 3s webhosting-operator-5f7854768d-j67tj
4448
```
4549

4650
You can now visit the created websites at http://localhost:8088/project-foo/homepage and http://localhost:8088/project-foo/official.

webhosting-operator/cmd/samples-generator/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ func generateSamples(ctx context.Context, c client.Client) error {
116116
Name: "sample-" + utils.RandomName(8),
117117
Namespace: project,
118118
Labels: map[string]string{
119-
"generated-by": "sample-generator",
119+
"generated-by": "samples-generator",
120120
},
121121
},
122122
Spec: webhostingv1alpha1.WebsiteSpec{

webhosting-operator/config/samples/kustomization.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ resources:
55
- project_namespace.yaml
66
- theme_exciting.yaml
77
- theme_lame.yaml
8-
- website_homepage.yaml
9-
- website_official.yaml
8+
- website_kubecon.yaml
9+
- website_library.yaml

webhosting-operator/config/samples/theme_exciting.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ metadata:
44
name: exciting
55
spec:
66
color: darkcyan
7-
fontFamily: Menlo
7+
fontFamily: Futura
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: webhosting.timebertt.dev/v1alpha1
22
kind: Website
33
metadata:
4-
name: homepage
4+
name: kubecon
55
namespace: project-foo
66
spec:
77
theme: exciting
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: webhosting.timebertt.dev/v1alpha1
22
kind: Website
33
metadata:
4-
name: official
4+
name: library
55
namespace: project-foo
66
spec:
77
theme: lame
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
apiVersion: webhosting.timebertt.dev/v1alpha1
2+
kind: Website
3+
metadata:
4+
name: museum
5+
namespace: project-foo
6+
spec:
7+
theme: lame

0 commit comments

Comments
 (0)