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
public class AppSecrets | |
{ | |
public string DbConnectionString { get; set; } | |
} |
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
[ApiController] | |
[ApiVersion("1.0")] | |
public class AiController : ControllerBase | |
{ | |
private readonly AppSecrets appSecrets; | |
public AiController(ISampleAIService sampleAIService, IConfiguration configuration) | |
{ | |
this.appSecrets = configuration.Get<AppSecrets>(); | |
} |
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
apiVersion: v1 | |
kind: Secret | |
type: kubernetes.io/dockerconfigjson | |
metadata: | |
name: image-pull-secret | |
namespace: imagepullsecret-patcher | |
data: | |
.dockerconfigjson: ewogICAgImF1dGhzIjogewogICAgICAgICJodHRwczovL2RvY2tlci5pbyI6IHsKICAgICAgICAgICAgInVzZXJuYW1lIjogInVzZXJuYW1lIiwKICAgICAgICAgICAgInBhc3N3b3JkIjogInBhc3N3b3JkIiwKICAgICAgICAgICAgImF1dGgiOiAiZFhObGNtNWhiV1U2Y0dGemMzZHZjbVE9IgogICAgICAgIH0KICAgIH0KfQ== | |
--- | |
apiVersion: apps/v1 |
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
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: imagepullsecret-patcher | |
namespace: imagepullsecret-patcher | |
--- | |
apiVersion: rbac.authorization.k8s.io/v1 | |
kind: ClusterRole | |
metadata: | |
labels: |
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
from flask import Flask, request | |
from flask_restful import Resource, Api | |
from configuration.centralLogging import CentralLogging | |
logger = CentralLogging() | |
app = Flask(__name__) | |
api = Api(app) | |
class HelloWorld(Resource): |
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
kubernetes.io/ingress.class: nginx | |
nginx.ingress.kubernetes.io/affinity: "cookie" | |
nginx.ingress.kubernetes.io/session-cookie-name: "session-affinity-cookie" | |
nginx.ingress.kubernetes.io/session-cookie-expires: "172800" | |
nginx.ingress.kubernetes.io/session-cookie-max-age: "172800" | |
nginx.ingress.kubernetes.io/ssl-redirect: "false" | |
nginx.ingress.kubernetes.io/affinity-mode: persistent | |
nginx.ingress.kubernetes.io/session-cookie-hash: sha1 | |
nginx.ingress.kubernetes.io/session-cookie-path: /identity |
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
public partial class MessageReceivedTemplate | |
{ | |
private TemplateModel Model { get; set; } | |
public MessageReceivedTemplate(string name) | |
{ | |
Model = new TemplateModel() | |
{ | |
Name = name, | |
}; |
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
<#@ template language="C#" #> | |
<#@ assembly name="System.Core" #> | |
<#@ import namespace="System.Linq" #> | |
<#@ import namespace="System.Text" #> | |
<#@ import namespace="System.Collections.Generic" #> | |
<html> | |
<head> | |
</head> | |
<body> | |
<div> |
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
DROP FULLTEXT INDEX on dbo.Addresses; | |
DROP FULLTEXT CATALOG FTCAddress; |
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
IF EXISTS (SELECT * FROM sys.fulltext_indexes fti WHERE fti.object_id = OBJECT_ID(N'[dbo].[Addresses]')) | |
ALTER FULLTEXT INDEX ON [dbo].[Addresses] DISABLE | |
GO | |
IF EXISTS (SELECT * FROM sys.fulltext_indexes fti WHERE fti.object_id = OBJECT_ID(N'[dbo].[Addresses]')) | |
BEGIN | |
DROP FULLTEXT INDEX ON [dbo].[Addresses] | |
End | |
Go |
NewerOlder