Skip to content

Commit 82a8a52

Browse files
committed
feat: extend config
1 parent 11f157b commit 82a8a52

File tree

5 files changed

+61
-2
lines changed

5 files changed

+61
-2
lines changed

api/crds/manifests/gateway.openmcp.cloud_gatewayserviceconfigs.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,21 @@ spec:
9393
chart:
9494
description: Chart configuration for Envoy Gateway.
9595
properties:
96+
secretRef:
97+
description: |-
98+
SecretRef specifies the Secret containing authentication credentials
99+
for the OCIRepository.
100+
For HTTP/S basic auth the secret must contain 'username' and 'password'
101+
fields.
102+
Support for TLS auth using the 'certFile' and 'keyFile', and/or 'caFile'
103+
keys is deprecated. Please use `.spec.certSecretRef` instead.
104+
properties:
105+
name:
106+
description: Name of the referent.
107+
type: string
108+
required:
109+
- name
110+
type: object
96111
tag:
97112
description: 'Tag of the chart. Example: 1.5.4'
98113
minLength: 1
@@ -112,6 +127,21 @@ spec:
112127
gateway:
113128
description: 'EnvoyGateway image. Example: docker.io/envoyproxy/gateway:v1.5.1'
114129
type: string
130+
imagePullSecrets:
131+
description: |-
132+
ImagePullSecrets specifies the Secrets containing authentication credentials
133+
for the Envoy Gateway deployment.
134+
items:
135+
description: LocalObjectReference contains enough information
136+
to locate the referenced Kubernetes resource object.
137+
properties:
138+
name:
139+
description: Name of the referent.
140+
type: string
141+
required:
142+
- name
143+
type: object
144+
type: array
115145
proxy:
116146
description: 'EnvoyProxy image. Example: docker.io/envoyproxy/envoy:distroless-v1.35.3'
117147
type: string

api/gateway/v1alpha1/config_types.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package v1alpha1
22

33
import (
4+
"github.com/fluxcd/pkg/apis/meta"
45
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
56
)
67

@@ -60,6 +61,15 @@ type EnvoyGatewayChart struct {
6061
// +kubebuilder:validation:Required
6162
// +kubebuilder:validation:MinLength=1
6263
Tag string `json:"tag"`
64+
65+
// SecretRef specifies the Secret containing authentication credentials
66+
// for the OCIRepository.
67+
// For HTTP/S basic auth the secret must contain 'username' and 'password'
68+
// fields.
69+
// Support for TLS auth using the 'certFile' and 'keyFile', and/or 'caFile'
70+
// keys is deprecated. Please use `.spec.certSecretRef` instead.
71+
// +optional
72+
SecretRef *meta.LocalObjectReference `json:"secretRef,omitempty"`
6373
}
6474

6575
type ImagesConfig struct {
@@ -71,6 +81,11 @@ type ImagesConfig struct {
7181

7282
// Ratelimit image. Example: docker.io/envoyproxy/ratelimit:e74a664a
7383
Ratelimit string `json:"rateLimit"`
84+
85+
// ImagePullSecrets specifies the Secrets containing authentication credentials
86+
// for the Envoy Gateway deployment.
87+
// +optional
88+
ImagePullSecrets []meta.LocalObjectReference `json:"imagePullSecrets,omitempty"`
7489
}
7590

7691
type DNSConfig struct {

api/gateway/v1alpha1/zz_generated.deepcopy.go

Lines changed: 13 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ module github.com/openmcp-project/platform-service-gateway/api
33
go 1.25.3
44

55
require (
6+
github.com/fluxcd/pkg/apis/meta v1.22.0
67
github.com/openmcp-project/controller-utils v0.23.3
78
github.com/openmcp-project/openmcp-operator/api v0.16.0
89
k8s.io/apiextensions-apiserver v0.34.1

api/go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ github.com/evanphx/json-patch v4.12.0+incompatible h1:4onqiflcdA9EOZ4RxV643DvftH
1414
github.com/evanphx/json-patch v4.12.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk=
1515
github.com/evanphx/json-patch/v5 v5.9.11 h1:/8HVnzMq13/3x9TPvjG08wUGqBTmZBsCWzjTM0wiaDU=
1616
github.com/evanphx/json-patch/v5 v5.9.11/go.mod h1:3j+LviiESTElxA4p3EMKAB9HXj3/XEtnUf6OZxqIQTM=
17+
github.com/fluxcd/pkg/apis/meta v1.22.0 h1:EHWQH5ZWml7i8eZ/AMjm1jxid3j/PQ31p+hIwCt6crM=
18+
github.com/fluxcd/pkg/apis/meta v1.22.0/go.mod h1:Kc1+bWe5p0doROzuV9XiTfV/oL3ddsemYXt8ZYWdVVg=
1719
github.com/fsnotify/fsnotify v1.9.0 h1:2Ml+OJNzbYCTzsxtv8vKSFD9PbJjmhYF14k/jKC7S9k=
1820
github.com/fsnotify/fsnotify v1.9.0/go.mod h1:8jBTzvmWwFyi3Pb8djgCCO5IBqzKJ/Jwo8TRcHyHii0=
1921
github.com/fxamacker/cbor/v2 v2.9.0 h1:NpKPmjDBgUfBms6tr6JZkTHtfFGcMKsw3eGcmD/sapM=

0 commit comments

Comments
 (0)