Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f395a89

Browse files
Expose new replicas field
1 parent e51dca3 commit f395a89

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

‎api/v1alpha1/osrmcluster_types.go‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ type ProfilesSpec []*ProfileSpec
9595
type ProfileSpec struct {
9696
Name string `json:"name,omitempty"`
9797
EndpointName string `json:"endpointName,omitempty"`
98+
Replicas *int32 `json:"replicas,omitempty"`
9899
InternalEndpoint *string `json:"internalEndpoint,omitempty"`
99100
OSRMProfile *string `json:"osrmProfile,omitempty"`
100101
MinReplicas *int32 `json:"minReplicas,omitempty"`

‎internal/resource/deployment.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func (builder *DeploymentBuilder) Update(object client.Object, siblings []runtim
4949
deployment.ObjectMeta.Labels = metadata.GetLabels(builder.Instance, metadata.ComponentLabelProfile)
5050

5151
deployment.Spec = appsv1.DeploymentSpec{
52-
Replicas: profileSpec.MinReplicas,
52+
Replicas: profileSpec.Replicas,
5353
Selector: &metav1.LabelSelector{
5454
MatchLabels: map[string]string{
5555
"app": name,

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /