-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #464 from sighupio/fix/velero-eks-on-newer-version…
…s-template-patch Fix: velero eks on newer versions template patch
- Loading branch information
Showing
7 changed files
with
184 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
configs/patches/v1.25.9/templates/distribution/manifests/dr/patches/eks-velero.yml.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Copyright (c) 2017-present SIGHUP s.r.l All rights reserved. | ||
# Use of this source code is governed by a BSD-style | ||
# license that can be found in the LICENSE file. | ||
|
||
# THIS FILE HAS BEEN PATCHED BY FURYCTL TO ENSURE BACKWARDS COMPATIBILITY. | ||
# IT IS NOT THE ORIGINAL FILE FOUND IN THE DISTRIBUTION REPOSITORY. | ||
|
||
{{- if eq .spec.distribution.common.provider.type "eks" }} | ||
--- | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
annotations: | ||
eks.amazonaws.com/role-arn: {{ .spec.distribution.modules.dr.velero.eks.iamRoleArn }} | ||
name: velero | ||
namespace: kube-system | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: velero | ||
namespace: kube-system | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: velero | ||
volumeMounts: | ||
- name: cloud-credentials | ||
mountPath: /credentials | ||
$patch: delete | ||
env: | ||
- name: GOOGLE_APPLICATION_CREDENTIALS | ||
value: /credentials/cloud | ||
$patch: delete | ||
- name: AWS_SHARED_CREDENTIALS_FILE | ||
value: /credentials/cloud | ||
$patch: delete | ||
- name: AZURE_CREDENTIALS_FILE | ||
value: /credentials/cloud | ||
$patch: delete | ||
volumes: | ||
- name: cloud-credentials | ||
$patch: delete | ||
{{- end }} |
45 changes: 45 additions & 0 deletions
45
configs/patches/v1.26.4/templates/distribution/manifests/dr/patches/eks-velero.yml.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Copyright (c) 2017-present SIGHUP s.r.l All rights reserved. | ||
# Use of this source code is governed by a BSD-style | ||
# license that can be found in the LICENSE file. | ||
|
||
# THIS FILE HAS BEEN PATCHED BY FURYCTL TO ENSURE BACKWARDS COMPATIBILITY. | ||
# IT IS NOT THE ORIGINAL FILE FOUND IN THE DISTRIBUTION REPOSITORY. | ||
|
||
{{- if eq .spec.distribution.common.provider.type "eks" }} | ||
--- | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
annotations: | ||
eks.amazonaws.com/role-arn: {{ .spec.distribution.modules.dr.velero.eks.iamRoleArn }} | ||
name: velero | ||
namespace: kube-system | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: velero | ||
namespace: kube-system | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: velero | ||
volumeMounts: | ||
- name: cloud-credentials | ||
mountPath: /credentials | ||
$patch: delete | ||
env: | ||
- name: GOOGLE_APPLICATION_CREDENTIALS | ||
value: /credentials/cloud | ||
$patch: delete | ||
- name: AWS_SHARED_CREDENTIALS_FILE | ||
value: /credentials/cloud | ||
$patch: delete | ||
- name: AZURE_CREDENTIALS_FILE | ||
value: /credentials/cloud | ||
$patch: delete | ||
volumes: | ||
- name: cloud-credentials | ||
$patch: delete | ||
{{- end }} |
45 changes: 45 additions & 0 deletions
45
configs/patches/v1.27.0/templates/distribution/manifests/dr/patches/eks-velero.yml.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Copyright (c) 2017-present SIGHUP s.r.l All rights reserved. | ||
# Use of this source code is governed by a BSD-style | ||
# license that can be found in the LICENSE file. | ||
|
||
# THIS FILE HAS BEEN PATCHED BY FURYCTL TO ENSURE BACKWARDS COMPATIBILITY. | ||
# IT IS NOT THE ORIGINAL FILE FOUND IN THE DISTRIBUTION REPOSITORY. | ||
|
||
{{- if eq .spec.distribution.common.provider.type "eks" }} | ||
--- | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
annotations: | ||
eks.amazonaws.com/role-arn: {{ .spec.distribution.modules.dr.velero.eks.iamRoleArn }} | ||
name: velero | ||
namespace: kube-system | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: velero | ||
namespace: kube-system | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: velero | ||
volumeMounts: | ||
- name: cloud-credentials | ||
mountPath: /credentials | ||
$patch: delete | ||
env: | ||
- name: GOOGLE_APPLICATION_CREDENTIALS | ||
value: /credentials/cloud | ||
$patch: delete | ||
- name: AWS_SHARED_CREDENTIALS_FILE | ||
value: /credentials/cloud | ||
$patch: delete | ||
- name: AZURE_CREDENTIALS_FILE | ||
value: /credentials/cloud | ||
$patch: delete | ||
volumes: | ||
- name: cloud-credentials | ||
$patch: delete | ||
{{- end }} |
45 changes: 45 additions & 0 deletions
45
configs/patches/v1.27.1/templates/distribution/manifests/dr/patches/eks-velero.yml.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Copyright (c) 2017-present SIGHUP s.r.l All rights reserved. | ||
# Use of this source code is governed by a BSD-style | ||
# license that can be found in the LICENSE file. | ||
|
||
# THIS FILE HAS BEEN PATCHED BY FURYCTL TO ENSURE BACKWARDS COMPATIBILITY. | ||
# IT IS NOT THE ORIGINAL FILE FOUND IN THE DISTRIBUTION REPOSITORY. | ||
|
||
{{- if eq .spec.distribution.common.provider.type "eks" }} | ||
--- | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
annotations: | ||
eks.amazonaws.com/role-arn: {{ .spec.distribution.modules.dr.velero.eks.iamRoleArn }} | ||
name: velero | ||
namespace: kube-system | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: velero | ||
namespace: kube-system | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: velero | ||
volumeMounts: | ||
- name: cloud-credentials | ||
mountPath: /credentials | ||
$patch: delete | ||
env: | ||
- name: GOOGLE_APPLICATION_CREDENTIALS | ||
value: /credentials/cloud | ||
$patch: delete | ||
- name: AWS_SHARED_CREDENTIALS_FILE | ||
value: /credentials/cloud | ||
$patch: delete | ||
- name: AZURE_CREDENTIALS_FILE | ||
value: /credentials/cloud | ||
$patch: delete | ||
volumes: | ||
- name: cloud-credentials | ||
$patch: delete | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters