Files
pedro-cs-ribeiro 1049d40b7d chore: add tests to validate ConfigMap/Secret key removal in server-side diff (#25216)
Signed-off-by: Pedro Ribeiro <pedro.ribeiro@cross-join.com>
Co-authored-by: Pedro Ribeiro <pedro.ribeiro@cross-join.com>
Co-authored-by: Leonardo Luz Almeida <leoluz@users.noreply.github.com>
2026-01-15 16:53:13 -05:00

99 lines
2.6 KiB
Go

package testdata
import _ "embed"
var (
//go:embed smd-service-config.yaml
ServiceConfigYAML string
//go:embed smd-service-live.yaml
ServiceLiveYAML string
//go:embed smd-service-config-2-ports.yaml
ServiceConfigWith2Ports string
//go:embed smd-service-live-with-type.yaml
LiveServiceWithTypeYAML string
//go:embed smd-service-config-ports.yaml
ServiceConfigWithSamePortsYAML string
//go:embed smd-deploy-live.yaml
DeploymentLiveYAML string
//go:embed smd-deploy-config.yaml
DeploymentConfigYAML string
//go:embed smd-deploy2-live.yaml
Deployment2LiveYAML string
//go:embed smd-deploy2-config.yaml
Deployment2ConfigYAML string
//go:embed smd-deploy2-predicted-live.json
Deployment2PredictedLiveJSONSSD string
// OpenAPIV2Doc is a binary representation of the openapi
// document available in a given k8s instance. To update
// this file the following commands can be executed:
// kubectl proxy --port=7777 &
// curl -s -H Accept:application/com.github.proto-openapi.spec.v2@v1.0+protobuf http://localhost:7777/openapi/v2 > openapiv2.bin
//
//go:embed openapiv2.bin
OpenAPIV2Doc []byte
//go:embed ssd-service-config.yaml
ServiceConfigYAMLSSD string
//go:embed ssd-service-live.yaml
ServiceLiveYAMLSSD string
//go:embed ssd-service-predicted-live.json
ServicePredictedLiveJSONSSD string
//go:embed ssd-deploy-nested-config.yaml
DeploymentNestedConfigYAMLSSD string
//go:embed ssd-deploy-nested-live.yaml
DeploymentNestedLiveYAMLSSD string
//go:embed ssd-deploy-nested-predicted-live.json
DeploymentNestedPredictedLiveJSONSSD string
//go:embed ssd-deploy-with-manual-apply-config.yaml
DeploymentApplyConfigYAMLSSD string
//go:embed ssd-deploy-with-manual-apply-live.yaml
DeploymentApplyLiveYAMLSSD string
//go:embed ssd-deploy-with-manual-apply-predicted-live.json
DeploymentApplyPredictedLiveJSONSSD string
//go:embed ssd-svc-label-live.yaml
ServiceLiveLabelYAMLSSD string
//go:embed ssd-svc-no-label-config.yaml
ServiceConfigNoLabelYAMLSSD string
//go:embed ssd-svc-no-label-predicted-live.json
ServicePredictedLiveNoLabelJSONSSD string
//go:embed ssd-deploy-composite-key-config.yaml
DeploymentCompositeKeyConfigYAMLSSD string
//go:embed ssd-deploy-composite-key-live.yaml
DeploymentCompositeKeyLiveYAMLSSD string
//go:embed ssd-deploy-composite-key-predicted-live.json
DeploymentCompositeKeyPredictedLiveJSONSSD string
//go:embed ssd-configmap-config.yaml
ConfigMapConfigYAMLSSD string
//go:embed ssd-configmap-live.yaml
ConfigMapLiveYAMLSSD string
//go:embed ssd-configmap-predicted-live.json
ConfigMapPredictedLiveJSONSSD string
)