File tree 23 files changed +235
-0
lines changed
23 files changed +235
-0
lines changed Original file line number Diff line number Diff line change
1
+ # !/usr/bin/perl
2
+
3
+ # To be called within a part directory
4
+
5
+ use strict;
6
+ my $part = shift ;
7
+
8
+ opendir (my $dh , " ." );
9
+ for my $pattern (readdir $dh ) {
10
+ next unless -d $pattern ;
11
+ next if -e " $pattern /index.yml" ;
12
+ opendir (my $pdh , " $pattern " );
13
+ my @res = grep { / .yml$ / } readdir $pdh ;
14
+ closedir $pdh ;
15
+ next unless @res ;
16
+ my $patternLong = $pattern ;
17
+ $patternLong =~ s / ([A-Z])/ $1 / g ;
18
+ $patternLong =~ s / ^\s *// ;
19
+ my $index = <<EOT ;
20
+ pattern: $patternLong
21
+ category: $part
22
+ base: $part /$pattern
23
+ examples:
24
+ EOT
25
+ for my $r (@res ) {
26
+ $index .= <<EOT ;
27
+ - description:
28
+ path: $r
29
+ EOT
30
+ }
31
+ print $pattern ," \n " ;
32
+ open (my $f ," >$pattern /index.yml" );
33
+ print $f $index ;
34
+ close $f
35
+ }
36
+
37
+ closedir $dh
Original file line number Diff line number Diff line change
1
+ pattern : Controller
2
+ category : advanced
3
+ base : advanced/Controller
4
+ examples :
5
+ - description :
6
+ path : config-watcher-controller.yml
7
+ - description :
8
+ path : web-app.yml
Original file line number Diff line number Diff line change
1
+ pattern : Elastic Scale
2
+ category : advanced
3
+ base : advanced/ElasticScale
4
+ examples :
5
+ - description :
6
+ path : deployment.yml
7
+ - description :
8
+ path : vpa.yml
9
+ - description :
10
+ path : hpa.yml
Original file line number Diff line number Diff line change
1
+ pattern : Image Builder
2
+ category : advanced
3
+ base : advanced/ImageBuilder/knative
4
+ examples :
5
+ - description :
6
+ path : build-with-jib.yml
7
+ - description :
8
+ path : build-with-template.yml
9
+ - description :
10
+ path : maven-kaniko-buildtemplate.yml
11
+ - description :
12
+ path : random-generator-deploy.yml
13
+ - description :
14
+ path : registry.yml
Original file line number Diff line number Diff line change
1
+ pattern : Image Builder
2
+ category : advanced
3
+ base : advanced/ImageBuilder/openshift
4
+ examples :
5
+ - description :
6
+ path : random-generator-build.yml
7
+ - description :
8
+ path : random-generator-deploy.yml
9
+ - description :
10
+ path : random-generator-multi-stage-docker.yml
Original file line number Diff line number Diff line change
1
+ pattern : Operator
2
+ category : advanced
3
+ base : advanced/Operator
4
+ examples :
5
+ - description :
6
+ path : config-watcher-crd.yml
7
+ - description :
8
+ path : web-app.yml
9
+ - description :
10
+ path : config-watcher-sample.yml
11
+ - description :
12
+ path : config-watcher-operator.yml
Original file line number Diff line number Diff line change
1
+ pattern : Stateful Service
2
+ category : advanced
3
+ base : advanced/StatefulService
4
+ examples :
5
+ - description :
6
+ path : statefulset.yml
7
+ - description :
8
+ path : pvs.yml
9
+ - description :
10
+ path : service.yml
11
+ - description :
12
+ path : service-nodeport.yml
Original file line number Diff line number Diff line change
1
+ pattern : Batch Job
2
+ category : behavorial
3
+ base : behavorial/BatchJob
4
+ examples :
5
+ - description :
6
+ path : pv-and-pvc.yml
7
+ - description :
8
+ path : job.yml
Original file line number Diff line number Diff line change
1
+ pattern : Daemon Service
2
+ category : behavorial
3
+ base : behavorial/DaemonService
4
+ examples :
5
+ - description :
6
+ path : daemonset.yml
Original file line number Diff line number Diff line change
1
+ pattern : Periodic Job
2
+ category : behavorial
3
+ base : behavorial/PeriodicJob
4
+ examples :
5
+ - description :
6
+ path : pv-and-pvc.yml
7
+ - description :
8
+ path : cron-job.yml
Original file line number Diff line number Diff line change
1
+ pattern : Self Awareness
2
+ category : behavorial
3
+ base : behavorial/SelfAwareness
4
+ examples :
5
+ - description :
6
+ path : pod.yml
Original file line number Diff line number Diff line change
1
+ pattern : Service Discovery
2
+ category : behavorial
3
+ base : behavorial/ServiceDiscovery
4
+ examples :
5
+ - description :
6
+ path : service-with-nodeport.yml
7
+ - description :
8
+ path : ingress-with-dispatch.yml
9
+ - description :
10
+ path : service-with-loadbalancer.yml
11
+ - description :
12
+ path : deployment.yml
13
+ - description :
14
+ path : ingress.yml
15
+ - description :
16
+ path : service.yml
Original file line number Diff line number Diff line change
1
+ pattern : Singleton Service
2
+ category : behavorial
3
+ base : behavorial/SingletonService
4
+ examples :
5
+ - description :
6
+ path : deployment.yml
7
+ - description :
8
+ path : pdb.yml
Original file line number Diff line number Diff line change
1
+ pattern : Configuration Resource
2
+ category : configuration
3
+ base : configuration/ConfigurationResource
4
+ examples :
5
+ - description :
6
+ path : configmap.yml
7
+ - description :
8
+ path : pod.yml
9
+ - description :
10
+ path : service.yml
Original file line number Diff line number Diff line change
1
+ pattern : Configuration Template
2
+ category : configuration
3
+ base : configuration/ConfigurationTemplate
4
+ examples :
5
+ - description :
6
+ path : wildfly.yml
Original file line number Diff line number Diff line change
1
+ pattern : Env Var Configuration
2
+ category : configuration
3
+ base : configuration/EnvVarConfiguration
4
+ examples :
5
+ - description :
6
+ path : pod.yml
7
+ - description :
8
+ path : service.yml
Original file line number Diff line number Diff line change
1
+ pattern : Health Probe
2
+ category : foundational
3
+ base : foundational/HealthProbe
4
+ examples :
5
+ - description :
6
+ path : deployment.yml
Original file line number Diff line number Diff line change
1
+ pattern : Managed Lifecycle
2
+ category : foundational
3
+ base : foundational/ManagedLifecycle
4
+ examples :
5
+ - description :
6
+ path : pod.yml
Original file line number Diff line number Diff line change
1
+ pattern : Predictable Demands
2
+ category : foundational
3
+ base : foundational/PredictableDemands
4
+ examples :
5
+ - description :
6
+ path : pv-and-pvc.yml
7
+ - description :
8
+ path : deployment.yml
9
+ - description :
10
+ path : configmap.yml
11
+ - description :
12
+ path : pod.yml
13
+ - description :
14
+ path : pod-with-priority-class.yml
Original file line number Diff line number Diff line change
1
+ pattern : Adapter
2
+ category : structural
3
+ base : structural/Adapter
4
+ examples :
5
+ - description :
6
+ path : pod.yml
7
+ - description :
8
+ path : service.yml
Original file line number Diff line number Diff line change
1
+ pattern : Ambassador
2
+ category : structural
3
+ base : structural/Ambassador
4
+ examples :
5
+ - description :
6
+ path : pod.yml
7
+ - description :
8
+ path : service.yml
Original file line number Diff line number Diff line change
1
+ pattern : Init Container
2
+ category : structural
3
+ base : structural/InitContainer
4
+ examples :
5
+ - description :
6
+ path : pod.yml
7
+ - description :
8
+ path : service.yml
Original file line number Diff line number Diff line change
1
+ pattern : Sidecar
2
+ category : structural
3
+ base : structural/Sidecar
4
+ examples :
5
+ - description :
6
+ path : web-app.yml
You can’t perform that action at this time.
0 commit comments