Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
11 changes: 8 additions & 3 deletions apis/wizards/v1alpha1/kubedbcom_oracle_editor_options_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,10 @@ type KubedbcomOracleEditorOptionsSpecSpec struct {
// +optional
Annotations map[string]string `json:"annotations"`
// +optional
Labels map[string]string `json:"labels"`
Mode OracleMode `json:"mode"`
DataGuard *DataGuardSpec `json:"dataGuard,omitempty"`
Labels map[string]string `json:"labels"`
Mode OracleMode `json:"mode"`
DataGuard *DataGuardSpec `json:"dataGuard,omitempty"`
RegistrySecret RegistrySecret `json:"registrySecret"`
// +optional
Replicas int `json:"replicas,omitempty"`
Persistence Persistence `json:"persistence"`
Expand Down Expand Up @@ -76,6 +77,10 @@ type DataGuardSpec struct {
Observer *OracleObserver `json:"observer,omitempty"`
}

type RegistrySecret struct {
Name string `json:"name"`
}

// +kubebuilder:validation:Enum=MaximumAvailability;MaximumPerformance;MaximumProtection
type ProtectionMode string

Expand Down
17 changes: 17 additions & 0 deletions apis/wizards/v1alpha1/zz_generated.deepcopy.go

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

1 change: 1 addition & 0 deletions charts/kubedbcom-oracle-editor-options/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ The following table lists the configurable parameters of the `kubedbcom-oracle-e
| spec.dataGuard.protectionMode | | <code>MaximumProtection</code> |
| spec.dataGuard.standbyType | | <code>PHYSICAL</code> |
| spec.dataGuard.syncMode | | <code>SYNC</code> |
| spec.registrySecret.name | | <code>""</code> |
| spec.deletionPolicy | | <code>WipeOut</code> |
| spec.persistence.size | | <code>4Gi</code> |
| spec.podResources.machine | | <code>""</code> |
Expand Down
8 changes: 8 additions & 0 deletions charts/kubedbcom-oracle-editor-options/templates/db.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ spec:
storageType: Durable
podTemplate:
spec:
{{- if .Values.spec.registrySecret.name }}
imagePullSecrets:
- name: {{ .Values.spec.registrySecret.name }}
{{- end }}
securityContext:
fsGroup: {{ .Values.spec.openshift.securityContext.runAsUser | default 54321 }}
containers:
Expand Down Expand Up @@ -129,6 +133,10 @@ spec:
storageType: Durable
podTemplate:
spec:
{{- if .Values.spec.registrySecret.name }}
imagePullSecrets:
- name: {{ .Values.spec.registrySecret.name }}
{{- end }}
securityContext:
fsGroup: {{ .Values.spec.openshift.securityContext.runAsUser | default 54321 }}
containers:
Expand Down
4 changes: 4 additions & 0 deletions charts/kubedbcom-oracle-editor-options/ui/create-ui.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ step:
type: input
showLabels: true
type: horizontal-layout
- type: select
label: Registry Secret
schema: schema/properties/spec/properties/registrySecret/properties/name
loader: getSecrets
- description: Configure Credentials, Deployment Mode etc.
elements:
- elements:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1735,6 +1735,13 @@ properties:
- machine
- resources
type: object
registrySecret:
properties:
name:
type: string
required:
- name
type: object
replicas:
type: integer
required:
Expand All @@ -1747,6 +1754,7 @@ properties:
- monitoring
- persistence
- podResources
- registrySecret
type: object
required:
- spec
Expand Down
2 changes: 2 additions & 0 deletions charts/kubedbcom-oracle-editor-options/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ spec:
standbyType: PHYSICAL
syncMode: SYNC

registrySecret:
name: ""
deletionPolicy: WipeOut

persistence:
Expand Down
4 changes: 2 additions & 2 deletions charts/uikubedbcom-databaseinfo-editor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ The following table lists the configurable parameters of the `uikubedbcom-databa
| Parameter | Description | Default |
|--------------------|-------------|-------------------------------------|
| apiVersion | | <code>ui.kubedb.com/v1alpha1</code> |
| kind | | <code>DatabaseInfo</code> |
| metadata.name | | <code>databaseinfo</code> |
| kind | | <code>DatabaseConfiguration</code> |
| metadata.name | | <code>databaseconfiguration</code> |
| metadata.namespace | | <code>default</code> |


Expand Down
Loading