Skip to content

Commit 79fc723

Browse files
slim-runtime
1 parent 64ee1a3 commit 79fc723

File tree

3 files changed

+35
-42
lines changed

3 files changed

+35
-42
lines changed

cmd/commands/runtime_install.go

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,8 @@ func getComponents(rt *runtime.Runtime, opts *RuntimeInstallOptions) []string {
559559
}
560560

561561
// should find a more dynamic way to get these additional components
562-
additionalComponents := []string{"events-reporter", "workflow-reporter", "rollout-reporter"}
562+
// additionalComponents := []string{"events-reporter", "workflow-reporter", "rollout-reporter"}
563+
additionalComponents := []string{"events-reporter", "rollout-reporter"}
563564
for _, additionalComponentName := range additionalComponents {
564565
componentFullName := fmt.Sprintf("%s-%s", opts.RuntimeName, additionalComponentName)
565566
componentNames = append(componentNames, componentFullName)
@@ -1060,15 +1061,15 @@ func installComponents(ctx context.Context, opts *RuntimeInstallOptions, rt *run
10601061

10611062
// this will add `/workflows` suffix to the argo-server deployment
10621063
// we need this both in ingress and tunnel mode
1063-
if opts.shouldInstallIngress() && rt.Spec.IngressController != string(routingutil.IngressControllerALB) || rt.Spec.AccessMode == platmodel.AccessModeTunnel {
1064-
if err = util.Retry(ctx, &util.RetryOptions{
1065-
Func: func() error {
1066-
return configureArgoWorkflows(ctx, opts, rt)
1067-
},
1068-
}); err != nil {
1069-
return fmt.Errorf("failed to patch Argo Worfkflows configuration: %w", err)
1070-
}
1071-
}
1064+
// if opts.shouldInstallIngress() && rt.Spec.IngressController != string(routingutil.IngressControllerALB) || rt.Spec.AccessMode == platmodel.AccessModeTunnel {
1065+
// if err = util.Retry(ctx, &util.RetryOptions{
1066+
// Func: func() error {
1067+
// return configureArgoWorkflows(ctx, opts, rt)
1068+
// },
1069+
// }); err != nil {
1070+
// return fmt.Errorf("failed to patch Argo Worfkflows configuration: %w", err)
1071+
// }
1072+
// }
10721073

10731074
if err = util.Retry(ctx, &util.RetryOptions{
10741075
Func: func() error {
@@ -1082,21 +1083,21 @@ func installComponents(ctx context.Context, opts *RuntimeInstallOptions, rt *run
10821083
return fmt.Errorf("failed to create events-reporter: %w", err)
10831084
}
10841085

1085-
if err = createReporter(
1086-
ctx, opts.InsCloneOpts, opts, reporterCreateOptions{
1087-
reporterName: store.Get().WorkflowReporterName,
1088-
gvr: []gvr{
1089-
{
1090-
resourceName: store.Get().WorkflowResourceName,
1091-
group: "argoproj.io",
1092-
version: "v1alpha1",
1093-
},
1094-
},
1095-
saName: store.Get().CodefreshSA,
1096-
IsInternal: true,
1097-
}); err != nil {
1098-
return fmt.Errorf("failed to create workflows-reporter: %w", err)
1099-
}
1086+
// if err = createReporter(
1087+
// ctx, opts.InsCloneOpts, opts, reporterCreateOptions{
1088+
// reporterName: store.Get().WorkflowReporterName,
1089+
// gvr: []gvr{
1090+
// {
1091+
// resourceName: store.Get().WorkflowResourceName,
1092+
// group: "argoproj.io",
1093+
// version: "v1alpha1",
1094+
// },
1095+
// },
1096+
// saName: store.Get().CodefreshSA,
1097+
// IsInternal: true,
1098+
// }); err != nil {
1099+
// return fmt.Errorf("failed to create workflows-reporter: %w", err)
1100+
// }
11001101

11011102
if err = createReporter(ctx, opts.InsCloneOpts, opts, reporterCreateOptions{
11021103
reporterName: store.Get().RolloutReporterName,

manifests/internal-router/internal-router.cm.yaml

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,37 +9,29 @@ data:
99
root /usr/local/app;
1010
access_log /dev/stdout main;
1111
error_log /dev/stdout;
12-
13-
12+
13+
1414
location /app-proxy {
1515
# WebSocket support
1616
proxy_http_version 1.1;
1717
proxy_set_header Upgrade $http_upgrade;
1818
proxy_set_header Connection "upgrade";
1919
chunked_transfer_encoding off;
20-
20+
2121
proxy_pass http://cap-app-proxy:3017;
2222
}
23-
24-
location /workflows/ {
25-
# sse
26-
proxy_set_header Connection '';
27-
proxy_http_version 1.1;
28-
chunked_transfer_encoding off;
29-
30-
proxy_pass https://argo-server:2746/;
31-
}
32-
23+
3324
location ~ /webhooks/([^/]+)/([^/]+) {
3425
resolver kube-dns.kube-system.svc.cluster.local valid=10s;
3526
proxy_pass http://$2-eventsource-svc.$1.svc.cluster.local;
3627
}
37-
28+
3829
location /readyz {
3930
return 200 'ok';
4031
}
41-
32+
4233
location /healthz {
4334
return 200 'ok';
4435
}
45-
}
36+
}
37+

pkg/store/store.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ func init() {
262262
s.InClusterPath = "/bootstrap/cluster-resources/in-cluster"
263263
s.SccName = "cf-scc"
264264
s.CFInternalGitSources = []string{s.MarketplaceGitSourceName}
265-
s.CFInternalReporters = []string{s.EventsReporterName, s.WorkflowReporterName, s.RolloutReporterName}
265+
s.CFInternalReporters = []string{s.EventsReporterName, s.RolloutReporterName}
266266
s.InCluster = "https://kubernetes.default.svc"
267267
s.IscRuntimesDir = "runtimes"
268268
s.DefVersionToLastCLIVersion = map[string]string{

0 commit comments

Comments
 (0)