@@ -44,99 +44,100 @@ type Version struct {
44
44
}
45
45
46
46
type Store struct {
47
- ArgoCDServerName string
48
- ArgoCDTokenKey string
49
- ArgoCDTokenSecret string
50
- ArgoWFServiceName string
51
- ArgoWFServicePort int32
52
- BinaryName string
53
- Codefresh string
54
- CodefreshDeliveryPipelines string
55
- CFComponentType string
56
- CFGitSourceType string
57
- CFRuntimeDefType string
58
- CFRuntimeType string
59
- CFTokenSecret string
60
- CFTokenSecretKey string
61
- CFStoreIVSecretKey string
62
- CodefreshCM string
63
- CodefreshSA string
64
- ComponentsReporterName string
65
- ComponentsReporterSA string
66
- ComponentsReporterURL string
67
- DefaultAPI string
68
- EventBusName string
69
- EventReportingEndpoint string
70
- EventsReporterName string
71
- GitSourceName string
72
- WorkflowsIngressName string
73
- WorkflowsIngressPath string
74
- AppProxyIngressName string
75
- AppProxyIngressPath string
76
- AppProxyServicePort int32
77
- AppProxyServiceName string
78
- DocsLink string
79
- LabelKeyCFType string
80
- LabelKeyCFInternal string
81
- MarketplaceGitSourceName string
82
- MarketplaceRepo string
83
- MaxDefVersion * semver.Version
84
- RuntimeDefURL string
85
- Version Version
86
- WaitTimeout time.Duration
87
- WorkflowName string
88
- WorkflowReporterName string
89
- WorkflowTriggerServiceAccount string
90
- CronExampleSensorFileName string
91
- CronExampleEventSourceFileName string
92
- CronExampleWfTemplateFileName string
93
- CronExampleEventSourceName string
94
- CronExampleEventName string
95
- CronExampleTriggerTemplateName string
96
- CronExampleDependencyName string
97
- GithubExampleEventSourceFileName string
98
- GithubExampleEventSourceObjectName string
99
- GithubExampleEventSourceEndpointPath string
100
- GithubExampleEventSourceTargetPort string
101
- GithubExampleEventSourceServicePort int32
102
- GithubExampleIngressFileName string
103
- GithubExampleIngressObjectName string
104
- GithubExampleSensorFileName string
105
- GithubExampleSensorObjectName string
106
- GithubExampleWfTemplateFileName string
107
- GithubExampleEventName string
108
- GithubExampleTriggerTemplateName string
109
- GithubExampleDependencyName string
110
- GithubAccessTokenSecretObjectName string
111
- GithubAccessTokenSecretKey string
112
- ArgoCD string
113
- Silent bool
114
- InsecureIngressHost bool
115
- BypassIngressClassCheck bool
116
- SkipIngress bool
117
- MinimumMemorySizeRequired string
118
- MinimumCpuRequired string
119
- MinimumLocalDiskSizeRequired string
120
- ReplicaSetResourceName string
121
- AnalysisRunResourceName string
122
- WorkflowResourceName string
123
- RequirementsLink string
124
- DownloadCliLink string
125
- RolloutReporterName string
126
- RolloutResourceName string
127
- RolloutReporterServiceAccount string
128
- SegmentWriteKey string
129
- DefaultNamespace string
130
- NetworkTesterName string
131
- NetworkTesterGenerateName string
132
- NetworkTesterImage string
133
- MinKubeVersion string
134
- MaxKubeVersion string
135
- MasterIngressName string
136
- InClusterPath string
137
- SccName string
138
- CFInternalGitSources []string
139
- CFInternalReporters []string
47
+ ArgoCDServerName string
48
+ ArgoCDTokenKey string
49
+ ArgoCDTokenSecret string
50
+ ArgoWFServiceName string
51
+ ArgoWFServicePort int32
52
+ BinaryName string
53
+ Codefresh string
54
+ CodefreshDeliveryPipelines string
55
+ CFComponentType string
56
+ CFGitSourceType string
57
+ CFRuntimeDefType string
58
+ CFRuntimeType string
59
+ CFTokenSecret string
60
+ CFTokenSecretKey string
61
+ CFStoreIVSecretKey string
62
+ CodefreshCM string
63
+ CodefreshSA string
64
+ ComponentsReporterName string
65
+ ComponentsReporterSA string
66
+ ComponentsReporterURL string
67
+ DefaultAPI string
68
+ EventBusName string
69
+ EventReportingEndpoint string
70
+ EventsReporterName string
71
+ GitSourceName string
72
+ WorkflowsIngressName string
73
+ WorkflowsIngressPath string
74
+ AppProxyIngressName string
75
+ AppProxyIngressPath string
76
+ AppProxyServicePort int32
77
+ AppProxyServiceName string
78
+ DocsLink string
79
+ LabelKeyCFType string
80
+ LabelKeyCFInternal string
81
+ MarketplaceGitSourceName string
82
+ MarketplaceRepo string
83
+ MaxDefVersion * semver.Version
84
+ RuntimeDefURL string
85
+ Version Version
86
+ WaitTimeout time.Duration
87
+ WorkflowName string
88
+ WorkflowReporterName string
89
+ WorkflowTriggerServiceAccount string
90
+ CronExampleSensorFileName string
91
+ CronExampleEventSourceFileName string
92
+ CronExampleWfTemplateFileName string
93
+ CronExampleEventSourceName string
94
+ CronExampleEventName string
95
+ CronExampleTriggerTemplateName string
96
+ CronExampleDependencyName string
97
+ GithubExampleEventSourceFileName string
98
+ GithubExampleEventSourceObjectName string
99
+ WebhooksRootPath string
100
+ GithubExampleEventSourceTargetPort string
101
+ GithubExampleEventSourceServicePort int32
102
+ GithubExampleIngressFileName string
103
+ GithubExampleIngressObjectName string
104
+ GithubExampleSensorFileName string
105
+ GithubExampleSensorObjectName string
106
+ GithubExampleWfTemplateFileName string
107
+ GithubExampleEventName string
108
+ GithubExampleTriggerTemplateName string
109
+ GithubExampleDependencyName string
110
+ GithubAccessTokenSecretObjectName string
111
+ GithubAccessTokenSecretKey string
112
+ GithubEventTypeHeader string
113
+ ArgoCD string
114
+ Silent bool
115
+ InsecureIngressHost bool
116
+ BypassIngressClassCheck bool
117
+ SkipIngress bool
118
+ MinimumMemorySizeRequired string
119
+ MinimumCpuRequired string
120
+ MinimumLocalDiskSizeRequired string
121
+ ReplicaSetResourceName string
122
+ AnalysisRunResourceName string
123
+ WorkflowResourceName string
124
+ RequirementsLink string
125
+ DownloadCliLink string
126
+ RolloutReporterName string
127
+ RolloutResourceName string
128
+ RolloutReporterServiceAccount string
129
+ SegmentWriteKey string
130
+ DefaultNamespace string
131
+ NetworkTesterName string
132
+ NetworkTesterGenerateName string
133
+ NetworkTesterImage string
134
+ MinKubeVersion string
135
+ MaxKubeVersion string
136
+ MasterIngressName string
137
+ InClusterPath string
138
+ SccName string
139
+ CFInternalGitSources []string
140
+ CFInternalReporters []string
140
141
}
141
142
142
143
// Get returns the global store
@@ -152,7 +153,8 @@ func init() {
152
153
s .ArgoWFServicePort = 2746
153
154
s .BinaryName = binaryName
154
155
s .Codefresh = "codefresh"
155
- s .CodefreshDeliveryPipelines = "codefresh-delivery-pipelines"
156
+ s .GitSourceName = "default-git-source"
157
+ s .CodefreshDeliveryPipelines = fmt .Sprintf ("%s-%s" , "cdp" , s .GitSourceName )
156
158
s .CFComponentType = "component"
157
159
s .CFGitSourceType = "git-source"
158
160
s .CFRuntimeDefType = "runtimeDef"
@@ -168,7 +170,6 @@ func init() {
168
170
s .EventBusName = "codefresh-eventbus"
169
171
s .EventReportingEndpoint = "/2.0/api/events"
170
172
s .EventsReporterName = "events-reporter"
171
- s .GitSourceName = "default-git-source"
172
173
s .WorkflowsIngressName = "-workflows-ingress"
173
174
s .WorkflowsIngressPath = "workflows"
174
175
s .AppProxyIngressName = "-cap-app-proxy"
@@ -195,19 +196,20 @@ func init() {
195
196
s .CronExampleDependencyName = "calendar-dep"
196
197
s .GithubExampleEventSourceFileName = "push-github.event-source.yaml"
197
198
s .GithubExampleEventSourceObjectName = "push-github"
198
- s .GithubExampleEventSourceEndpointPath = "/webhooks/push-github/ "
199
- s .GithubExampleEventSourceTargetPort = "13000 "
200
- s .GithubExampleEventSourceServicePort = 13000
199
+ s .WebhooksRootPath = "/webhooks"
200
+ s .GithubExampleEventSourceTargetPort = "80 "
201
+ s .GithubExampleEventSourceServicePort = 80
201
202
s .GithubExampleIngressFileName = fmt .Sprintf ("%s.ingress.yaml" , s .CodefreshDeliveryPipelines )
202
203
s .GithubExampleIngressObjectName = "github"
203
204
s .GithubExampleSensorFileName = "push-github.sensor.yaml"
204
205
s .GithubExampleSensorObjectName = "push-github"
205
206
s .GithubExampleWfTemplateFileName = "workflow-template.hello-world.yaml"
206
- s .GithubExampleEventName = "push"
207
+ s .GithubExampleEventName = "github- push-heads "
207
208
s .GithubExampleTriggerTemplateName = "hello-world"
208
- s .GithubExampleDependencyName = "github-dep "
209
+ s .GithubExampleDependencyName = "github-push-heads "
209
210
s .GithubAccessTokenSecretObjectName = "autopilot-secret"
210
211
s .GithubAccessTokenSecretKey = "git_token"
212
+ s .GithubEventTypeHeader = "X-GitHub-Event"
211
213
s .ArgoCD = "argo-cd"
212
214
s .RolloutResourceName = "rollouts"
213
215
s .ReplicaSetResourceName = "replicasets"
0 commit comments