fix: pathParamPrefix is optional (#11796) (#11943)

* fix: pathParamPrefix is optional

Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>

* go mod tidy

Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>

* fix import

Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>

* fix codegen

Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>

Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
This commit is contained in:
Michael Crenshaw
2023-01-13 13:34:03 -05:00
committed by GitHub
parent 1ab40261c0
commit 2ddb7772d1
6 changed files with 4 additions and 17 deletions

View File

@@ -5476,7 +5476,6 @@ spec:
- spec
type: object
required:
- pathParamPrefix
- repoURL
- revision
type: object
@@ -7367,7 +7366,6 @@ spec:
- spec
type: object
required:
- pathParamPrefix
- repoURL
- revision
type: object
@@ -10916,7 +10914,6 @@ spec:
- spec
type: object
required:
- pathParamPrefix
- repoURL
- revision
type: object

View File

@@ -1462,7 +1462,6 @@ spec:
- spec
type: object
required:
- pathParamPrefix
- repoURL
- revision
type: object
@@ -3353,7 +3352,6 @@ spec:
- spec
type: object
required:
- pathParamPrefix
- repoURL
- revision
type: object
@@ -6902,7 +6900,6 @@ spec:
- spec
type: object
required:
- pathParamPrefix
- repoURL
- revision
type: object

View File

@@ -5476,7 +5476,6 @@ spec:
- spec
type: object
required:
- pathParamPrefix
- repoURL
- revision
type: object
@@ -7367,7 +7366,6 @@ spec:
- spec
type: object
required:
- pathParamPrefix
- repoURL
- revision
type: object
@@ -10916,7 +10914,6 @@ spec:
- spec
type: object
required:
- pathParamPrefix
- repoURL
- revision
type: object

View File

@@ -5476,7 +5476,6 @@ spec:
- spec
type: object
required:
- pathParamPrefix
- repoURL
- revision
type: object
@@ -7367,7 +7366,6 @@ spec:
- spec
type: object
required:
- pathParamPrefix
- repoURL
- revision
type: object
@@ -10916,7 +10914,6 @@ spec:
- spec
type: object
required:
- pathParamPrefix
- repoURL
- revision
type: object

View File

@@ -313,7 +313,7 @@ type GitGenerator struct {
Revision string `json:"revision" protobuf:"bytes,4,name=revision"`
RequeueAfterSeconds *int64 `json:"requeueAfterSeconds,omitempty" protobuf:"bytes,5,name=requeueAfterSeconds"`
Template ApplicationSetTemplate `json:"template,omitempty" protobuf:"bytes,6,name=template"`
PathParamPrefix string `json:"pathParamPrefix" protobuf:"bytes,7,name=pathParamPrefix"`
PathParamPrefix string `json:"pathParamPrefix,omitempty" protobuf:"bytes,7,name=pathParamPrefix"`
}
type GitDirectoryGeneratorItem struct {

View File

@@ -3066,13 +3066,12 @@ func schema_pkg_apis_application_v1alpha1_GitGenerator(ref common.ReferenceCallb
},
"pathParamPrefix": {
SchemaProps: spec.SchemaProps{
Default: "",
Type: []string{"string"},
Format: "",
Type: []string{"string"},
Format: "",
},
},
},
Required: []string{"repoURL", "revision", "pathParamPrefix"},
Required: []string{"repoURL", "revision"},
},
},
Dependencies: []string{