Skip to content

Commit 81abef1

Browse files
Add actionType in ace-options
Signed-off-by: Arnob Kumar Saha <arnob@appscode.com>
1 parent 88e574a commit 81abef1

4 files changed

Lines changed: 24 additions & 0 deletions

File tree

apis/installer/v1alpha1/ace_options_types.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,8 +435,19 @@ func (a AceOptionsSpec) DevDeployment() bool {
435435
strings.HasSuffix(a.InitialSetup.Admin.Email, "@appscode.com")
436436
}
437437

438+
// +kubebuilder:validation:Enum=Create;Reconfigure;Upgrade;PromoteToProd
439+
type ActionType string
440+
441+
const (
442+
ActionTypeCreate ActionType = "Create"
443+
ActionTypeReconfigure ActionType = "Reconfigure"
444+
ActionTypeUpgrade ActionType = "Upgrade"
445+
ActionTypePromoteToProd ActionType = "PromoteToProd"
446+
)
447+
438448
type AceDeploymentContext struct {
439449
DeploymentType DeploymentType `json:"deploymentType"`
450+
ActionType ActionType `json:"actionType"`
440451
InstallerName string `json:"installerName"`
441452
UploadID string `json:"uploadID"`
442453
Version string `json:"version"`

charts/ace-installer/templates/featuresets/opscenter-security/cert-manager/cert-manager.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,10 @@ spec:
8888
dependsOn:
8989
- name: opscenter-features
9090
namespace: {{ $.Release.Namespace }}
91+
{{- if eq (include "distro.openshift" $) "false" }}
9192
- name: gateway-api
9293
namespace: {{ $.Release.Namespace }}
94+
{{- end }}
9395
chart:
9496
spec:
9597
chart: cert-manager

charts/ace-installer/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ helm:
7878
gateway-api:
7979
enabled: true
8080
version: "v2025.3.14"
81+
gateway-api-crds:
82+
enabled: true
83+
version: v1.4.1
8184
kubedb:
8285
enabled: true
8386
version: "v2026.2.26"

schema/ace-options/values.openapiv3_schema.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,13 @@ properties:
113113
type: object
114114
context:
115115
properties:
116+
actionType:
117+
enum:
118+
- Create
119+
- Reconfigure
120+
- Upgrade
121+
- PromoteToProd
122+
type: string
116123
adminPassword:
117124
type: string
118125
backupPassword:
@@ -320,6 +327,7 @@ properties:
320327
version:
321328
type: string
322329
required:
330+
- actionType
323331
- deploymentType
324332
- inboxServer
325333
- installerName

0 commit comments

Comments
 (0)