Skip to content

[DRAFT] Feature/add csi support#1073

Merged
faizanahmad055 merged 26 commits intomasterfrom
feature/add-csi-support
Jan 8, 2026
Merged

[DRAFT] Feature/add csi support#1073
faizanahmad055 merged 26 commits intomasterfrom
feature/add-csi-support

Conversation

@faizanahmad055
Copy link
Copy Markdown
Contributor

@faizanahmad055 faizanahmad055 commented Jan 3, 2026

@faizanahmad055 faizanahmad055 changed the title [DRAFT] Feature/add csi support Feature/add csi support Jan 4, 2026
return fmt.Sprintf("%x", sha)

hash := sha512.Sum512_256([]byte(data))
return hex.EncodeToString(hash[:])
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@faizanahmad055 This is a breaking change for people who are going to upgrade. It will cause all workloads that are managed by reloader to be restarted as it will notice a change in the last stored hash

Copy link
Copy Markdown
Contributor Author

@faizanahmad055 faizanahmad055 Jan 4, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes indeed, I should have made this clear in the notes. The pipeline was previously failing because of critical vulnerability on SHA1 usage so I had to change it. We can discuss how to do it in a better way. May be do an announcement? But we will probably have to eventually do this change.

Signed-off-by: faizanahmad055 <faizan.ahmad55@outlook.com>
Signed-off-by: faizanahmad055 <faizan.ahmad55@outlook.com>
Copy link
Copy Markdown
Contributor

@TheiLLeniumStudios TheiLLeniumStudios left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than the above, 2 annotation override config flags are missing:

  cmd.PersistentFlags().StringVar(&options.SecretProviderClassUpdateOnChangeAnnotation,
      "secretproviderclass-annotation",
      "secretproviderclass.reloader.stakater.com/reload",
      "annotation to detect changes in secretproviderclasses, specified by name")

  cmd.PersistentFlags().StringVar(&options.SecretProviderClassReloaderAutoAnnotation,
      "secretproviderclass-auto-annotation",
      "secretproviderclass.reloader.stakater.com/auto",
      "annotation to detect changes in secretproviderclasses")

cmd.PersistentFlags().BoolVar(&options.SyncAfterRestart, "sync-after-restart", false, "Sync add events after reloader restarts")
cmd.PersistentFlags().BoolVar(&options.EnablePProf, "enable-pprof", false, "Enable pprof for profiling")
cmd.PersistentFlags().StringVar(&options.PProfAddr, "pprof-addr", ":6060", "Address to start pprof server on. Default is :6060")
cmd.PersistentFlags().BoolVar(&options.EnableCSIIntegration, "enable-csi-integration", false, "Enables CSI integration. Default is :true")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a typo here. Default value is false

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

}

func populateAnnotationsFromSecretProviderClass(clients kube.Clients, config *common.Config) {
obj, err := clients.CSIClient.SecretsstoreV1().SecretProviderClasses(config.Namespace).Get(context.TODO(), config.ResourceName, metav1.GetOptions{})
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use a background context

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

}

func secretProviderClassAnnotationReloaded(oldAnnotations map[string]string, newConfig common.Config) bool {
annotaion := oldAnnotations[getReloaderAnnotationKey()]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A typo here.. Should be annotation

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

Signed-off-by: faizanahmad055 <faizan.ahmad55@outlook.com>
Signed-off-by: faizanahmad055 <faizan.ahmad55@outlook.com>
Signed-off-by: faizanahmad055 <faizan.ahmad55@outlook.com>
Signed-off-by: faizanahmad055 <faizan.ahmad55@outlook.com>
Signed-off-by: faizanahmad055 <faizan.ahmad55@outlook.com>
@faizanahmad055 faizanahmad055 changed the title Feature/add csi support [DRAFT] Feature/add csi support Jan 7, 2026
@faizanahmad055 faizanahmad055 merged commit 6fd7c82 into master Jan 8, 2026
15 checks passed
@faizanahmad055 faizanahmad055 deleted the feature/add-csi-support branch January 8, 2026 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants