diff --git a/helm/kubetruth/values.yaml b/helm/kubetruth/values.yaml index e297cbb..1feec96 100644 --- a/helm/kubetruth/values.yaml +++ b/helm/kubetruth/values.yaml @@ -107,7 +107,7 @@ projectMappings: annotations: kubetruth/project_heirarchy: | {{ project_heirarchy | to_yaml | indent: 6 | lstrip }} - kubtruth/parameter_origins: | + kubetruth/parameter_origins: | {{ parameter_origins | to_yaml | indent: 6 | lstrip }} data: {%- for parameter in parameters %} @@ -127,7 +127,7 @@ projectMappings: annotations: kubetruth/project_heirarchy: | {{ project_heirarchy | to_yaml | indent: 6 | lstrip }} - kubtruth/parameter_origins: | + kubetruth/parameter_origins: | {{ secret_origins | to_yaml | indent: 6 | lstrip }} data: {%- for secret in secrets %} diff --git a/spec/fixtures/vcr/Kubetruth_KubeApi/custom_resource/can_get_project_mappings.yml b/spec/fixtures/vcr/Kubetruth_KubeApi/custom_resource/can_get_project_mappings.yml index 9836d1a..3ea7f91 100644 --- a/spec/fixtures/vcr/Kubetruth_KubeApi/custom_resource/can_get_project_mappings.yml +++ b/spec/fixtures/vcr/Kubetruth_KubeApi/custom_resource/can_get_project_mappings.yml @@ -82,7 +82,7 @@ http_interactions: \"{{ context.resource_name }}\"\n namespace: \"{{ context.resource_namespace }}\"\n labels:\n version: \"{{ parameters | sort | to_json | sha256 | slice: 0, 7 }}\"\n annotations:\n kubetruth/project_heirarchy: |\n {{ - project_heirarchy | to_yaml | indent: 6 | lstrip }}\n kubtruth/parameter_origins: + project_heirarchy | to_yaml | indent: 6 | lstrip }}\n kubetruth/parameter_origins: |\n {{ parameter_origins | to_yaml | indent: 6 | lstrip }}\ndata:\n {%- for parameter in parameters %}\n {{ parameter[0] | key_safe | stringify }}: {{ parameter[1] | stringify }}\n {%- endfor %}\n{%- endif %}\n","secret":"{%- @@ -90,7 +90,7 @@ http_interactions: Secret\nmetadata:\n name: \"{{ context.resource_name }}\"\n namespace: \"{{ context.resource_namespace }}\"\n labels:\n version: \"{{ secrets | sort | to_json | sha256 | slice: 0, 7 }}\"\n annotations:\n kubetruth/project_heirarchy: - |\n {{ project_heirarchy | to_yaml | indent: 6 | lstrip }}\n kubtruth/parameter_origins: + |\n {{ project_heirarchy | to_yaml | indent: 6 | lstrip }}\n kubetruth/parameter_origins: |\n {{ secret_origins | to_yaml | indent: 6 | lstrip }}\ndata:\n {%- for secret in secrets %}\n {{ secret[0] | key_safe | stringify }}: {{ secret[1] | encode64 | stringify }}\n {%- endfor %}\n{%- endunless %}\n"},"scope":"root","skip":false}}],"kind":"ProjectMappingList","metadata":{"continue":"","resourceVersion":"14342"}} diff --git a/spec/fixtures/vcr/Kubetruth_KubeApi/custom_resource/can_watch_project_mappings.yml b/spec/fixtures/vcr/Kubetruth_KubeApi/custom_resource/can_watch_project_mappings.yml index cdd2976..ee687a7 100644 --- a/spec/fixtures/vcr/Kubetruth_KubeApi/custom_resource/can_watch_project_mappings.yml +++ b/spec/fixtures/vcr/Kubetruth_KubeApi/custom_resource/can_watch_project_mappings.yml @@ -82,7 +82,7 @@ http_interactions: \"{{ context.resource_name }}\"\n namespace: \"{{ context.resource_namespace }}\"\n labels:\n version: \"{{ parameters | sort | to_json | sha256 | slice: 0, 7 }}\"\n annotations:\n kubetruth/project_heirarchy: |\n {{ - project_heirarchy | to_yaml | indent: 6 | lstrip }}\n kubtruth/parameter_origins: + project_heirarchy | to_yaml | indent: 6 | lstrip }}\n kubetruth/parameter_origins: |\n {{ parameter_origins | to_yaml | indent: 6 | lstrip }}\ndata:\n {%- for parameter in parameters %}\n {{ parameter[0] | key_safe | stringify }}: {{ parameter[1] | stringify }}\n {%- endfor %}\n{%- endif %}\n","secret":"{%- @@ -90,7 +90,7 @@ http_interactions: Secret\nmetadata:\n name: \"{{ context.resource_name }}\"\n namespace: \"{{ context.resource_namespace }}\"\n labels:\n version: \"{{ secrets | sort | to_json | sha256 | slice: 0, 7 }}\"\n annotations:\n kubetruth/project_heirarchy: - |\n {{ project_heirarchy | to_yaml | indent: 6 | lstrip }}\n kubtruth/parameter_origins: + |\n {{ project_heirarchy | to_yaml | indent: 6 | lstrip }}\n kubetruth/parameter_origins: |\n {{ secret_origins | to_yaml | indent: 6 | lstrip }}\ndata:\n {%- for secret in secrets %}\n {{ secret[0] | key_safe | stringify }}: {{ secret[1] | encode64 | stringify }}\n {%- endfor %}\n{%- endunless %}\n"},"scope":"root","skip":false}}],"kind":"ProjectMappingList","metadata":{"continue":"","resourceVersion":"14343"}} @@ -139,7 +139,7 @@ http_interactions: \"{{ context.resource_name }}\"\n namespace: \"{{ context.resource_namespace }}\"\n labels:\n version: \"{{ parameters | sort | to_json | sha256 | slice: 0, 7 }}\"\n annotations:\n kubetruth/project_heirarchy: |\n {{ - project_heirarchy | to_yaml | indent: 6 | lstrip }}\n kubtruth/parameter_origins: + project_heirarchy | to_yaml | indent: 6 | lstrip }}\n kubetruth/parameter_origins: |\n {{ parameter_origins | to_yaml | indent: 6 | lstrip }}\ndata:\n {%- for parameter in parameters %}\n {{ parameter[0] | key_safe | stringify }}: {{ parameter[1] | stringify }}\n {%- endfor %}\n{%- endif %}\n","secret":"{%- @@ -147,7 +147,7 @@ http_interactions: Secret\nmetadata:\n name: \"{{ context.resource_name }}\"\n namespace: \"{{ context.resource_namespace }}\"\n labels:\n version: \"{{ secrets | sort | to_json | sha256 | slice: 0, 7 }}\"\n annotations:\n kubetruth/project_heirarchy: - |\n {{ project_heirarchy | to_yaml | indent: 6 | lstrip }}\n kubtruth/parameter_origins: + |\n {{ project_heirarchy | to_yaml | indent: 6 | lstrip }}\n kubetruth/parameter_origins: |\n {{ secret_origins | to_yaml | indent: 6 | lstrip }}\ndata:\n {%- for secret in secrets %}\n {{ secret[0] | key_safe | stringify }}: {{ secret[1] | encode64 | stringify }}\n {%- endfor %}\n{%- endunless %}\n"},"scope":"root","skip":false}}],"kind":"ProjectMappingList","metadata":{"continue":"","resourceVersion":"14343"}} diff --git a/spec/fixtures/vcr/Kubetruth_KubeApi/get_resource/gets_api_resource.yml b/spec/fixtures/vcr/Kubetruth_KubeApi/get_resource/gets_api_resource.yml index 8e0424c..f07057e 100644 --- a/spec/fixtures/vcr/Kubetruth_KubeApi/get_resource/gets_api_resource.yml +++ b/spec/fixtures/vcr/Kubetruth_KubeApi/get_resource/gets_api_resource.yml @@ -42,7 +42,7 @@ http_interactions: \"{{ context.resource_name }}\"\n namespace: \"{{ context.resource_namespace }}\"\n labels:\n version: \"{{ parameters | sort | to_json | sha256 | slice: 0, 7 }}\"\n annotations:\n kubetruth/project_heirarchy: |\n {{ - project_heirarchy | to_yaml | indent: 6 | lstrip }}\n kubtruth/parameter_origins: + project_heirarchy | to_yaml | indent: 6 | lstrip }}\n kubetruth/parameter_origins: |\n {{ parameter_origins | to_yaml | indent: 6 | lstrip }}\ndata:\n {%- for parameter in parameters %}\n {{ parameter[0] | key_safe | stringify }}: {{ parameter[1] | stringify }}\n {%- endfor %}\n{%- endif %}\n","secret":"{%- @@ -50,7 +50,7 @@ http_interactions: Secret\nmetadata:\n name: \"{{ context.resource_name }}\"\n namespace: \"{{ context.resource_namespace }}\"\n labels:\n version: \"{{ secrets | sort | to_json | sha256 | slice: 0, 7 }}\"\n annotations:\n kubetruth/project_heirarchy: - |\n {{ project_heirarchy | to_yaml | indent: 6 | lstrip }}\n kubtruth/parameter_origins: + |\n {{ project_heirarchy | to_yaml | indent: 6 | lstrip }}\n kubetruth/parameter_origins: |\n {{ secret_origins | to_yaml | indent: 6 | lstrip }}\ndata:\n {%- for secret in secrets %}\n {{ secret[0] | key_safe | stringify }}: {{ secret[1] | encode64 | stringify }}\n {%- endfor %}\n{%- endunless %}\n"},"scope":"root","skip":false}} diff --git a/spec/fixtures/vcr/Kubetruth_KubeApi/validate_async/does_api_requests_concurrently.yml b/spec/fixtures/vcr/Kubetruth_KubeApi/validate_async/does_api_requests_concurrently.yml index 8061fc8..f55e0ef 100644 --- a/spec/fixtures/vcr/Kubetruth_KubeApi/validate_async/does_api_requests_concurrently.yml +++ b/spec/fixtures/vcr/Kubetruth_KubeApi/validate_async/does_api_requests_concurrently.yml @@ -122,7 +122,7 @@ http_interactions: \"{{ context.resource_name }}\"\n namespace: \"{{ context.resource_namespace }}\"\n labels:\n version: \"{{ parameters | sort | to_json | sha256 | slice: 0, 7 }}\"\n annotations:\n kubetruth/project_heirarchy: |\n {{ - project_heirarchy | to_yaml | indent: 6 | lstrip }}\n kubtruth/parameter_origins: + project_heirarchy | to_yaml | indent: 6 | lstrip }}\n kubetruth/parameter_origins: |\n {{ parameter_origins | to_yaml | indent: 6 | lstrip }}\ndata:\n {%- for parameter in parameters %}\n {{ parameter[0] | key_safe | stringify }}: {{ parameter[1] | stringify }}\n {%- endfor %}\n{%- endif %}\n","secret":"{%- @@ -130,7 +130,7 @@ http_interactions: Secret\nmetadata:\n name: \"{{ context.resource_name }}\"\n namespace: \"{{ context.resource_namespace }}\"\n labels:\n version: \"{{ secrets | sort | to_json | sha256 | slice: 0, 7 }}\"\n annotations:\n kubetruth/project_heirarchy: - |\n {{ project_heirarchy | to_yaml | indent: 6 | lstrip }}\n kubtruth/parameter_origins: + |\n {{ project_heirarchy | to_yaml | indent: 6 | lstrip }}\n kubetruth/parameter_origins: |\n {{ secret_origins | to_yaml | indent: 6 | lstrip }}\ndata:\n {%- for secret in secrets %}\n {{ secret[0] | key_safe | stringify }}: {{ secret[1] | encode64 | stringify }}\n {%- endfor %}\n{%- endunless %}\n"},"scope":"root","skip":false}}],"kind":"ProjectMappingList","metadata":{"continue":"","resourceVersion":"4565"}} @@ -179,7 +179,7 @@ http_interactions: \"{{ context.resource_name }}\"\n namespace: \"{{ context.resource_namespace }}\"\n labels:\n version: \"{{ parameters | sort | to_json | sha256 | slice: 0, 7 }}\"\n annotations:\n kubetruth/project_heirarchy: |\n {{ - project_heirarchy | to_yaml | indent: 6 | lstrip }}\n kubtruth/parameter_origins: + project_heirarchy | to_yaml | indent: 6 | lstrip }}\n kubetruth/parameter_origins: |\n {{ parameter_origins | to_yaml | indent: 6 | lstrip }}\ndata:\n {%- for parameter in parameters %}\n {{ parameter[0] | key_safe | stringify }}: {{ parameter[1] | stringify }}\n {%- endfor %}\n{%- endif %}\n","secret":"{%- @@ -187,7 +187,7 @@ http_interactions: Secret\nmetadata:\n name: \"{{ context.resource_name }}\"\n namespace: \"{{ context.resource_namespace }}\"\n labels:\n version: \"{{ secrets | sort | to_json | sha256 | slice: 0, 7 }}\"\n annotations:\n kubetruth/project_heirarchy: - |\n {{ project_heirarchy | to_yaml | indent: 6 | lstrip }}\n kubtruth/parameter_origins: + |\n {{ project_heirarchy | to_yaml | indent: 6 | lstrip }}\n kubetruth/parameter_origins: |\n {{ secret_origins | to_yaml | indent: 6 | lstrip }}\ndata:\n {%- for secret in secrets %}\n {{ secret[0] | key_safe | stringify }}: {{ secret[1] | encode64 | stringify }}\n {%- endfor %}\n{%- endunless %}\n"},"scope":"root","skip":false}}],"kind":"ProjectMappingList","metadata":{"continue":"","resourceVersion":"4565"}}