-
Notifications
You must be signed in to change notification settings - Fork 617
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(integrations/registry): remove deprecated kustomize features
- Loading branch information
Showing
34 changed files
with
242 additions
and
218 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
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
9 changes: 9 additions & 0 deletions
9
manifests/integrations/registry-credentials-sync/_cronjobs/aws/bind-irsa-patch.yaml
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,9 @@ | ||
# Bind IRSA for the ServiceAccount | ||
--- | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: credentials-sync | ||
namespace: flux-system | ||
annotations: | ||
eks.amazonaws.com/role-arn: <role arn> # set the ARN for your role |
9 changes: 9 additions & 0 deletions
9
manifests/integrations/registry-credentials-sync/_cronjobs/aws/config-map-patch.yaml
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,9 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: credentials-sync | ||
data: | ||
ECR_REGION: us-east-1 # set the region | ||
ECR_REGISTRY: <account id>.dkr.ecr.<region>.amazonaws.com # fill in the account id and region | ||
KUBE_SECRET: ecr-credentials # does not yet exist -- will be created in the same Namespace |
52 changes: 0 additions & 52 deletions
52
manifests/integrations/registry-credentials-sync/_cronjobs/aws/config-patches.yaml
This file was deleted.
Oops, something went wrong.
21 changes: 21 additions & 0 deletions
21
...sts/integrations/registry-credentials-sync/_cronjobs/aws/credentials-injection-patch.yaml
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,21 @@ | ||
# If not using IRSA, set the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables | ||
# Store these values in a Secret and load them in the container using envFrom. | ||
# For managing this secret via GitOps, consider using SOPS or SealedSecrets and add that manifest in a resource file for this kustomize build. | ||
# https://fluxcd.io/docs/guides/mozilla-sops/ | ||
# https://fluxcd.io/docs/guides/sealed-secrets/ | ||
--- | ||
apiVersion: batch/v1beta1 | ||
kind: CronJob | ||
metadata: | ||
name: credentials-sync | ||
namespace: flux-system | ||
spec: | ||
jobTemplate: | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: sync | ||
envFrom: | ||
- secretRef: | ||
name: $(ECR_SECRET_NAME) # uncomment the var for this in kustomization.yaml |
9 changes: 9 additions & 0 deletions
9
manifests/integrations/registry-credentials-sync/_cronjobs/aws/ecr-token-refresh-patch.yaml
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,9 @@ | ||
# Set the reconcile period | ||
--- | ||
apiVersion: batch/v1beta1 | ||
kind: CronJob | ||
metadata: | ||
name: credentials-sync | ||
namespace: flux-system | ||
spec: | ||
schedule: 0 */6 * * * # every 6hrs -- ECR tokens expire every 12 hours; refresh faster than that |
8 changes: 8 additions & 0 deletions
8
manifests/integrations/registry-credentials-sync/_cronjobs/aws/encrypted-secret.yaml
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,8 @@ | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: credentials-sync | ||
data: | ||
AWS_ACCESS_KEY_ID: Zm9vCg== | ||
AWS_SECRET_ACCESS_KEY: YmFyCg== | ||
type: Opaque |
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
3 changes: 3 additions & 0 deletions
3
manifests/integrations/registry-credentials-sync/_cronjobs/aws/kustomizeconfig.yaml
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,3 @@ | ||
varReference: | ||
- path: spec/jobTemplate/spec/template/spec/containers/envFrom/secretRef | ||
kind: CronJob |
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
8 changes: 8 additions & 0 deletions
8
manifests/integrations/registry-credentials-sync/_cronjobs/azure/config-map-patch.yaml
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,8 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: credentials-sync | ||
data: | ||
ACR_NAME: my-registry | ||
KUBE_SECRET: acr-my-registry # does not yet exist -- will be created in the same Namespace |
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
15 changes: 15 additions & 0 deletions
15
...registry-credentials-sync/_cronjobs/azure/token-refresh-and-identity-injection-patch.yaml
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,15 @@ | ||
# Set the reconcile period + specify the pod-identity via the aadpodidbinding label | ||
--- | ||
apiVersion: batch/v1beta1 | ||
kind: CronJob | ||
metadata: | ||
name: credentials-sync | ||
namespace: flux-system | ||
spec: | ||
schedule: 0 * * * * # ACR tokens expire every 3 hours; refresh faster than that | ||
jobTemplate: | ||
spec: | ||
template: | ||
metadata: | ||
labels: | ||
aadpodidbinding: $(AZ_IDENTITY_NAME) # match the AzureIdentity name |
9 changes: 9 additions & 0 deletions
9
manifests/integrations/registry-credentials-sync/_cronjobs/gcp/bind-irsa-patch.yaml
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,9 @@ | ||
# Bind to the GCP service-account | ||
--- | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: credentials-sync | ||
namespace: flux-system | ||
annotations: | ||
iam.gke.io/gcp-service-account: <name>@<project-id>.iam.gserviceaccount.com # set the GCP service-account |
8 changes: 8 additions & 0 deletions
8
manifests/integrations/registry-credentials-sync/_cronjobs/gcp/config-map-patch.yaml
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,8 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: credentials-sync | ||
data: | ||
GCR_REGISTRY: gcr.io # set the registry | ||
KUBE_SECRET: gcr-credentials # does not yet exist -- will be created in the same Namespace |
28 changes: 0 additions & 28 deletions
28
manifests/integrations/registry-credentials-sync/_cronjobs/gcp/config-patches.yaml
This file was deleted.
Oops, something went wrong.
9 changes: 9 additions & 0 deletions
9
manifests/integrations/registry-credentials-sync/_cronjobs/gcp/gcr-token-refresh-patch.yaml
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,9 @@ | ||
# Set the reconcile period | ||
--- | ||
apiVersion: batch/v1beta1 | ||
kind: CronJob | ||
metadata: | ||
name: credentials-sync | ||
namespace: flux-system | ||
spec: | ||
schedule: 0,30 * * * * # 30m interval -- GCR tokens expire every hour; refresh faster than that |
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
9 changes: 9 additions & 0 deletions
9
manifests/integrations/registry-credentials-sync/aws/bind-irsa-patch.yaml
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,9 @@ | ||
# Bind IRSA for the ServiceAccount | ||
--- | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: credentials-sync | ||
namespace: flux-system | ||
annotations: | ||
eks.amazonaws.com/role-arn: <role arn> # set the ARN for your role |
10 changes: 10 additions & 0 deletions
10
manifests/integrations/registry-credentials-sync/aws/config-map-patch.yaml
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,10 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: credentials-sync | ||
data: | ||
ECR_REGION: us-east-1 # set the region | ||
ECR_REGISTRY: <account id>.dkr.ecr.<region>.amazonaws.com # fill in the account id and region | ||
KUBE_SECRET: ecr-credentials # does not yet exist -- will be created in the same Namespace | ||
SYNC_PERIOD: "21600" # 6hrs -- ECR tokens expire every 12 hours; refresh faster than that |
Oops, something went wrong.