-
Notifications
You must be signed in to change notification settings - Fork 1k
feat: Add switch for Route and Service for Principal #1925
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1067,6 +1067,14 @@ type PrincipalServerSpec struct { | |
|
|
||
| // Env lets you specify environment for principal pods | ||
| Env []corev1.EnvVar `json:"env,omitempty"` | ||
|
|
||
| // Service defines the options for the Service backing the ArgoCD Agent component. | ||
| // If not set, type ClusterIP will be used by default. | ||
| Service ArgoCDAgentPrincipalServiceSpec `json:"service,omitempty"` | ||
|
|
||
| // Route defines the options for the Route backing the ArgoCD Agent component. | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can add a comment like 'If Route is not specified, a default of ... will be used' |
||
| // Route is disabled only when explicitly configured with Enabled: false | ||
| Route ArgoCDAgentPrincipalRouteSpec `json:"route,omitempty"` | ||
| } | ||
|
|
||
| type PrincipalRedisSpec struct { | ||
|
|
@@ -1123,6 +1131,20 @@ type PrincipalTLSSpec struct { | |
| InsecureGenerate *bool `json:"insecureGenerate,omitempty"` | ||
| } | ||
|
|
||
| // ArgoCDAgentPrincipalServiceSpec defines the options for the Service backing the ArgoCD Agent Principal component. | ||
| type ArgoCDAgentPrincipalServiceSpec struct { | ||
| // Type is the ServiceType to use for the Service resource. | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can add a comment indicating what the default is for this field. Something like 'if type is not specified, the default of 'ClusterIP' will be used' |
||
| // If not set, type ClusterIP will be used by default. | ||
| Type corev1.ServiceType `json:"type"` | ||
| } | ||
|
|
||
| // ArgoCDAgentPrincipalRouteSpec defines the options for the Route backing the ArgoCD Agent Principal component. | ||
| type ArgoCDAgentPrincipalRouteSpec struct { | ||
| // Enabled will toggle the creation of the OpenShift Route, ignored in case of non OpenShift cluster. | ||
| // Route is disabled only when explicitly configured with false | ||
| Enabled *bool `json:"enabled,omitempty"` | ||
| } | ||
|
|
||
| func (a *PrincipalSpec) IsEnabled() bool { | ||
| return a.Enabled != nil && *a.Enabled | ||
| } | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can add a comment like: 'if Service is not defined, a default of ClusterIP will be used'