Skip to content

Commit

Permalink
Relax schema for openshifter mode (#156)
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha authored Nov 27, 2024
1 parent 4a789b8 commit d780007
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 31 deletions.
14 changes: 9 additions & 5 deletions apis/installer/v1alpha1/voyager_gateway_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,15 +139,19 @@ type LoggingLevel struct {
}

type CertgenSpec struct {
Job CertgenJobSpec `json:"job"`
Job CertgenJobSpec `json:"job"`
// +optional
Rbac CertgenRbacMetadata `json:"rbac"`
}

type CertgenJobSpec struct {
Annotations map[string]string `json:"annotations"`
Resources core.ResourceRequirements `json:"resources"`
TtlSecondsAfterFinished int `json:"ttlSecondsAfterFinished"`
SecurityContext *core.SecurityContext `json:"securityContext,omitempty"`
// +optional
Annotations map[string]string `json:"annotations"`
// +optional
Resources core.ResourceRequirements `json:"resources"`
// +optional
TtlSecondsAfterFinished int `json:"ttlSecondsAfterFinished"`
SecurityContext *core.SecurityContext `json:"securityContext,omitempty"`
}

type CertgenRbacMetadata struct {
Expand Down
7 changes: 5 additions & 2 deletions apis/installer/v1alpha1/voyager_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,12 @@ type VoyagerSpec struct {
}

type ImageRef struct {
Registry string `json:"registry"`
// +optional
Registry string `json:"registry"`
// +optional
Repository string `json:"repository"`
Tag string `json:"tag"`
// +optional
Tag string `json:"tag"`
}

type CleanerRef struct {
Expand Down
4 changes: 0 additions & 4 deletions charts/gateway-converter/values.openapiv3_schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1393,10 +1393,6 @@ properties:
type: object
tag:
type: string
required:
- registry
- repository
- tag
type: object
serviceAccount:
properties:
Expand Down
9 changes: 0 additions & 9 deletions charts/voyager-gateway/values.openapiv3_schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -236,10 +236,6 @@ properties:
type: object
ttlSecondsAfterFinished:
type: integer
required:
- annotations
- resources
- ttlSecondsAfterFinished
type: object
rbac:
properties:
Expand All @@ -257,7 +253,6 @@ properties:
type: object
required:
- job
- rbac
type: object
config:
properties:
Expand Down Expand Up @@ -3200,10 +3195,6 @@ properties:
type: object
tag:
type: string
required:
- registry
- repository
- tag
type: object
serviceAccount:
properties:
Expand Down
11 changes: 0 additions & 11 deletions charts/voyager/values.openapiv3_schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -973,10 +973,7 @@ properties:
tag:
type: string
required:
- registry
- repository
- skip
- tag
type: object
cloudConfig:
type: string
Expand All @@ -994,10 +991,6 @@ properties:
type: string
tag:
type: string
required:
- registry
- repository
- tag
type: object
imagePullPolicy:
type: string
Expand Down Expand Up @@ -1240,10 +1233,6 @@ properties:
type: object
tag:
type: string
required:
- registry
- repository
- tag
type: object
persistence:
properties:
Expand Down

0 comments on commit d780007

Please sign in to comment.