Skip to content

Commit

Permalink
fix schema
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha committed Oct 25, 2024
1 parent c9e36bb commit 0e51444
Show file tree
Hide file tree
Showing 5 changed files with 743 additions and 27 deletions.
19 changes: 16 additions & 3 deletions apis/installer/v1alpha1/ace_installer_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package v1alpha1
import (
configapi "go.bytebuilders.dev/resource-model/apis/config/v1alpha1"

core "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"kmodules.xyz/resource-metadata/apis/shared"
)
Expand Down Expand Up @@ -52,9 +53,21 @@ type AceInstallerSpec struct {
// +optional
DeploymentType DeploymentType `json:"deploymentType"`
shared.BootstrapPresets `json:",inline,omitempty"`
// +optional
Licenses map[string]string `json:"licenses,omitempty"`
SelfManagement configapi.SelfManagement `json:"selfManagement"`
SelfManagement configapi.SelfManagement `json:"selfManagement"`
Precheck AceInstallerPrecheckSpec `json:"precheck"`
}

type AceInstallerPrecheckSpec struct {
Enabled bool `json:"enabled"`
Image ImageReference `json:"image"`
PodAnnotations map[string]string `json:"podAnnotations"`
PodSecurityContext *core.PodSecurityContext `json:"podSecurityContext"`
SecurityContext *core.SecurityContext `json:"securityContext"`
Resources core.ResourceRequirements `json:"resources"`
//+optional
NodeSelector map[string]string `json:"nodeSelector"`
Tolerations []core.Toleration `json:"tolerations"`
Affinity *core.Affinity `json:"affinity"`
}

// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
Expand Down
55 changes: 51 additions & 4 deletions apis/installer/v1alpha1/zz_generated.deepcopy.go

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

8 changes: 2 additions & 6 deletions charts/ace-installer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,6 @@ The following table lists the configurable parameters of the `ace-installer` cha
| image.proxies.quay | quay.io/company/bin:tag | <code>quay.io</code> |
| image.proxies.kubernetes | registry.k8s.io/bin:tag | <code>registry.k8s.io</code> |
| image.proxies.microsoft | | <code>mcr.microsoft.com</code> |
| image.registry | Docker registry used to pull app container image | <code>appscode</code> |
| image.repository | App container image | <code>ace</code> |
| image.tag | Overrides the image tag whose default is the chart appVersion. | <code>""</code> |
| image.pullPolicy | | <code>Always</code> |
| registry.credentials | | <code>{}</code> |
| registry.certs | username: "abc" password: "xyz" | <code>{}</code> |
| registry.imagePullSecrets | ca.crt: "***" | <code>[]</code> |
Expand Down Expand Up @@ -110,8 +106,8 @@ The following table lists the configurable parameters of the `ace-installer` cha
| selfManagement.disableFeatures | | <code>[]</code> |
| precheck.enabled | | <code>true</code> |
| precheck.image.registry | Docker registry used to pull app container image | <code>appscode</code> |
| precheck.image.repository | App container image | <code>ace</code> |
| precheck.image.tag | Overrides the image tag whose default is the chart appVersion. | <code>"v0.1.0"</code> |
| precheck.image.repository | App container image | <code>b3</code> |
| precheck.image.tag | Overrides the image tag whose default is the chart appVersion. | <code>""</code> |
| precheck.image.pullPolicy | | <code>Always</code> |
| precheck.podAnnotations | | <code>{}</code> |
| precheck.podSecurityContext | | <code>{}</code> |
Expand Down
Loading

0 comments on commit 0e51444

Please sign in to comment.