Skip to main content

Automatically apply changes from a remote URL to the Kubernetes cluster

Usage

To start the service locally, run

$ export URL=https://user:password123@example.com/repository/my-service.yaml
$ ./autoapply.py

For a docker version, use

$ docker run -d -e URL=https://example.com/my-service.yaml pascalgn/autoapply

The following URLs are supported:

  • Direct access via HTTPS, for example https://example.com/my-config/config.yaml

  • Access via SSH, git@example.com:path/to/repository.git:path/to/config.yaml or ssh://git@example.com:123/path/to/repository.git:path/to/config.yaml

For Git URLs you can append #my-branch to specify the branch to be used. If no branch is given, master will be used.

Providing SSH keys

To use SSH keys, be sure to specify 600 as default mode when mounting them. For Kubernetes, this would look like this:

containers:
  - name: autoapply-container
    image: pascalgn/autoapply
    env:
      - name: URL
        value: 'git@github.com:pascalgn/hostinfo.git:examples/kubernetes.yaml'
    volumeMounts:
      - name: autoapply-ssh-secret-volume
        mountPath: /root/.ssh
volumes:
  - name: autoapply-ssh-secret-volume
    secret:
      secretName: autoapply-ssh-secret-volume
      defaultMode: 600

License

Autoapply is licensed under the ISC License

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

autoapply-0.1.1.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

autoapply-0.1.1-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file autoapply-0.1.1.tar.gz.

File metadata

  • Download URL: autoapply-0.1.1.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for autoapply-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b91365adbdd34efc8a087bf651a4fcc12401dfc0c8bbee0ab7d71d6302eb43d7
MD5 b0af5bc73ec2b0a54c9b1b4004a2855a
BLAKE2b-256 21f0e279253b8477e9938e3c01ed94b6ff176cf9c98f7e63c600fcbf5b9a2aac

See more details on using hashes here.

File details

Details for the file autoapply-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for autoapply-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b0f5cea0b35c8c635eb73d785600d404d3807deb3cc66b33eaf2be1f0676d30f
MD5 4d7aa8629d716a43ffa0f534c858079f
BLAKE2b-256 9f23bfde316ecef6a97685050f9a5b7b079dcc5100435b948e4e66a8185ef27b

See more details on using hashes here.

Release history Release notifications | RSS feed

0.3.2

2 files

0.3.1

2 files

0.3.0

2 files

0.2.3

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

This release

0.1.1 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page