Commit Graph

61 Commits

Author SHA1 Message Date
Mikhail Mazurskiy 64e15191f3
chore!: require Go 1.17
Kubernetes 1.23 libraries require Go 1.17 already.

BREAKING CHANGE: this might break library consumers
2022-01-21 12:57:11 +11:00
Mikhail Mazurskiy 324950da0c
chore!: update dependencies to Kubernetes v1.23.2
BREAKING CHANGE: this might break library consumers
2022-01-21 12:54:03 +11:00
Morten Torkildsen 73dca2b0dc Update to latest version of kyaml and k8s libs 2021-10-19 17:41:57 -07:00
Mikhail Mazurskiy 7333873c91
Drop k8s.io/apiextensions-apiserver dependency 2021-10-11 21:27:48 +11:00
Karl Isenberg 02c0fb7229 Add apply-time-mutation feature
- Detect `config.kubernetes.io/apply-time-mutation` annotation
- Parse annotation string value as YAML
- Treat source resource as a dependency
- Before applying, apply specified substitutions
- Each mutation may include one or more substitution
- Substitutions may optionally replace a token in the existing
  string value, or replace the whole value (e.g. non-strings)
- Source and target fields are specified with JSONPath expressions
- Using github.com/spyzhov/ajson because it supports mutation, and
  not just retrieval
- ApplyTimeMutator uses an in-memory ResourceCache to reduce GETs
2021-09-21 11:00:37 -07:00
Karl Isenberg 6992b74beb Add more robust event list testing in e2e tests
- Add testutil.Equal to show comparisons with cmp.Diff output
- Add github.com/google/go-cmp for cmp.Equal and cmp.Diff
  These comparison tools make debugging easier and properly handle
  error comparisons, using cmpopts.EquateErrors()
- Added EventsToExpEvents, EventToExpEvent, and RemoveEqualEvents
  to testutil to help with comparing event lists
- Add InitEvent to ExpEvent, to enable validating it exists
- e2e tests have all been upgraded to validate a full list of
  events, rather than just a partial list with partial contents.
  This should increase confidence that new changes don't break things.
2021-09-15 00:36:16 -07:00
Mikhail Mazurskiy 6a39e5abec
Drop gotest.tools dependency 2021-07-10 12:21:40 +10:00
Mikhail Mazurskiy d573422283
Drop github.com/pkg/errors dependency 2021-07-02 10:53:24 +10:00
Mikhail Mazurskiy 275f2c27e0
Drop github.com/go-errors/errors dependency 2021-07-02 10:53:03 +10:00
Mikhail Mazurskiy d41f250f19
Update dependencies to Kubernetes v1.21.1 2021-05-28 12:53:51 +10:00
Phani Teja Marupaka 9efd208b59 Update kyaml version 2021-04-07 16:08:42 -07:00
Eyob Tefera d949d682c4 Simplest k8s dep upgrade. 2021-03-16 17:18:35 +00:00
monopole af4d866eb6 Pin to kyaml v0.10.14 and use go 1.16 2021-03-07 17:37:43 -08:00
monopole a905f4e34a Pin cli-utils to kyaml v0.10.13 2021-02-28 11:01:58 -08:00
monopole 56d4505dbd Pin cli-utils to kyaml v0.10.12 2021-02-26 17:20:43 -08:00
monopole 76f7656ab5 Pin cli-utils to kyaml v0.10.9 2021-02-09 09:37:22 -08:00
monopole 909c274735 Pin cli-utils to kyaml v0.10.7 2021-02-05 18:28:15 -08:00
monopole a84192b2fc Pin clitutils to kyaml v0.10.6 2021-01-17 05:53:25 -08:00
jregan 28e63749ad Pin to kyaml v0.10.5
Also pins to gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c

This latter is the last commit before ae27a74434 which changes how sequences are indented in serialized YAML.

