suite: pod enableServiceLinks test templates: - common.yaml tests: - it: should pass with enableServiceLinks disabled from "global" set: podOptions: enableServiceLinks: false workload: workload-name1: enabled: true primary: true type: Deployment podSpec: {} asserts: - documentIndex: &deploymentDoc 0 isKind: of: Deployment - documentIndex: *deploymentDoc equal: path: spec.template.spec.enableServiceLinks value: false - it: should pass with enableServiceLinks enabled from "global" set: podOptions: enableServiceLinks: true workload: workload-name1: enabled: true primary: true type: Deployment podSpec: {} asserts: - documentIndex: *deploymentDoc isKind: of: Deployment - documentIndex: *deploymentDoc equal: path: spec.template.spec.enableServiceLinks value: true - it: should pass with disabled enableServiceLinks from pod set: podOptions: enableServiceLinks: true workload: workload-name1: enabled: true primary: true type: Deployment podSpec: enableServiceLinks: false asserts: - documentIndex: *deploymentDoc equal: path: spec.template.spec.enableServiceLinks value: false - it: should pass with enabled enableServiceLinks from pod set: podOptions: enableServiceLinks: false workload: workload-name1: enabled: true primary: true type: Deployment podSpec: enableServiceLinks: true asserts: - documentIndex: *deploymentDoc equal: path: spec.template.spec.enableServiceLinks value: true