Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions openapi/generated_openapi/zz_generated.openapi.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions openapi/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -32305,6 +32305,14 @@
"default": ""
}
},
"helmChartList": {
"description": "helmchart list specifies the list of helmcharts that the samples operator will install",
"type": "array",
"items": {
"default": {},
"$ref": "#/definitions/com.github.openshift.api.samples.v1.HelmChart"
}
},
"managementState": {
"description": "managementState is top level on/off type of switch for all operators. When \"Managed\", this operator processes config and manipulates the samples accordingly. When \"Unmanaged\", this operator ignores any updates to the resources it watches. When \"Removed\", it reacts that same wasy as it does if the Config object is deleted, meaning any ImageStreams or Templates it manages (i.e. it honors the skipped lists) and the registry secret are deleted, along with the ConfigMap in the operator's namespace that represents the last config used to manipulate the samples,",
"type": "string"
Expand Down Expand Up @@ -32395,6 +32403,20 @@
}
}
},
"com.github.openshift.api.samples.v1.HelmChart": {
"type": "object",
"properties": {
"namespace": {
"type": "string"
},
"releaseName": {
"type": "string"
},
"url": {
"type": "string"
}
}
},
"com.github.openshift.api.security.v1.AllowedFlexVolume": {
"description": "AllowedFlexVolume represents a single Flexvolume that is allowed to be used.",
"type": "object",
Expand Down
12 changes: 12 additions & 0 deletions samples/v1/00_samplesconfig.crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,18 @@ spec:
type: array
items:
type: string
helmChartList:
description: helmchart list specifies the list of helmcharts that the samples operator will install
type: array
items:
type: object
properties:
namespace:
type: string
releaseName:
type: string
url:
type: string
managementState:
description: managementState is top level on/off type of switch for all operators. When "Managed", this operator processes config and manipulates the samples accordingly. When "Unmanaged", this operator ignores any updates to the resources it watches. When "Removed", it reacts that same wasy as it does if the Config object is deleted, meaning any ImageStreams or Templates it manages (i.e. it honors the skipped lists) and the registry secret are deleted, along with the ConfigMap in the operator's namespace that represents the last config used to manipulate the samples,
type: string
Expand Down
11 changes: 11 additions & 0 deletions samples/v1/types_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,17 @@ type ConfigSpec struct {
// content but the operator will not recreate(or update) anything
// listed here.
SkippedTemplates []string `json:"skippedTemplates,omitempty" protobuf:"bytes,6,opt,name=skippedTemplates"`

// helmchart list specifies the list of helmcharts that the samples operator will install
HelmChartList []HelmChart `json:"helmChartList,omitempty" protobuf:"bytes,7,opt,name=helmChartList"`
}

type HelmChart struct {
URL string `json:"url,omitempty"`

Namespace string `json:"namespace,omitempty"`

ReleaseName string `json:"releaseName,omitempty"`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

godoc these fields please. Also is there any validation we can put in place?

should these be required fields?

}

// ConfigStatus contains the actual configuration in effect, as well as various details
Expand Down
21 changes: 21 additions & 0 deletions samples/v1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions samples/v1/zz_generated.swagger_doc_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.