Skip to content

Releases: seznam/vindaloo

vindaloo 4.5.0

25 Jan 11:59
ddce073
Compare
Choose a tag to compare

ServiceMonitor and PodMonitor objects

vindaloo 4.4.0

15 Feb 14:14
86d3ebf
Compare
Choose a tag to compare

Waiting for deployments to rollout now checks if succesfully rolled out.

vindaloo 4.3.0

29 Jun 12:45
Compare
Choose a tag to compare
  • Creation of a Kube Job will now wait until the job is completed (either successfully or unsuccessfully) in the same manner as it is waiting for deployments to rollout.

vindaloo 4.2.0

03 Dec 16:49
4.2.0
Compare
Choose a tag to compare
  • added support for current git commit hash as image tag

E.g. using versions.json

{
  "test/foo": "{{git}}-dev"
}

vindaloo will replace the {{git}} placeholder with 8 letters of current git hash
resulting in e.g. test/foo:d6ee34ae-dev.

vindaloo 4.1.1

22 Nov 10:36
4.1.1
Compare
Choose a tag to compare
  • fix: ConfigMap added to __all__ in objects.py

vindaloo 4.1.0

24 Sep 14:11
4.1.0
Compare
Choose a tag to compare
  • added support for ConfigMaps objects
from vindaloo.objects import ConfigMap

CONTEXT = {'variable_1': 'This value depends on the selected environment.'}

CONFIG_MAP = ConfigMap(
    name='test-config-map',
    metadata={
        'labels': {'custom-labels': '123'},
        'annotations': {'custom-annotations': '...'},
    },
    data={
        'simple_config_key': 123,
        'file_config_key': {
            'file': 'templates/file_config.conf',
            'config': CONTEXT,
        },
    },
    binary_data={
        'simple_binary_key': b'\x76\x69\x6b\x79',
        'binary_file_config_key': {
            'file': 'templates/binary_config.conf',
        },
    },
      immutable=True,
)

K8S_OBJECTS = {
    "configmap": [CONFIG_MAP],
}
  • orphaned pystache library replaced with chevron

vindaloo 4.0.0

20 Aug 16:05
4.0.0
Compare
Choose a tag to compare

Breaking changes

  • support for Python 3.5 is dropped

  • import versions is replaced by:

import vindaloo
versions = vindaloo.app.versions
  • attributes (containers, ports ...) on Deployment, Service, CronJob,
    e.g. are moved to full path corresponding to structure of k8s manifest:
-JOB.containers['foo']['command']
+JOB.spec.template.spec.containers['foo']['command']
-SERVICE.load_balancer_ip
+SERVICE.spec.loadBalancerIP
-SERVICE.ports['http']['nodePort'
+SERVICE.spec.ports['http']['nodePort']
  • init parameter annotations of Deployment, CronJob and Job now sets
    metadata.annotations in manifest.

  • init parameter spec_annotations to Deployment, CronJob and Job is added
    which sets:

    • spec.template.metadata.annotations in Deployment
    • spec.jobTemplate.spec.template.metadata.annotations in CronJob

Improvements

  • Any parameter in manifest spec can now be set, user is not limited to attributes on Deployment e.g.
DEPLOYMENT.spec.something.foo.bar = 'boo'
  • Objects can be created without init params:
SERVICE = Service()
SERVICE.set_name("foo")
SERVICE.spec.type = "NodePort"
SERVICE.spec.selector = {'app': "foo"}
SERVICE.spec.ports = List({
    'http': {'port': 5001, 'targetPort': 5001, 'protocol': 'TCP'},
})
SERVICE.metadata.annotations.loadbalancer = "enabled"
  • Method set_name is added to ease renaming and cloning:
DEPLOYMENT2 = DEPLOYMENT.clone()
-DEPLOYMENT2.name = "sos-adminserver-private"
-DEPLOYMENT2.metadata = {'name': DEPLOYMENT2.name}
-DEPLOYMENT2.labels = {'app': DEPLOYMENT2.name}
+DEPLOYMENT2.set_name("foo2")

vindaloo 3.6.1

13 Jan 17:19
Compare
Choose a tag to compare
  • added selector to deployment spec

vindaloo 3.6.0

13 Jan 16:28
Compare
Choose a tag to compare
  • extensions/v1beta1 API path changed to apps/v1