Skip to content

Commit

Permalink
Added commity id to promote radix job, Removed not supported FileCach…
Browse files Browse the repository at this point in the history
…e blobfuse option (#958)
  • Loading branch information
satr authored Oct 18, 2023
1 parent 7c9e546 commit 88eb24c
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 37 deletions.
4 changes: 2 additions & 2 deletions charts/radix-operator/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: radix-operator
version: 1.23.9
appVersion: 1.43.9
version: 1.23.10
appVersion: 1.43.10
kubeVersion: ">=1.24.0"
description: Radix Operator
keywords:
Expand Down
10 changes: 0 additions & 10 deletions charts/radix-operator/templates/radixapplication.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -742,11 +742,6 @@ spec:
description: Enable streaming mode. Default
true.
type: boolean
fileCaching:
description: Optional. File name based caching.
Default is false which specifies file
handle based caching.
type: boolean
maxBlocksPerFile:
description: Optional. The maximum number
of blocks to be cached in memory.
Expand Down Expand Up @@ -1599,11 +1594,6 @@ spec:
description: Enable streaming mode. Default
true.
type: boolean
fileCaching:
description: Optional. File name based caching.
Default is false which specifies file
handle based caching.
type: boolean
maxBlocksPerFile:
description: Optional. The maximum number
of blocks to be cached in memory.
Expand Down
8 changes: 0 additions & 8 deletions json-schema/radixapplication.json
Original file line number Diff line number Diff line change
Expand Up @@ -725,10 +725,6 @@
"description": "Enable streaming mode. Default true.",
"type": "boolean"
},
"fileCaching": {
"description": "Optional. File name based caching. Default is false which specifies file handle based caching.",
"type": "boolean"
},
"maxBlocksPerFile": {
"description": "Optional. The maximum number of blocks to be cached in memory.",
"format": "int64",
Expand Down Expand Up @@ -1616,10 +1612,6 @@
"description": "Enable streaming mode. Default true.",
"type": "boolean"
},
"fileCaching": {
"description": "Optional. File name based caching. Default is false which specifies file handle based caching.",
"type": "boolean"
},
"maxBlocksPerFile": {
"description": "Optional. The maximum number of blocks to be cached in memory.",
"format": "int64",
Expand Down
4 changes: 0 additions & 4 deletions pkg/apis/deployment/volumemount.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ const (
csiStorageClassStreamingMaxBuffersMountOption = "max-buffers" // The total number of buffers to be cached in memory (in MB).
csiStorageClassStreamingBlockSizeMountOption = "block-size-mb" // The size of each block to be cached in memory (in MB).
csiStorageClassStreamingBufferSizeMountOption = "buffer-size-mb" // The size of each buffer to be cached in memory (in MB).
csiStorageClassStreamingFileCachingMountOption = "file-caching" // File name based caching. Default is false which specifies file handle based caching.
csiStorageClassProtocolParameter = "protocol" // Protocol
csiStorageClassProtocolParameterFuse = "fuse" // Protocol "blobfuse"
csiStorageClassProtocolParameterFuse2 = "fuse2" // Protocol "blobfuse2"
Expand Down Expand Up @@ -624,9 +623,6 @@ func getStreamingMountOptions(streaming *radixv1.RadixVolumeMountStreaming) []st
if streaming.MaxBlocksPerFile != nil {
mountOptions = append(mountOptions, fmt.Sprintf("--%s=%v", csiStorageClassStreamingMaxBlocksPerFileMountOption, *streaming.MaxBlocksPerFile))
}
if streaming.FileCaching != nil {
mountOptions = append(mountOptions, fmt.Sprintf("--%s=%v", csiStorageClassStreamingFileCachingMountOption, *streaming.FileCaching))
}
return mountOptions
}

Expand Down
6 changes: 2 additions & 4 deletions pkg/apis/deployment/volumemount_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ package deployment
import (
"context"
"fmt"
"github.com/equinor/radix-common/utils/pointers"
"strings"
"testing"

"github.com/equinor/radix-common/utils/pointers"

"github.com/equinor/radix-operator/pkg/apis/kube"
v1 "github.com/equinor/radix-operator/pkg/apis/radix/v1"
"github.com/equinor/radix-operator/pkg/apis/utils"
Expand Down Expand Up @@ -1068,7 +1069,6 @@ func (suite *VolumeMountTestSuite) Test_CreateOrUpdateCsiAzureResources() {
BufferSize: pointers.Ptr(uint64(103)),
MaxBuffers: pointers.Ptr(uint64(104)),
MaxBlocksPerFile: pointers.Ptr(uint64(105)),
FileCaching: pointers.Ptr(true),
}
}),
},
Expand Down Expand Up @@ -1096,7 +1096,6 @@ func (suite *VolumeMountTestSuite) Test_CreateOrUpdateCsiAzureResources() {
"--buffer-size-mb=103",
"--max-buffers=104",
"--max-blocks-per-file=105",
"--file-caching=true",
"--use-adls=false",
}
}),
Expand All @@ -1122,7 +1121,6 @@ func (suite *VolumeMountTestSuite) Test_CreateOrUpdateCsiAzureResources() {
BufferSize: pointers.Ptr(uint64(103)),
MaxBuffers: pointers.Ptr(uint64(104)),
MaxBlocksPerFile: pointers.Ptr(uint64(105)),
FileCaching: pointers.Ptr(true),
}
}),
},
Expand Down
3 changes: 0 additions & 3 deletions pkg/apis/radix/v1/radixapptypes.go
Original file line number Diff line number Diff line change
Expand Up @@ -852,9 +852,6 @@ type RadixVolumeMountStreaming struct {
// +kubebuilder:validation:Minimum=1
// +optional
MaxBlocksPerFile *uint64 `json:"maxBlocksPerFile,omitempty"`
// Optional. File name based caching. Default is false which specifies file handle based caching.
// +optional
FileCaching *bool `json:"fileCaching,omitempty"`
}

// MountType Holds types of mount
Expand Down
7 changes: 6 additions & 1 deletion pkg/apis/radix/v1/radixjobtypes.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,17 @@ type RadixPromoteSpec struct {
// Environment name, from which the Radix deployment is being promoted
//
// required: true

FromEnvironment string `json:"fromEnvironment" yaml:"fromEnvironment"`

// Environment name, to which the Radix deployment is being promoted
//
// required: true
ToEnvironment string `json:"toEnvironment" yaml:"toEnvironment"`

// CommitID of the promoted deployment
//
// required: false
CommitID string `json:"commitID" yaml:"commitID"`
}

// RadixDeploySpec is the spec for a deploy job
Expand Down
5 changes: 0 additions & 5 deletions pkg/apis/radix/v1/zz_generated.deepcopy.go

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

0 comments on commit 88eb24c

Please sign in to comment.