Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cli/cmd/version_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const (
testVersionValue = "1.0.0"
testGoVersion = "go1.19"
testAPIVersion = "v1"
testLongVersion = "26.06.0-custom+20250101"
testLongVersion = "26.06.1-custom+20250101"
)

func withVersionTestMode(clientOnlyVal bool, operatingMode, outputFormat string, fn func()) {
Expand Down
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ const (
OrchestratorName = "trident"
OrchestratorClientName = OrchestratorName + "ctl"
OrchestratorAPIVersion = "1"
DefaultOrchestratorVersion = "26.06.0"
DefaultOrchestratorVersion = "26.06.1"
PersistentStoreBootstrapAttempts = 30
PersistentStoreBootstrapTimeout = PersistentStoreBootstrapAttempts * time.Second
PersistentStoreTimeout = 10 * time.Second
Expand Down
2 changes: 1 addition & 1 deletion deploy/bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ spec:
fieldPath: metadata.name
- name: OPERATOR_NAME
value: trident-operator
image: docker.io/netapp/trident-operator:26.06.0
image: docker.io/netapp/trident-operator:26.06.1
imagePullPolicy: IfNotPresent
name: trident-operator
resources:
Expand Down
4 changes: 2 additions & 2 deletions deploy/crds/tridentorchestrator_cr_imagepullsecrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ metadata:
spec:
debug: true
namespace: trident
tridentImage: netapp/trident:26.06.0
tridentImage: netapp/trident:26.06.1
imagePullSecrets:
- thisisasecret
- thisisasecret
6 changes: 3 additions & 3 deletions deploy/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ spec:
serviceAccountName: trident-operator
containers:
- name: trident-operator
image: docker.io/netapp/trident-operator:26.06.0
image: docker.io/netapp/trident-operator:26.06.1
command:
- "/trident-operator"
- "--debug"
- "/trident-operator"
- "--debug"
imagePullPolicy: IfNotPresent
securityContext:
readOnlyRootFilesystem: true
Expand Down
6 changes: 3 additions & 3 deletions frontend/csi/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ func ensureLUKSVolumePassphrase(
Logc(ctx).WithFields(LogFields{
"volume": volumeId,
}).Debugf("Current LUKS passphrase name '%s'.", luksPassphraseName)
// Disabled in all supported versions until 26.06.0. Users must track LUKS passphrases for volumes.
// Disabled in all supported versions until 26.06.1. Users must track LUKS passphrases for volumes.
// if forceUpdate {
// luksPassphraseNames := []string{luksPassphraseName}
// err = restClient.UpdateVolumeLUKSPassphraseNames(ctx, volumeId, luksPassphraseNames)
Expand Down Expand Up @@ -421,7 +421,7 @@ func ensureLUKSVolumePassphrase(
"volume": volumeId,
}).Debugf("Current LUKS passphrase name '%s'.", previousLUKSPassphraseName)

// Disabled in all supported versions until 26.06.0. Users must track LUKS passphrases for volumes.
// Disabled in all supported versions until 26.06.1. Users must track LUKS passphrases for volumes.
// Send up current and previous passphrase names, if rotation fails
// luksPassphraseNames := []string{luksPassphraseName, previousLUKSPassphraseName}
// err = restClient.UpdateVolumeLUKSPassphraseNames(ctx, volumeId, luksPassphraseNames)
Expand Down Expand Up @@ -449,7 +449,7 @@ func ensureLUKSVolumePassphrase(
// isCurrent, err := luksDevice.CheckPassphrase(ctx, luksPassphrase)
// if err != nil {
// return fmt.Errorf("could not check current passphrase for LUKS volume; %v", err)
// Disabled in all supported versions until 26.06.0. Users must track LUKS passphrases for volumes.
// Disabled in all supported versions until 26.06.1. Users must track LUKS passphrases for volumes.
// } else if isCurrent {
// // Send only current passphrase up
// luksPassphraseNames = []string{luksPassphraseName}
Expand Down
2 changes: 1 addition & 1 deletion hack/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
26.06.0
26.06.1
4 changes: 2 additions & 2 deletions helm/trident-operator/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: trident-operator
version: 100.2606.0 # Some services require a semver here: "100.<CalVer>"
version: 100.2606.1 # Some services require a semver here: "100.<CalVer>"
kubeVersion: ">= 1.24.0-0"
description: "A Helm chart for deploying NetApp's Trident CSI storage provisioner using the Trident Operator."
type: application
Expand All @@ -11,4 +11,4 @@ icon: "https://raw.githubusercontent.com/NetApp/trident/master/logo/trident.png"
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
appVersion: 26.06.0
appVersion: 26.06.1
2 changes: 1 addition & 1 deletion helm/trident-operator/templates/NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Thank you for installing {{ .Chart.Name }}, which will deploy and manage NetApp's Trident CSI
storage provisioner for Kubernetes.

Your release is named '{{ .Release.Name }}' and is installed into the '{{ .Release.Namespace }}' namespace.
Your release is named '{{ .Release.Name }}' and is installed into the '{{ include "trident.namespace" . }}' namespace.
Please note that there must be only one instance of Trident (and trident-operator) in a Kubernetes cluster.

To configure Trident to manage storage resources, you will now need to configure at least one storage
Expand Down
9 changes: 8 additions & 1 deletion helm/trident-operator/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@ app.kubernetes.io/name: {{ include "trident.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}

{{/*
Resolve namespace for namespaced resources.
*/}}
{{- define "trident.namespace" -}}
{{- default .Release.Namespace .Values.namespace -}}
{{- end }}

{{/*
Trident operator level
*/}}
Expand Down Expand Up @@ -225,7 +232,7 @@ Override auto-detection and force install the roles by setting Values.forceInsta
*/}}
{{- define "shouldInstallRancherRoles" -}}
{{- $isRancher := false -}}
{{- $currentNs := .Release.Namespace -}}
{{- $currentNs := include "trident.namespace" . -}}
{{- $currentNsObj := lookup "v1" "Namespace" "" $currentNs -}}
{{- /* Check if 'forceInstallRancherClusterRoles' is set */ -}}
{{- if .Values.forceInstallRancherClusterRoles }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ roleRef:
subjects:
- kind: ServiceAccount
name: trident-operator
namespace: {{ .Release.Namespace }}
namespace: {{ include "trident.namespace" . }}
{{- end }}
2 changes: 1 addition & 1 deletion helm/trident-operator/templates/clusterrolebinding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
subjects:
- kind: ServiceAccount
name: trident-operator
namespace: {{ .Release.Namespace }}
namespace: {{ include "trident.namespace" . }}
roleRef:
kind: ClusterRole
name: trident-operator
Expand Down
2 changes: 1 addition & 1 deletion helm/trident-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ metadata:
labels:
app: operator.trident.netapp.io
name: trident-operator
namespace: {{ .Release.Namespace }}
namespace: {{ include "trident.namespace" . }}
spec:
replicas: 1
strategy:
Expand Down
9 changes: 9 additions & 0 deletions helm/trident-operator/templates/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{{- if .Values.namespace }}
apiVersion: v1
kind: Namespace
metadata:
name: {{ .Values.namespace }}
labels:
{{- include "trident.labels" . | nindent 4 }}
{{- end }}

8 changes: 4 additions & 4 deletions helm/trident-operator/templates/postdeletecrdshook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: post-delete-service-account
namespace: {{ .Release.Namespace }}
namespace: {{ include "trident.namespace" . }}
annotations:
"helm.sh/hook": post-delete
"helm.sh/hook-weight": "-10"
Expand Down Expand Up @@ -38,7 +38,7 @@ metadata:
subjects:
- kind: ServiceAccount
name: post-delete-service-account
namespace: {{ .Release.Namespace }}
namespace: {{ include "trident.namespace" . }}
roleRef:
kind: ClusterRole
name: post-delete-cluster-role
Expand All @@ -50,7 +50,7 @@ apiVersion: batch/v1
kind: Job
metadata:
name: post-delete-hook
namespace: {{ .Release.Namespace }}
namespace: {{ include "trident.namespace" . }}
labels:
app.kubernetes.io/managed-by: {{ .Release.Service | quote }}
app.kubernetes.io/instance: {{ .Release.Name | quote }}
Expand Down Expand Up @@ -81,4 +81,4 @@ spec:
restartPolicy: Never
backoffLimit: 4

{{- end }}
{{- end }}
4 changes: 2 additions & 2 deletions helm/trident-operator/templates/postinstallupgradehook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: v1
kind: Service
metadata:
name: trident-operator
namespace: {{ .Release.Namespace }}
namespace: {{ include "trident.namespace" . }}
spec:
selector:
app: operator.trident.netapp.io
Expand All @@ -17,7 +17,7 @@ apiVersion: v1
kind: Pod
metadata:
name: trident-post-install-upgrade-hook
namespace: {{ .Release.Namespace }}
namespace: {{ include "trident.namespace" . }}
annotations:
"helm.sh/hook": post-install, post-upgrade
"helm.sh/hook-delete-policy": hook-succeeded, hook-failed
Expand Down
6 changes: 3 additions & 3 deletions helm/trident-operator/templates/predeletecrdshook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apiVersion: batch/v1
kind: Job
metadata:
name: pre-delete-hook
namespace: {{ .Release.Namespace }}
namespace: {{ include "trident.namespace" . }}
labels:
app.kubernetes.io/managed-by: {{ .Release.Service | quote }}
app.kubernetes.io/instance: {{ .Release.Name | quote }}
Expand All @@ -28,8 +28,8 @@ spec:
- -c
- |
set -x
if kubectl get torc trident -n trident; then
kubectl patch torc trident -n trident --type=merge -p '{"spec":{"wipeout":["crds"],"uninstall":true, "skipCRDsToObliviate":["tridentorchestrators.trident.netapp.io", "tridentconfigurators.trident.netapp.io"]}}'
if kubectl get torc trident -n {{ include "trident.namespace" $ | quote }}; then
kubectl patch torc trident -n {{ include "trident.namespace" $ | quote }} --type=merge -p '{"spec":{"wipeout":["crds"],"uninstall":true, "skipCRDsToObliviate":["tridentorchestrators.trident.netapp.io", "tridentconfigurators.trident.netapp.io"]}}'
while kubectl get crds | grep '.trident.netapp.io' | grep -v -e 'tridentorchestrators.trident.netapp.io' -e 'tridentconfigurators.trident.netapp.io'; do
echo 'Waiting for CRDs to be deleted...'
sleep 5
Expand Down
2 changes: 1 addition & 1 deletion helm/trident-operator/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: trident-operator
namespace: {{ .Release.Namespace }}
namespace: {{ include "trident.namespace" . }}
{{- if and (ne .Values.cloudIdentity "") (ne .Values.cloudProvider "") }}
{{- $cloudIdentity := trimPrefix "'" .Values.cloudIdentity }}
{{- $cloudIdentity = trimSuffix "'" $cloudIdentity }}
Expand Down
2 changes: 1 addition & 1 deletion helm/trident-operator/templates/tridentorchestrator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: TridentOrchestrator
metadata:
name: trident
spec:
namespace: {{ .Release.Namespace }}
namespace: {{ include "trident.namespace" . }}
enableForceDetach: {{ include "trident.enableForceDetach" $ }}
IPv6: {{ include "trident.IPv6" $ }}
k8sTimeout: {{ .Values.tridentK8sTimeout }}
Expand Down
29 changes: 14 additions & 15 deletions helm/trident-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
# helmHookImage specifies the image used for Helm hook jobs
helmHookImage: "alpine/k8s:1.33.0"

# namespace overrides the deployment namespace for chart resources when set.
# Leave empty to use the Helm release namespace.
namespace: ""

## Node labels for pod assignment
## ref: https://kubernetes.io/docs/user-guide/node-selection/
nodeSelector: {}
Expand All @@ -29,13 +33,12 @@ affinity:
- key: kubernetes.io/arch
operator: In
values:
- arm64
- amd64
- arm64
- amd64
- key: kubernetes.io/os
operator: In
values:
- linux

- linux

# tridentControllerPluginNodeSelector additional nodeSelectors for the Pod running the Trident Controller CSI Plugin.
# tridentControllerPluginNodeSelector : {}
Expand All @@ -46,11 +49,9 @@ affinity:
# tridentNodePluginNodeSelector additional nodeSelectors for Pods running the Trident Node CSI Plugin.
# tridentNodePluginNodeSelector : {}

# tridentNodePluginTolerations overrides tolerations for Pods running the Trident Node CSI Plugin.
# tridentNodePluginTolerations overrides tolerations for Pods running the Trident Node CSI Plugin.
# tridentNodePluginTolerations: []



# imageRegistry identifies the registry for the trident-operator, trident, and other images. Leave empty to accept the default.
imageRegistry: ""

Expand All @@ -63,8 +64,7 @@ imagePullSecrets: []
# kubeletDir allows overriding the host location of kubelet's internal state. (default "/var/lib/kubelet").
kubeletDir: ""


# operatorLogLevel allows the log level of the Trident operator to be set to one of these:
# operatorLogLevel allows the log level of the Trident operator to be set to one of these:
# trace, debug, info, warn, error, fatal.
# operatorLogLevel: "info"

Expand All @@ -77,7 +77,6 @@ operatorImage: ""
# operatorImageTag allows overriding the tag of the trident-operator image.
operatorImageTag: ""


# tridentIPv6 allows enabling Trident to work in IPv6 clusters.
tridentIPv6: false

Expand Down Expand Up @@ -170,7 +169,7 @@ iscsiSelfHealingWaitTime: "7m0s"
configuratorReconcileInterval: 30m0s

# forceInstallRancherClusterRoles will install a Rancher specific ClusterRole and ClusterRoleBinding when set to true.
# When set to false, the ClusterRole and ClusterRoleBinding will be installed only when a Rancher cluster is detected.
# When set to false, the ClusterRole and ClusterRoleBinding will be installed only when a Rancher cluster is detected.
forceInstallRancherClusterRoles: false

# Auto generated ANF backend related fields consumed by the configurator controller.
Expand All @@ -191,10 +190,10 @@ anfConfigurator:
ontapConfigurator:
enabled: false
svms:
- fsxnID: ''
svmName: ''
- fsxnID: ""
svmName: ""
protocols: []
authType: ''
authType: ""

# enableConcurrency enables the concurrent core feature in Trident **TECH PREVIEW**
enableConcurrency: false
Expand All @@ -221,7 +220,7 @@ enableConcurrency: false
# sub-sections: 'linux' and 'windows'. Each OS section lists its specific containers.
#
# 3. OPERATOR POD:
# Unlike controller and node pods, the operator has actual default values directly specified
# Unlike controller and node pods, the operator has actual default values directly specified
# (not in comments). If removed, no values will be applied.
resources:
controller:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func createTestLabels() map[string]string {
labels := make(map[string]string)
labels[appLabelKey] = appLabelValue
labels[K8sVersionLabelKey] = "v1.28.8"
labels[TridentVersionLabelKey] = "v26.06.0"
labels[TridentVersionLabelKey] = "v26.06.1"

return labels
}
Expand Down
2 changes: 1 addition & 1 deletion storage_drivers/ontap/api/client_app_transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
const ClientAppHeader = "X-Dot-Client-App"

// ClientAppHeaderValue returns the value to send in the X-Dot-Client-App header
// for every REST/ZAPI request Trident issues to ONTAP, e.g. "Trident/26.06.0".
// for every REST/ZAPI request Trident issues to ONTAP, e.g. "Trident/26.06.1".
func ClientAppHeaderValue() string {
return "Trident/" + tridentconfig.OrchestratorVersion.ShortString()
}
Expand Down
2 changes: 1 addition & 1 deletion storage_drivers/ontap/api/client_app_transport_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func TestClientAppHeaderName(t *testing.T) {
// TestClientAppTransport_RoundTrip verifies the transport stamps the header
// on every outgoing request.
func TestClientAppTransport_RoundTrip(t *testing.T) {
const want = "Trident/26.06.0"
const want = "Trident/26.06.1"

var seen atomic.Int32
base := roundTripFunc(func(r *http.Request) (*http.Response, error) {
Expand Down