Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for S3 bucket sources #117

Merged
merged 4 commits into from
Sep 21, 2020
Merged

Add support for S3 bucket sources #117

merged 4 commits into from
Sep 21, 2020

Conversation

stefanprodan
Copy link
Member

This PR adds support for S3 bucket sources fix: #116

Changes:

  • add Bucket kind to supported sources
  • add a watcher to detect bucket revision changes

Example

Define a source that points to a S3 bucket hosted with Minio:

apiVersion: source.toolkit.fluxcd.io/v1alpha1
kind: Bucket
metadata:
  name: podinfo
spec:
  interval: 1m
  bucketName: podinfo
  endpoint:  minio.minio.svc.cluster.local:9000
  insecure: true
  secretRef:
    name: minio-credentials

Define a Kustomization that reconciles the Kubernetes manifests from the bucket on the cluster:

apiVersion: kustomize.toolkit.fluxcd.io/v1alpha1
kind: Kustomization
metadata:
  name: podinfo
spec:
  interval: 5m
  path: "./"
  prune: true
  sourceRef:
    kind: Bucket
    name: podinfo
  validation: client
  healthChecks:
    - kind: Deployment
      name: podinfo
      namespace: minio-test
  timeout: 2m

@stefanprodan stefanprodan added area/docs Documentation related issues and pull requests enhancement New feature or request area/kustomize Kustomize related issues and pull requests labels Sep 18, 2020
Copy link
Member

@hiddeco hiddeco left a comment

Choose a reason for hiding this comment

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

The 😈 works hard, but Stefan works harder 🛸

README.md Outdated Show resolved Hide resolved
@stefanprodan stefanprodan force-pushed the s3-bucket-source branch 3 times, most recently from da85030 to 0d6f715 Compare September 19, 2020 10:31
@stefanprodan stefanprodan merged commit e9e9719 into master Sep 21, 2020
@stefanprodan stefanprodan deleted the s3-bucket-source branch September 21, 2020 06:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/docs Documentation related issues and pull requests area/kustomize Kustomize related issues and pull requests enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support S3 bucket sources
2 participants