test failures as described in https://github.com/kubernetes-sigs/kustomize/pull/3402
2020-12-28 18:35:00 -08:00
jregan 9417ad9172 Pin to kyaml v0.10.4 2020-12-28 14:39:29 -08:00
Morten Torkildsen 2a7d476d18 Set up E2e tests with kind for the apply library 2020-12-21 16:51:41 -08:00
jregan ea8ac6b0f3 Pin to kyaml v0.10.3 2020-12-07 15:50:39 -08:00
jregan 21dbfee1af Pin to kyaml v0.9.4 2020-11-11 12:58:26 -08:00
Jingfang Liu d75850b538 update kubectl to 1.18.10 2020-11-11 10:01:17 -08:00
Donny Xia b958ace796 pin kyaml to v0.9.3 2020-10-29 13:31:38 -07:00
Morten Torkildsen f6cb473783 Clean up go mod 2020-10-16 12:27:23 -07:00
Jeffrey Regan 9c4ba4df86 Pin to kyaml v0.9.2 2020-10-15 13:27:02 -07:00
jregan b3465bf090 Pin to kyaml v0.9.1 2020-10-07 14:53:54 -07:00
Morten Torkildsen 202621ee54 Update to the latest version of golint 2020-10-04 18:11:56 -07:00
jregan 8698c7d3e6 Upgrade to kyaml v0.9.0 2020-10-02 15:46:43 -07:00
Jeff Regan 64f27ed8fc
Pin to kyaml v0.8.1 2020-09-18 12:13:49 -07:00
jregan 1358a8261c Upgrade to kyaml v0.8.0 2020-09-15 15:04:37 -07:00
jregan fb7493f243 Pin to kyaml v0.7.1 2020-08-28 17:44:57 -07:00
jregan 517ebbea01 Pin to kyaml v0.7.0 2020-08-28 12:23:51 -07:00
Phani Teja Marupaka 4d8419f02b Bump kyaml version to v0.6.0 2020-08-12 12:00:44 -07:00
Morten Torkildsen 98b558ce39 Bump kyaml version to 0.4.0 2020-07-06 20:19:08 -07:00
Phani Teja Marupaka d4dbb597c0 Fail Apply/Preview for Required Setters 2020-07-06 17:04:24 -07:00
Mikhail Mazurskiy 40e15da909
Use sigs.k8s.io/yaml for YAML 2020-06-25 12:17:31 +10:00
Sean R. Sullivan d96d18eb04 Adds klog to kapply; initial log statements in prune 2020-05-11 11:47:34 -07:00
Morten Torkildsen 5b097922dd Handle unknown types in APIServer in polling engine 2020-04-17 13:48:24 -07:00
Sean R. Sullivan 4050c791a6 Updates go.mod to use latest kyaml (v0.1.4) 2020-04-02 12:47:00 -07:00
Sean R. Sullivan 0c5578d63b Default grouping label is a UUID 2020-03-24 13:23:41 -07:00
Morten Torkildsen 1677c03af3 add status command to cli-utils 2020-03-09 12:50:22 -07:00
Sean Sullivan c02e0964dc First version of InitOptions and tests 2020-03-04 18:05:58 -08:00
jregan f7324fa5f3 apply, preview and destroy take exactly one dir arg 2020-03-04 15:21:07 -08:00
Sean Sullivan c6944683f5 Latest version of stringer for go generate 2020-02-25 14:52:07 -08:00
Morten Torkildsen a608ef76ac New observer library for status 2020-02-10 11:16:12 -08:00
Sean Sullivan c3a47147a7 Adds kapply and kstatus packages 2020-01-30 12:11:36 -08:00
Sean Sullivan 4c8ce954e1 Reset cli-utils repo in preparation for new apply/prune/status 2020-01-29 15:20:42 -08:00
Morten Torkildsen 75bfe7b436 Move status to a top-level command and compute both status and conditions for resources 2019-11-06 17:27:59 -08:00