Skip to content

Commit 0cbc1e1

Browse files
authored
[Feature] Configurable foxx services (#611)
1 parent b6ebb23 commit 0cbc1e1

File tree

7 files changed

+734
-58
lines changed

7 files changed

+734
-58
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
//
2+
// DISCLAIMER
3+
//
4+
// Copyright 2020 ArangoDB GmbH, Cologne, Germany
5+
//
6+
// Licensed under the Apache License, Version 2.0 (the "License");
7+
// you may not use this file except in compliance with the License.
8+
// You may obtain a copy of the License at
9+
//
10+
// http://www.apache.org/licenses/LICENSE-2.0
11+
//
12+
// Unless required by applicable law or agreed to in writing, software
13+
// distributed under the License is distributed on an "AS IS" BASIS,
14+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
// See the License for the specific language governing permissions and
16+
// limitations under the License.
17+
//
18+
// Copyright holder is ArangoDB GmbH, Cologne, Germany
19+
//
20+
// Author Ewout Prangsma
21+
//
22+
23+
package v1
24+
25+
type DeploymentFeatures struct {
26+
FoxxQueues *bool `json:"foxx.queues,omitempty"`
27+
}
28+
29+
// GetFoxxQueues return if foxx queues are enabled. Defaults to true.
30+
func (d *DeploymentFeatures) GetFoxxQueues() bool {
31+
if d == nil || d.FoxxQueues == nil {
32+
return true
33+
}
34+
35+
return *d.FoxxQueues
36+
}

pkg/apis/deployment/v1/deployment_spec.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ type DeploymentSpec struct {
6060
DowntimeAllowed *bool `json:"downtimeAllowed,omitempty"`
6161
DisableIPv6 *bool `json:"disableIPv6,omitempty"`
6262

63+
Features *DeploymentFeatures `json:"features,omitempty"`
64+
6365
NetworkAttachedVolumes *bool `json:"networkAttachedVolumes,omitempty"`
6466

6567
// Annotations specified the annotations added to all resources

pkg/apis/deployment/v1/zz_generated.deepcopy.go

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

0 commit comments

Comments
 (0)