This repository has been archived by the owner on Jan 8, 2020. It is now read-only.
forked from spinnaker/deck
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(provider/kubernetes): Enable annotations, labels and secrets for…
… security groups (aka ingress resources) (spinnaker#2000)
- Loading branch information
Maarten Dirkse
committed
Oct 23, 2017
1 parent
9dcc554
commit 479dc4b
Showing
11 changed files
with
121 additions
and
0 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
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
8 changes: 8 additions & 0 deletions
8
app/scripts/modules/kubernetes/securityGroup/configure/wizard/advancedSettings.html
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,8 @@ | ||
<form class="container-fluid form-horizontal" name="advancedSettings"> | ||
<div class="col-md-12"> | ||
<map-editor model="securityGroup.annotations" label="Annotations" add-button-label="Add Annotations" labels-left="true"></map-editor> | ||
</div> | ||
<div class="col-md-12"> | ||
<map-editor model="securityGroup.labels" label="Labels" add-button-label="Add Labels" labels-left="true"></map-editor> | ||
</div> | ||
</form> |
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
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
16 changes: 16 additions & 0 deletions
16
app/scripts/modules/kubernetes/securityGroup/configure/wizard/tls.controller.js
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 @@ | ||
'use strict'; | ||
|
||
const angular = require('angular'); | ||
|
||
module.exports = angular.module('spinnaker.securityGroup.configure.kubernetes.tls', [ | ||
require('../../transformer.js').name, | ||
]) | ||
.controller('kubernetesSecurityGroupTLSController', function($scope, kubernetesSecurityGroupTransformer) { | ||
this.addTLSEntry = function() { | ||
$scope.securityGroup.tls.push(kubernetesSecurityGroupTransformer.constructNewIngressTLS()); | ||
}; | ||
|
||
this.removeTLSEntry = function(i) { | ||
$scope.securityGroup.tls.splice(i, 1); | ||
}; | ||
}); |
34 changes: 34 additions & 0 deletions
34
app/scripts/modules/kubernetes/securityGroup/configure/wizard/tls.html
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,34 @@ | ||
<form ng-controller="kubernetesSecurityGroupTLSController as tlsController" class="container-fluid form-horizontal" name="rules"> | ||
<div class="col-md-12"> | ||
<div ng-repeat="tls in securityGroup.tls"> | ||
<hr ng-if="$index > 0"> | ||
<div class="form-group"> | ||
<div class="col-md-3 sm-label-right"> | ||
Host | ||
<help-field key="kubernetes.ingress.tls.host"></help-field> | ||
</div> | ||
<div class="col-md-6"> | ||
<input type="text" class="form-control input-sm" name="details" ng-model="tls.hosts"/> | ||
</div> | ||
<div class="col-md-1"> | ||
<button class="btn btn-sm btn-default" ng-click="tlsController.removeTLSEntry($index)"> | ||
<span class="glyphicon glyphicon-trash visible-lg-inline"></span> | ||
<span class="visible-lg-inline"> Remove Entry</span> | ||
</button> | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
<div class="col-md-3 sm-label-right"> | ||
Secret | ||
<help-field key="kubernetes.ingress.tls.secret"></help-field> | ||
</div> | ||
<div class="col-md-6"> | ||
<input type="text" class="form-control input-sm" name="details" ng-model="tls.secretName"/> | ||
</div> | ||
</div> | ||
</div> | ||
<button class="add-new btn btn-block btn-sm" ng-click="tlsController.addTLSEntry()"><span | ||
class="glyphicon glyphicon-plus-sign"></span> Add New TLS Entry | ||
</button> | ||
</div> | ||
</form> |
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
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
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
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