func/cmd/testdata
Luke Kingland 958429c2f3
feat: deploy command global config with function context (#1434)
* feat: deploy command global config function context

* fix static check errors

* fix test

* fix remote persists test

* env opaque box test

* use keyed fields (govet)

* mock deployer expansion

* ClearEnvs now in shared testing pkg

* effectivePath now uses plfags

* list directly uses config for default namespace

* Improved Namespace calculation and Caching

- Built() now a client package function
- Namespace evaluation delegeate to implementations
  This enables the func.yaml to avert dirtiness checks on rebuilds
  (caching)
- Build and Deploy update build stamp on completion
  Enables dirtiness checks to be unaffects, leading to better caching.
- CLI Namespace checks no longer require k8s env evaluation for default
- Fixed missing condition check in TestDeploy_Namespace
- Fixes some minor linter and spelling errors
- Global config does not directly set namespace - it is corrected to be
  deferred evaluation used by implementations.
- Skips writing func.yaml on f.Write if there were no modifications,
  which leads to better caching (no timestamp update means Built ==
  true)
- HasImage removed in favor of a corrected fn.Built

* linting, misspellings and docs rebuild

* warn user if git settings exist on a non-remote build

* lint error fix

* test flag unsetting persists

* allow unknown flags in preparsing of flags

* pre-submit cleanup

* update cmd to use client.Init
2023-02-06 08:43:35 +00:00
..
TestDeploy_NamespaceDefaults fix: KUBECONFIG unit test interference (#1387) 2022-10-31 10:04:13 +00:00
TestDeploy_NamespaceRedeployWarning fix: KUBECONFIG unit test interference (#1387) 2022-10-31 10:04:13 +00:00
TestX_ConfigApplied/func feat: deploy command global config with function context (#1434) 2023-02-06 08:43:35 +00:00
TestX_ConfigPrecedence/func feat: deploy command global config with function context (#1434) 2023-02-06 08:43:35 +00:00
Test_namespace fix: KUBECONFIG unit test interference (#1387) 2022-10-31 10:04:13 +00:00
repository.git feat: repository management cli (#514) 2021-09-09 08:09:00 -07:00
default_kubeconfig fix: KUBECONFIG unit test interference (#1387) 2022-10-31 10:04:13 +00:00