Skip to content

Commit 17dcb14

Browse files
authored
Fix aceshifter schema (#645)
Signed-off-by: Tamal Saha <tamal@appscode.com>
1 parent 278dc51 commit 17dcb14

5 files changed

Lines changed: 1047 additions & 13 deletions

File tree

apis/installer/v1alpha1/aceshifter_types.go

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,14 @@ type AceshifterSpec struct {
5050
FullnameOverride string `json:"fullnameOverride"`
5151
//+optional
5252
RegistryFQDN string `json:"registryFQDN"`
53+
ReplicaCount int32 `json:"replicaCount"`
5354
Image ImageReference `json:"image"`
5455
//+optional
5556
ImagePullSecrets []string `json:"imagePullSecrets"`
56-
Args []string `json:"args"`
5757
//+optional
5858
PodAnnotations map[string]string `json:"podAnnotations"`
59+
//+optional
60+
PodLabels map[string]string `json:"podLabels"`
5961
// PodSecurityContext holds pod-level security attributes and common container settings.
6062
// Optional: Defaults to empty. See type description for default values of each field.
6163
// +optional
@@ -72,6 +74,14 @@ type AceshifterSpec struct {
7274
// If specified, the pod's scheduling constraints
7375
// +optional
7476
Affinity *core.Affinity `json:"affinity"`
77+
// +optional
78+
LivenessProbe *core.Probe `json:"livenessProbe"`
79+
// +optional
80+
ReadinessProbe *core.Probe `json:"readinessProbe"`
81+
Service AceServiceSpec `json:"service"`
82+
ServiceAccount ServiceAccountSpec `json:"serviceAccount"`
83+
Volumes []core.Volume `json:"volumes"`
84+
VolumeMounts []core.VolumeMount `json:"volumeMounts"`
7585
}
7686

7787
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

apis/installer/v1alpha1/register.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ func Resource(resource string) schema.GroupResource {
5454
// Adds the list of known types to api.Scheme.
5555
func addKnownTypes(scheme *runtime.Scheme) error {
5656
scheme.AddKnownTypes(SchemeGroupVersion,
57-
&AccountsUi{},
58-
&AccountsUiList{},
5957
&Acaas{},
6058
&AcaasList{},
59+
&AccountsUi{},
60+
&AccountsUiList{},
6161
&Ace{},
6262
&AceList{},
6363
&AceInstaller{},

apis/installer/v1alpha1/types_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ func TestDefaultValues(t *testing.T) {
3333
sc.TestCase{Obj: v1alpha1.AcaasSpec{}},
3434
sc.TestCase{Obj: v1alpha1.AccountsUiSpec{}},
3535
sc.TestCase{Obj: v1alpha1.AceInstallerSpec{}},
36+
sc.TestCase{Obj: v1alpha1.AceshifterSpec{}},
3637
sc.TestCase{Obj: v1alpha1.AceSpec{}},
3738
sc.TestCase{Obj: v1alpha1.BillingSpec{}},
3839
sc.TestCase{Obj: v1alpha1.BillingUiSpec{}},

apis/installer/v1alpha1/zz_generated.deepcopy.go

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

0 commit comments

Comments
 (0)