diff --git a/pkg/apiclient/rollout/rollout.swagger.json b/pkg/apiclient/rollout/rollout.swagger.json index 490c5bcab8..c2da4990c7 100755 --- a/pkg/apiclient/rollout/rollout.swagger.json +++ b/pkg/apiclient/rollout/rollout.swagger.json @@ -813,6 +813,20 @@ }, "title": "ArgumentValueFrom defines references to fields within resources to grab for the value (i.e. Pod Template Hash)" }, + "github.com.argoproj.argo_rollouts.pkg.apis.rollouts.v1alpha1.Authentication": { + "type": "object", + "properties": { + "sigv4": { + "$ref": "#/definitions/github.com.argoproj.argo_rollouts.pkg.apis.rollouts.v1alpha1.Sigv4Config", + "title": "Sigv4 Config is the aws SigV4 configuration to use for SigV4 signing if using Amazon Managed Prometheus\n+optional" + }, + "oauth2": { + "$ref": "#/definitions/github.com.argoproj.argo_rollouts.pkg.apis.rollouts.v1alpha1.OAuth2Config", + "title": "OAuth2 config\n+optional" + } + }, + "title": "Authentication method" + }, "github.com.argoproj.argo_rollouts.pkg.apis.rollouts.v1alpha1.AwsResourceRef": { "type": "object", "properties": { @@ -1631,6 +1645,30 @@ }, "title": "NginxTrafficRouting configuration for Nginx ingress controller to control traffic routing" }, + "github.com.argoproj.argo_rollouts.pkg.apis.rollouts.v1alpha1.OAuth2Config": { + "type": "object", + "properties": { + "tokenUrl": { + "type": "string", + "title": "OAuth2 provider token URL" + }, + "clientId": { + "type": "string", + "title": "OAuth2 client ID" + }, + "clientSecret": { + "type": "string", + "title": "OAuth2 client secret" + }, + "scopes": { + "type": "array", + "items": { + "type": "string" + }, + "title": "OAuth2 scopes\n+optional" + } + } + }, "github.com.argoproj.argo_rollouts.pkg.apis.rollouts.v1alpha1.ObjectRef": { "type": "object", "properties": { @@ -1706,16 +1744,6 @@ }, "title": "PreferredDuringSchedulingIgnoredDuringExecution defines the weight of the anti-affinity injection" }, - "github.com.argoproj.argo_rollouts.pkg.apis.rollouts.v1alpha1.PrometheusAuth": { - "type": "object", - "properties": { - "sigv4": { - "$ref": "#/definitions/github.com.argoproj.argo_rollouts.pkg.apis.rollouts.v1alpha1.Sigv4Config", - "title": "+optional" - } - }, - "title": "PrometheusMetric defines the prometheus query to perform canary analysis" - }, "github.com.argoproj.argo_rollouts.pkg.apis.rollouts.v1alpha1.PrometheusMetric": { "type": "object", "properties": { @@ -1728,8 +1756,8 @@ "title": "Query is a raw prometheus query to perform" }, "authentication": { - "$ref": "#/definitions/github.com.argoproj.argo_rollouts.pkg.apis.rollouts.v1alpha1.PrometheusAuth", - "title": "Sigv4 Config is the aws SigV4 configuration to use for SigV4 signing if using Amazon Managed Prometheus\n+optional" + "$ref": "#/definitions/github.com.argoproj.argo_rollouts.pkg.apis.rollouts.v1alpha1.Authentication", + "title": "Authentication details\n+optional" }, "timeout": { "type": "string", @@ -2596,6 +2624,10 @@ "type": "string", "format": "byte", "title": "+kubebuilder:validation:Schemaless\n+kubebuilder:pruning:PreserveUnknownFields\n+kubebuilder:validation:Type=object\nJSONBody is the body of the web metric in a json format (method must be POST/PUT)" + }, + "authentication": { + "$ref": "#/definitions/github.com.argoproj.argo_rollouts.pkg.apis.rollouts.v1alpha1.Authentication", + "title": "Authentication details\n+optional" } } }, diff --git a/ui/src/models/rollout/generated/api.ts b/ui/src/models/rollout/generated/api.ts index fe2a8eca01..28465a76a8 100755 --- a/ui/src/models/rollout/generated/api.ts +++ b/ui/src/models/rollout/generated/api.ts @@ -472,6 +472,25 @@ export interface GithubComArgoprojArgoRolloutsPkgApisRolloutsV1alpha1ArgumentVal */ fieldRef?: GithubComArgoprojArgoRolloutsPkgApisRolloutsV1alpha1FieldRef; } +/** + * + * @export + * @interface GithubComArgoprojArgoRolloutsPkgApisRolloutsV1alpha1Authentication + */ +export interface GithubComArgoprojArgoRolloutsPkgApisRolloutsV1alpha1Authentication { + /** + * + * @type {GithubComArgoprojArgoRolloutsPkgApisRolloutsV1alpha1Sigv4Config} + * @memberof GithubComArgoprojArgoRolloutsPkgApisRolloutsV1alpha1Authentication + */ + sigv4?: GithubComArgoprojArgoRolloutsPkgApisRolloutsV1alpha1Sigv4Config; + /** + * + * @type {GithubComArgoprojArgoRolloutsPkgApisRolloutsV1alpha1OAuth2Config} + * @memberof GithubComArgoprojArgoRolloutsPkgApisRolloutsV1alpha1Authentication + */ + oauth2?: GithubComArgoprojArgoRolloutsPkgApisRolloutsV1alpha1OAuth2Config; +} /** * * @export @@ -1614,6 +1633,37 @@ export interface GithubComArgoprojArgoRolloutsPkgApisRolloutsV1alpha1NginxTraffi */ stableIngresses?: Array; } +/** + * + * @export + * @interface GithubComArgoprojArgoRolloutsPkgApisRolloutsV1alpha1OAuth2Config + */ +export interface GithubComArgoprojArgoRolloutsPkgApisRolloutsV1alpha1OAuth2Config { + /** + * + * @type {string} + * @memberof GithubComArgoprojArgoRolloutsPkgApisRolloutsV1alpha1OAuth2Config + */ + tokenUrl?: string; + /** + * + * @type {string} + * @memberof GithubComArgoprojArgoRolloutsPkgApisRolloutsV1alpha1OAuth2Config + */ + clientId?: string; + /** + * + * @type {string} + * @memberof GithubComArgoprojArgoRolloutsPkgApisRolloutsV1alpha1OAuth2Config + */ + clientSecret?: string; + /** + * + * @type {Array} + * @memberof GithubComArgoprojArgoRolloutsPkgApisRolloutsV1alpha1OAuth2Config + */ + scopes?: Array; +} /** * * @export @@ -1709,19 +1759,6 @@ export interface GithubComArgoprojArgoRolloutsPkgApisRolloutsV1alpha1PreferredDu */ weight?: number; } -/** - * - * @export - * @interface GithubComArgoprojArgoRolloutsPkgApisRolloutsV1alpha1PrometheusAuth - */ -export interface GithubComArgoprojArgoRolloutsPkgApisRolloutsV1alpha1PrometheusAuth { - /** - * - * @type {GithubComArgoprojArgoRolloutsPkgApisRolloutsV1alpha1Sigv4Config} - * @memberof GithubComArgoprojArgoRolloutsPkgApisRolloutsV1alpha1PrometheusAuth - */ - sigv4?: GithubComArgoprojArgoRolloutsPkgApisRolloutsV1alpha1Sigv4Config; -} /** * * @export @@ -1742,10 +1779,10 @@ export interface GithubComArgoprojArgoRolloutsPkgApisRolloutsV1alpha1PrometheusM query?: string; /** * - * @type {GithubComArgoprojArgoRolloutsPkgApisRolloutsV1alpha1PrometheusAuth} + * @type {GithubComArgoprojArgoRolloutsPkgApisRolloutsV1alpha1Authentication} * @memberof GithubComArgoprojArgoRolloutsPkgApisRolloutsV1alpha1PrometheusMetric */ - authentication?: GithubComArgoprojArgoRolloutsPkgApisRolloutsV1alpha1PrometheusAuth; + authentication?: GithubComArgoprojArgoRolloutsPkgApisRolloutsV1alpha1Authentication; /** * * @type {string} @@ -2892,6 +2929,12 @@ export interface GithubComArgoprojArgoRolloutsPkgApisRolloutsV1alpha1WebMetric { * @memberof GithubComArgoprojArgoRolloutsPkgApisRolloutsV1alpha1WebMetric */ jsonBody?: string; + /** + * + * @type {GithubComArgoprojArgoRolloutsPkgApisRolloutsV1alpha1Authentication} + * @memberof GithubComArgoprojArgoRolloutsPkgApisRolloutsV1alpha1WebMetric + */ + authentication?: GithubComArgoprojArgoRolloutsPkgApisRolloutsV1alpha1Authentication; } /** *