-
Notifications
You must be signed in to change notification settings - Fork 226
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c2d7889
commit def5b9e
Showing
15 changed files
with
350 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
internal/testutil/testdata/dataset-with-autosetters-set/mysql/Kptfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
apiVersion: krm.dev/v1alpha1 | ||
kind: Kptfile | ||
metadata: | ||
name: mysql | ||
packageMetadata: | ||
shortDescription: sample description | ||
openAPI: | ||
definitions: | ||
io.k8s.cli.setters.gcloud.core.project: | ||
x-k8s-cli: | ||
setter: | ||
name: gcloud.core.project | ||
value: my-project | ||
setBy: kpt | ||
isSet: true | ||
io.k8s.cli.setters.gcloud.project.projectNumber: | ||
x-k8s-cli: | ||
setter: | ||
name: gcloud.project.projectNumber | ||
value: "1234" | ||
setBy: kpt | ||
isSet: true |
16 changes: 16 additions & 0 deletions
16
internal/testutil/testdata/dataset-with-autosetters-set/mysql/deployment.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Copyright 2019 The Kubernetes Authors. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
namespace: my-project # {"$openapi":"gcloud.core.project"} | ||
name: mysql-deployment | ||
spec: | ||
replicas: 3 | ||
foo: "1234" # {"$openapi":"gcloud.project.projectNumber"} | ||
template: | ||
spec: | ||
containers: | ||
- name: mysql | ||
image: mysql:1.7.9 |
6 changes: 6 additions & 0 deletions
6
internal/testutil/testdata/dataset-with-autosetters-set/mysql/nosetters/Kptfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
apiVersion: krm.dev/v1alpha1 | ||
kind: Kptfile | ||
metadata: | ||
name: storage | ||
packageMetadata: | ||
shortDescription: sample description |
15 changes: 15 additions & 0 deletions
15
internal/testutil/testdata/dataset-with-autosetters-set/mysql/nosetters/deployment.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Copyright 2019 The Kubernetes Authors. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
namespace: myspace | ||
name: nosetters-deployment | ||
spec: | ||
replicas: 4 | ||
template: | ||
spec: | ||
containers: | ||
- name: nosetters | ||
image: nosetters:1.7.7 |
22 changes: 22 additions & 0 deletions
22
internal/testutil/testdata/dataset-with-autosetters-set/mysql/storage/Kptfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
apiVersion: krm.dev/v1alpha1 | ||
kind: Krmfile | ||
metadata: | ||
name: storage | ||
packageMetadata: | ||
shortDescription: sample description | ||
openAPI: | ||
definitions: | ||
io.k8s.cli.setters.gcloud.core.project: | ||
x-k8s-cli: | ||
setter: | ||
name: gcloud.core.project | ||
value: my-project | ||
setBy: kpt | ||
isSet: true | ||
io.k8s.cli.setters.gcloud.project.projectNumber: | ||
x-k8s-cli: | ||
setter: | ||
name: gcloud.project.projectNumber | ||
value: "1234" | ||
setBy: kpt | ||
isSet: true |
16 changes: 16 additions & 0 deletions
16
internal/testutil/testdata/dataset-with-autosetters-set/mysql/storage/deployment.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Copyright 2019 The Kubernetes Authors. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
namespace: my-project # {"$openapi":"gcloud.core.project"} | ||
name: storage-deployment | ||
spec: | ||
replicas: 4 | ||
foo: "1234" # {"$openapi":"gcloud.project.projectNumber"} | ||
template: | ||
spec: | ||
containers: | ||
- name: storage | ||
image: storage:1.7.7 |
18 changes: 18 additions & 0 deletions
18
internal/testutil/testdata/dataset-with-autosetters/mysql/Kptfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
apiVersion: krm.dev/v1alpha1 | ||
kind: Kptfile | ||
metadata: | ||
name: mysql | ||
packageMetadata: | ||
shortDescription: sample description | ||
openAPI: | ||
definitions: | ||
io.k8s.cli.setters.gcloud.core.project: | ||
x-k8s-cli: | ||
setter: | ||
name: gcloud.core.project | ||
value: PROJECT_ID | ||
io.k8s.cli.setters.gcloud.project.projectNumber: | ||
x-k8s-cli: | ||
setter: | ||
name: gcloud.project.projectNumber | ||
value: PROJECT_NUMBER |
16 changes: 16 additions & 0 deletions
16
internal/testutil/testdata/dataset-with-autosetters/mysql/deployment.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Copyright 2019 The Kubernetes Authors. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
namespace: myspace # {"$openapi":"gcloud.core.project"} | ||
name: mysql-deployment | ||
spec: | ||
replicas: 3 | ||
foo: bar # {"$openapi":"gcloud.project.projectNumber"} | ||
template: | ||
spec: | ||
containers: | ||
- name: mysql | ||
image: mysql:1.7.9 |
6 changes: 6 additions & 0 deletions
6
internal/testutil/testdata/dataset-with-autosetters/mysql/nosetters/Kptfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
apiVersion: krm.dev/v1alpha1 | ||
kind: Kptfile | ||
metadata: | ||
name: storage | ||
packageMetadata: | ||
shortDescription: sample description |
15 changes: 15 additions & 0 deletions
15
internal/testutil/testdata/dataset-with-autosetters/mysql/nosetters/deployment.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Copyright 2019 The Kubernetes Authors. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
namespace: myspace | ||
name: nosetters-deployment | ||
spec: | ||
replicas: 4 | ||
template: | ||
spec: | ||
containers: | ||
- name: nosetters | ||
image: nosetters:1.7.7 |
18 changes: 18 additions & 0 deletions
18
internal/testutil/testdata/dataset-with-autosetters/mysql/storage/Kptfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
apiVersion: krm.dev/v1alpha1 | ||
kind: Krmfile | ||
metadata: | ||
name: storage | ||
packageMetadata: | ||
shortDescription: sample description | ||
openAPI: | ||
definitions: | ||
io.k8s.cli.setters.gcloud.core.project: | ||
x-k8s-cli: | ||
setter: | ||
name: gcloud.core.project | ||
value: PROJECT_ID | ||
io.k8s.cli.setters.gcloud.project.projectNumber: | ||
x-k8s-cli: | ||
setter: | ||
name: gcloud.project.projectNumber | ||
value: PROJECT_NUMBER |
16 changes: 16 additions & 0 deletions
16
internal/testutil/testdata/dataset-with-autosetters/mysql/storage/deployment.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Copyright 2019 The Kubernetes Authors. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
namespace: myspace # {"$openapi":"gcloud.core.project"} | ||
name: storage-deployment | ||
spec: | ||
replicas: 4 | ||
foo: bar # {"$openapi":"gcloud.project.projectNumber"} | ||
template: | ||
spec: | ||
containers: | ||
- name: storage | ||
image: storage:1.7.7 |
Oops, something went wrong.