Skip to content

Instantly share code, notes, and snippets.

diff --git a/velero-plugin-for-aws/volume_snapshotter.go b/velero-plugin-for-aws/volume_snapshotter.go
index 03eac81..1547173 100644
--- a/velero-plugin-for-aws/volume_snapshotter.go
+++ b/velero-plugin-for-aws/volume_snapshotter.go
@@ -50,6 +50,7 @@ type VolumeSnapshotter struct {
// takes AWS session options to create a new session
func getSession(options session.Options) (*session.Session, error) {
+ options.SharedConfigState = session.SharedConfigEnable
diff --git a/controllers/velero.go b/controllers/velero.go
index 828cdb3..575008d 100644
--- a/controllers/velero.go
+++ b/controllers/velero.go
@@ -408,12 +408,31 @@ func (r *VeleroReconciler) customizeVeleroDeployment(velero *oadpv1alpha1.Velero
// Selector: veleroDeployment.Spec.Selector,
veleroDeployment.Spec.Replicas = pointer.Int32(1)
veleroDeployment.Spec.Template.Spec.Tolerations = velero.Spec.VeleroTolerations
+ defaultMode := int32(420)
+ expirationSeconds := int64(3600)
func (b *VolumeSnapshotter) Init(config map[string]string) error {
- if err := veleroplugin.ValidateVolumeSnapshotterConfigKeys(config, regionKey, credentialProfileKey); err != nil {
+ if err := veleroplugin.ValidateVolumeSnapshotterConfigKeys(config, regionKey, credentialProfileKey, credentialsFileKey); err != nil {
return err
}
region := config[regionKey]
credentialProfile := config[credentialProfileKey]
+ credentialsFile := config[credentialsFileKey]
if region == "" {
$ docker run -u 0 -it --entrypoint /bin/bash quay.io/operator-framework/ansible-operator:v0.5.0
Unable to find image 'quay.io/operator-framework/ansible-operator:v0.5.0' locally
v0.5.0: Pulling from operator-framework/ansible-operator
a02a4930cb5d: Already exists
1bdeea372afe: Already exists
3b057581d180: Already exists
12618e5abaa7: Already exists
6f75beb67357: Already exists
b241f86d9d40: Already exists
e990bcb94ae6: Already exists
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace c_sharp_example
{
class Program
{
static void Main(string[] args)
### Keybase proof
I hereby claim:
* I am shawn-hurley on github.
* I am shawn_hurley (https://keybase.io/shawn_hurley) on keybase.
* I have a public key ASCa74X9yUMZ9jeBnL2sFLTYJhJSoUqTXJSfQktShK-Z-Ao
To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am shawn-hurley on github.
  • I am shawn_hurley (https://keybase.io/shawn_hurley) on keybase.
  • I have a public key whose fingerprint is F55D 866D EDF7 84F7 2B6E 607A 294D 1BB7 6B04 30D4

To claim this, I am signing this object: