Skip to content
This repository has been archived by the owner on Aug 4, 2023. It is now read-only.

0.7.0

Latest
Compare
Choose a tag to compare
@dvonessen dvonessen released this 19 Apr 15:31
· 10 commits to main since this release

Added

  • Added gcip.addon.container.job.trivy.scan_local_image to scan local container images of vulnerabilities.
  • Added set_config_file_path method to DockerClientConfig.
  • Return own instance on each method call for DockerClientConfig instances.
  • Added Registry class to gcip.addons.container.registry module. It contains constants of Container registries.
  • Added gcip.core.sequence.Sequence.initialize_artifacts_paths() and gcip.core.sequence.Sequence.override_artifacts_paths().
  • Added defaulting to git tag or git branch for image_tag in crane.push.
  • Added default DockerClientConfig in crane.push
  • Added |tee to get dive output to stdout and to dive.txt. Updload dive.txt to GitLab artifacts store.
  • Added |tee to get trivy output to stdout and to trivy.txt. Updload trivy.txt to GitLab artifacts store.
  • Added new container sequence. Container sequence build, scans and pushes an container image.
  • Added full API documentation of the gcip.core.job module.
  • Added full API documentation of the gcip.core.pipeline module.
  • Added full API documentation of the gcip.core.image module.
  • Added full API documentation of the gcip.core.include module.
  • Added documentation to the gcip.core.variables module.
  • Added @properties to all public Job attributes.
  • New addons: aws to allow receiving AWS account id and region.
  • New gcip.addons.container.registries.Registry.AWS() allows getting an ECR URL to be used in pipeline.
  • Added crane.pull() function to gcip.addons.container.crane.
  • Added new gcip.addons.security.sops module and added sops_export_decrypted_values function to sops module.

Changed

  • Normalize config_file_path in gcip.addons.container.config.DockerClientConfig
  • Line length check in flake8 linter to 160.
  • BREAKING Removed arguments from DockerClientConfig constructor to set config file path, use set_config_file_path of DockerClientConfig instance.
  • BREAKING Removed custom docker client config from kaniko job.
    Added DockerClientConfig as a optional client configuration to kaniko job.
    Simplyfied function and sorted initialisation tests an actuall composing of job.
  • BREAKING Removed custom docker client config from kaniko job.
    Added DockerClientConfig as a optional client configuration to kaniko job.
    Simplyfied function and sorted initialisation tests an actuall composing of job.
  • BREAKING Moved all function arguments of crane.push function to be keyword arguments.
  • BREAKING Renamed dst to dst_registry in crane.push function.
  • BREAKING Renamed image_path to tar_path keyword argument to aligne with kaniko module.
  • BREAKING Renamed dst and src to dst_registry and src_registry.
  • BREAKING dive: Replace "/" with "_" in image_name. Image names contains namespaces which are separated by "/" to ensure image name is a file instead of a directory structure.
  • BREAKING trivy: Replace "/" with "_" in image_name. Image names contains namespaces which are separated by "/" to ensure image name is a file instead of a directory structure.
  • BREAKING Renamed gitlab_executor_image to kaniko_image in kaniko.execute(). Moved argument to last argument in function signature.
  • kaniko: Replaced "/" with "_" to convert image namspaces to filename instead of directory structure assigne it to image_path.
  • core.cache: Changed PredefinedVariable from CI_PROJECT_PATH to CI_PROJECT_DIR to ensure its the directory instead of the "namespace" of the git repository.
  • BREAKING Changed docker hub registry entry in Registry class.
  • BREAKING Renamed all occurences of namespace to stage. Because 'stage' is what the current 'stage' really expresses. You could try following commands to align your
    gcip code with this breaking change:
    LC_ALL=C find . -type f ! -path './.git/*' ! -path '*/__pycache__/*' -exec sed -i '' s/Stage/Stage/g {} +
    LC_ALL=C find . -type f ! -path './.git/*' ! -path '*/__pycache__/*' -exec sed -i '' s/stage/stage/g {} +
    

Removed

  • Removed date call from dive job.
  • Removed gcip.core.pipeline.Pipeline.dump_yaml() method. There is no need to print a pipeline to stdout. You should use gcip.core.pipeline.Pipeline.write_yaml() instead.
  • Removed -v flag from from gcp.addons.python.jobs.pip_install_requirements()

Fixed

  • Several linter issues has been fixed
  • Fixed kaniko build in gitlabci-local.sh
  • Kankio job's tar_path behavior fixed. If you specified tar_path in kaniko.execute(), the tar_path was added to the same line as the executor. Now it gets added to a item bevor execute.
  • Fixed PredefinedImages entrypoints for GitLab CI runner.
  • Fixed crane image, latest image does not have sh available. Using debug tag.