Skip to content
Open
Show file tree
Hide file tree
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions api/v1beta1/argocd_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,9 @@ type ArgoCDRedisSpec struct {

// Remote specifies the remote URL of the Redis container. (optional, by default, a local instance managed by the operator is used.)
Remote *string `json:"remote,omitempty"`

// TlsConfig defines the TLS configuration for the Redis server
TlsConfig *ArgoCDTlsConfig `json:"tlsConfig,omitempty"`
}

func (a *ArgoCDRedisSpec) IsEnabled() bool {
Expand Down Expand Up @@ -600,6 +603,18 @@ type ArgoCDRepoSpec struct {

// Custom certificates to inject into the repo server container and its plugins to trust source hosting sites
SystemCATrust *ArgoCDSystemCATrustSpec `json:"systemCATrust,omitempty"`
// TLS configuration for the repo server
TlsConfig *ArgoCDTlsConfig `json:"tlsConfig,omitempty"`
}

type ArgoCDTlsConfig struct {
// +kubebuilder:validation:Optional
// +kubebuilder:validation:Enum="1.1";"1.2";"1.3";"tls1.1";"tls1.2";"tls1.3";"TLSv1.1";"TLSv1.2";"TLSv1.3"
MinVersion string `json:"minVersion,omitempty"`
// +kubebuilder:validation:Optional
// +kubebuilder:validation:Enum="1.1";"1.2";"1.3";"TLSv1.1";"TLSv1.2";"TLSv1.3";"tls1.1";"tls1.2";"tls1.3"
MaxVersion string `json:"maxVersion,omitempty"`
CipherSuites []string `json:"cipherSuites,omitempty"`
}

func (a *ArgoCDRepoSpec) IsEnabled() bool {
Expand Down Expand Up @@ -734,6 +749,8 @@ type ArgoCDServerSpec struct {

// Custom labels to pods deployed by the operator
Labels map[string]string `json:"labels,omitempty"`
// TLS configuration for the Argo CD Server component
TlsConfig *ArgoCDTlsConfig `json:"tlsConfig,omitempty"`
}

func (a *ArgoCDServerSpec) IsEnabled() bool {
Expand Down Expand Up @@ -1361,6 +1378,8 @@ type PrincipalTLSSpec struct {

// InsecureGenerate is the flag to allow the principal to generate its own set of TLS cert and key on startup when none are configured
InsecureGenerate *bool `json:"insecureGenerate,omitempty"`
// TLS configuration for the repo server
TlsConfig *ArgoCDTlsConfig `json:"tlsConfig,omitempty"`
}

// ArgoCDAgentPrincipalServiceSpec defines the options for the Service backing the ArgoCD Agent Principalcomponent.
Expand Down
40 changes: 40 additions & 0 deletions api/v1beta1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

129 changes: 129 additions & 0 deletions bundle/manifests/argoproj.io_argocds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11920,6 +11920,38 @@ spec:
description: SecretName is The name of the secret containing
the TLS certificate and key.
type: string
tlsConfig:
description: TLS configuration for the repo server
properties:
cipherSuites:
items:
type: string
type: array
maxVersion:
enum:
- "1.1"
- "1.2"
- "1.3"
- TLSv1.1
- TLSv1.2
- TLSv1.3
- tls1.1
- tls1.2
- tls1.3
type: string
minVersion:
enum:
- "1.1"
- "1.2"
- "1.3"
- tls1.1
- tls1.2
- tls1.3
- TLSv1.1
- TLSv1.2
- TLSv1.3
type: string
type: object
type: object
type: object
type: object
Expand Down Expand Up @@ -18656,6 +18688,39 @@ spec:
More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
type: object
type: object
tlsConfig:
description: TlsConfig defines the TLS configuration for the Redis
server
properties:
cipherSuites:
items:
type: string
type: array
maxVersion:
enum:
- "1.1"
- "1.2"
- "1.3"
- TLSv1.1
- TLSv1.2
- TLSv1.3
- tls1.1
- tls1.2
- tls1.3
type: string
minVersion:
enum:
- "1.1"
- "1.2"
- "1.3"
- tls1.1
- tls1.2
- tls1.3
- TLSv1.1
- TLSv1.2
- TLSv1.3
type: string
type: object
version:
description: Version is the Redis container image tag.
type: string
Expand Down Expand Up @@ -22240,6 +22305,38 @@ spec:
x-kubernetes-map-type: atomic
type: array
type: object
tlsConfig:
description: TLS configuration for the repo server
properties:
cipherSuites:
items:
type: string
type: array
maxVersion:
enum:
- "1.1"
- "1.2"
- "1.3"
- TLSv1.1
- TLSv1.2
- TLSv1.3
- tls1.1
- tls1.2
- tls1.3
type: string
minVersion:
enum:
- "1.1"
- "1.2"
- "1.3"
- tls1.1
- tls1.2
- tls1.3
- TLSv1.1
- TLSv1.2
- TLSv1.3
type: string
type: object
verifytls:
description: VerifyTLS defines whether repo server API should
be accessed using strict TLS validation
Expand Down Expand Up @@ -27920,6 +28017,38 @@ spec:
- name
type: object
type: array
tlsConfig:
description: TLS configuration for the Argo CD Server component
properties:
cipherSuites:
items:
type: string
type: array
maxVersion:
enum:
- "1.1"
- "1.2"
- "1.3"
- TLSv1.1
- TLSv1.2
- TLSv1.3
- tls1.1
- tls1.2
- tls1.3
type: string
minVersion:
enum:
- "1.1"
- "1.2"
- "1.3"
- tls1.1
- tls1.2
- tls1.3
- TLSv1.1
- TLSv1.2
- TLSv1.3
type: string
type: object
volumeMounts:
description: VolumeMounts adds volumeMounts to the Argo CD Server
container.
Expand Down
Loading
Loading