-
Notifications
You must be signed in to change notification settings - Fork 258
Split/fn eval namespace #4444
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Split/fn eval namespace #4444
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,9 @@ | ||||||||
| # Set default behavior to automatically normalize line endings | ||||||||
| * text=auto | ||||||||
|
Comment on lines
+1
to
+2
|
||||||||
| # Set default behavior to automatically normalize line endings | |
| * text=auto | |
| # Enforce consistent line endings for script files |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| diff --git a/resources.yaml b/resources.yaml | ||
| index 9d1f786..f2eec52 100644 | ||
| --- a/resources.yaml | ||
| +++ b/resources.yaml | ||
| @@ -1,26 +1,26 @@ | ||
| -# Copyright 2021 The kpt Authors | ||
| -# | ||
| -# Licensed under the Apache License, Version 2.0 (the "License"); | ||
| -# you may not use this file except in compliance with the License. | ||
| -# You may obtain a copy of the License at | ||
| -# | ||
| -# http://www.apache.org/licenses/LICENSE-2.0 | ||
| -# | ||
| -# Unless required by applicable law or agreed to in writing, software | ||
| -# distributed under the License is distributed on an "AS IS" BASIS, | ||
| -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| -# See the License for the specific language governing permissions and | ||
| -# limitations under the License. | ||
| -apiVersion: apps/v1 | ||
| -kind: Deployment | ||
| -metadata: | ||
| - name: nginx-deployment | ||
| -spec: | ||
| - replicas: 3 | ||
| ---- | ||
| -apiVersion: custom.io/v1 | ||
| -kind: Custom | ||
| -metadata: | ||
| - name: custom | ||
| -spec: | ||
| - image: nginx:1.2.3 | ||
| +# Copyright 2021 The kpt Authors | ||
| +# | ||
| +# Licensed under the Apache License, Version 2.0 (the "License"); | ||
| +# you may not use this file except in compliance with the License. | ||
| +# You may obtain a copy of the License at | ||
| +# | ||
| +# http://www.apache.org/licenses/LICENSE-2.0 | ||
| +# | ||
| +# Unless required by applicable law or agreed to in writing, software | ||
| +# distributed under the License is distributed on an "AS IS" BASIS, | ||
| +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| +# See the License for the specific language governing permissions and | ||
| +# limitations under the License. | ||
| +apiVersion: apps/v1 | ||
| +kind: Deployment | ||
| +metadata: | ||
| + name: nginx-deployment | ||
| +spec: | ||
| + replicas: 3 | ||
| +--- | ||
| +apiVersion: custom.io/v1 | ||
| +kind: Custom | ||
| +metadata: | ||
| + name: custom | ||
| +spec: | ||
| + image: nginx:1.2.3 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| diff --git a/resources.yaml b/resources.yaml | ||
| index 9d1f786..f2eec52 100644 | ||
| --- a/resources.yaml | ||
| +++ b/resources.yaml | ||
| @@ -1,26 +1,26 @@ | ||
| -# Copyright 2021 The kpt Authors | ||
| -# | ||
| -# Licensed under the Apache License, Version 2.0 (the "License"); | ||
| -# you may not use this file except in compliance with the License. | ||
| -# You may obtain a copy of the License at | ||
| -# | ||
| -# http://www.apache.org/licenses/LICENSE-2.0 | ||
| -# | ||
| -# Unless required by applicable law or agreed to in writing, software | ||
| -# distributed under the License is distributed on an "AS IS" BASIS, | ||
| -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| -# See the License for the specific language governing permissions and | ||
| -# limitations under the License. | ||
| -apiVersion: apps/v1 | ||
| -kind: Deployment | ||
| -metadata: | ||
| - name: nginx-deployment | ||
| -spec: | ||
| - replicas: 3 | ||
| ---- | ||
| -apiVersion: custom.io/v1 | ||
| -kind: Custom | ||
| -metadata: | ||
| - name: custom | ||
| -spec: | ||
| - image: nginx:1.2.3 | ||
| +# Copyright 2021 The kpt Authors | ||
| +# | ||
| +# Licensed under the Apache License, Version 2.0 (the "License"); | ||
| +# you may not use this file except in compliance with the License. | ||
| +# You may obtain a copy of the License at | ||
| +# | ||
| +# http://www.apache.org/licenses/LICENSE-2.0 | ||
| +# | ||
| +# Unless required by applicable law or agreed to in writing, software | ||
| +# distributed under the License is distributed on an "AS IS" BASIS, | ||
| +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| +# See the License for the specific language governing permissions and | ||
| +# limitations under the License. | ||
| +apiVersion: apps/v1 | ||
| +kind: Deployment | ||
| +metadata: | ||
| + name: nginx-deployment | ||
| +spec: | ||
| + replicas: 3 | ||
| +--- | ||
| +apiVersion: custom.io/v1 | ||
| +kind: Custom | ||
| +metadata: | ||
| + name: custom | ||
| +spec: | ||
| + image: nginx:1.2.3 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,169 @@ | ||
| diff --git a/resources.yaml b/resources.yaml | ||
| index c0974f0..60f96f2 100644 | ||
| --- a/resources.yaml | ||
| +++ b/resources.yaml | ||
| @@ -1,82 +1,82 @@ | ||
| -# Copyright 2021 The kpt Authors | ||
| -# | ||
| -# Licensed under the Apache License, Version 2.0 (the "License"); | ||
| -# you may not use this file except in compliance with the License. | ||
| -# You may obtain a copy of the License at | ||
| -# | ||
| -# http://www.apache.org/licenses/LICENSE-2.0 | ||
| -# | ||
| -# Unless required by applicable law or agreed to in writing, software | ||
| -# distributed under the License is distributed on an "AS IS" BASIS, | ||
| -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| -# See the License for the specific language governing permissions and | ||
| -# limitations under the License. | ||
| -apiVersion: apps/v1 | ||
| -kind: Deployment | ||
| -metadata: | ||
| - name: my-nginx | ||
| - namespace: my-space | ||
| - labels: | ||
| - env: dev | ||
| - foo: bar | ||
| -spec: | ||
| - # comment 1 | ||
| - replicas: 3 | ||
| - selector: | ||
| - # comment 2 | ||
| - matchLabels: # comment 3 | ||
| - # comment 4 | ||
| - app: nginx # comment 5 | ||
| - template: | ||
| - metadata: | ||
| - labels: | ||
| - app: nginx | ||
| - spec: | ||
| - # comment 6 | ||
| - containers: | ||
| - # comment 7 | ||
| - - name: nginx | ||
| - image: 'nginx:1.14.2' # comment 8 | ||
| - ports: | ||
| - # comment 9 | ||
| - - containerPort: 80 # comment 10 | ||
| ---- | ||
| -apiVersion: v1 | ||
| -kind: Service | ||
| -metadata: | ||
| - name: my-service | ||
| -spec: | ||
| - ports: | ||
| - # comment 1 | ||
| - - name: etcd-server-ssl | ||
| - port: 2380 | ||
| - # comment 2 | ||
| - - name: etcd-client-ssl | ||
| - port: 2379 | ||
| ---- | ||
| -apiVersion: constraints.gatekeeper.sh/v1beta1 | ||
| -kind: EnforceFoo | ||
| -metadata: | ||
| - name: enforce-foo | ||
| -spec: | ||
| - parameters: | ||
| - naming_rules: | ||
| - - kind: Folder | ||
| - patterns: | ||
| - # comment 1 | ||
| - - ^(dev|prod|staging|qa|shared)$ | ||
| ---- | ||
| -apiVersion: v1 | ||
| -kind: ConfigMap | ||
| -metadata: | ||
| - name: setters-config | ||
| -data: | ||
| - # This should be the name of your Config Controller instance | ||
| - cluster-name: cluster-name | ||
| - # This should be the project where you deployed Config Controller | ||
| - project-id: project-id | ||
| - project-number: '1234567890123' | ||
| - # You can leave these defaults | ||
| - namespace: config-control | ||
| - deployment-repo: deployment-repo | ||
| - source-repo: source-repo | ||
| +# Copyright 2021 The kpt Authors | ||
| +# | ||
| +# Licensed under the Apache License, Version 2.0 (the "License"); | ||
| +# you may not use this file except in compliance with the License. | ||
| +# You may obtain a copy of the License at | ||
| +# | ||
| +# http://www.apache.org/licenses/LICENSE-2.0 | ||
| +# | ||
| +# Unless required by applicable law or agreed to in writing, software | ||
| +# distributed under the License is distributed on an "AS IS" BASIS, | ||
| +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| +# See the License for the specific language governing permissions and | ||
| +# limitations under the License. | ||
| +apiVersion: apps/v1 | ||
| +kind: Deployment | ||
| +metadata: | ||
| + name: my-nginx | ||
| + namespace: my-space | ||
| + labels: | ||
| + env: dev | ||
| + foo: bar | ||
| +spec: | ||
| + # comment 1 | ||
| + replicas: 3 | ||
| + selector: | ||
| + # comment 2 | ||
| + matchLabels: # comment 3 | ||
| + # comment 4 | ||
| + app: nginx # comment 5 | ||
| + template: | ||
| + metadata: | ||
| + labels: | ||
| + app: nginx | ||
| + spec: | ||
| + # comment 6 | ||
| + containers: | ||
| + # comment 7 | ||
| + - name: nginx | ||
| + image: 'nginx:1.14.2' # comment 8 | ||
| + ports: | ||
| + # comment 9 | ||
| + - containerPort: 80 # comment 10 | ||
| +--- | ||
| +apiVersion: v1 | ||
| +kind: Service | ||
| +metadata: | ||
| + name: my-service | ||
| +spec: | ||
| + ports: | ||
| + # comment 1 | ||
| + - name: etcd-server-ssl | ||
| + port: 2380 | ||
| + # comment 2 | ||
| + - name: etcd-client-ssl | ||
| + port: 2379 | ||
| +--- | ||
| +apiVersion: constraints.gatekeeper.sh/v1beta1 | ||
| +kind: EnforceFoo | ||
| +metadata: | ||
| + name: enforce-foo | ||
| +spec: | ||
| + parameters: | ||
| + naming_rules: | ||
| + - kind: Folder | ||
| + patterns: | ||
| + # comment 1 | ||
| + - ^(dev|prod|staging|qa|shared)$ | ||
| +--- | ||
| +apiVersion: v1 | ||
| +kind: ConfigMap | ||
| +metadata: | ||
| + name: setters-config | ||
| +data: | ||
| + # This should be the name of your Config Controller instance | ||
| + cluster-name: cluster-name | ||
| + # This should be the project where you deployed Config Controller | ||
| + project-id: project-id | ||
| + project-number: '1234567890123' | ||
| + # You can leave these defaults | ||
| + namespace: config-control | ||
| + deployment-repo: deployment-repo | ||
| + source-repo: source-repo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR description/title focus on splitting
fn evalnamespace behavior and updatingfn evalE2E data, but this diff also removes a very large portion ofe2e/testdata/fn-render/**fixtures and expected outputs (plus a vendored license). If the intent is truly “part 1: fn-eval only”, thesefn-renderdeletions should be moved to a separate PR (or reverted here) to avoid mixing concerns and accidental loss offn rendercoverage/data.